Page 1 of 1

component adc pic32

Posted: Mon Oct 18, 2021 8:06 am
by asmatec
Hi,

I have a problem in the pic32 compiler, when I start it it gives an error with the adc component (potentiometer)

C:\Program Files (x86)\Flowcode\Compilers\pic32\bin\xc32-gcc.exe -mprocessor=32MX340F512H -O1 -o "C:\Users\miguel\Google Drive\PROYECTOS\CONTROL VARIOS PLC\PLC PIC32\firmware\Nueva carpeta\Flowcode1.elf" "C:\Users\miguel\Google Drive\PROYECTOS\CONTROL VARIOS PLC\PLC PIC32\firmware\Nueva carpeta\Flowcode1.c"
C:\Users\miguel\AppData\Local\Temp\ccaEMKTz.o: In function `FCD_08f41_adc_base__RawSampleInt':
Flowcode1.c:(.text+0x64c): undefined reference to `FC_CAL_ADC_Sample_1'
C:\Users\miguel\AppData\Local\Temp\ccaEMKTz.o: In function `FCD_08f41_adc_base__RawAverageByte':
Flowcode1.c:(.text+0x6b0): undefined reference to `FC_CAL_ADC_Enable_1'
Flowcode1.c:(.text+0x6b8): undefined reference to `FC_CAL_ADC_Sample_1'
Flowcode1.c:(.text+0x6e8): undefined reference to `FC_CAL_ADC_Enable_1'
Flowcode1.c:(.text+0x6f0): undefined reference to `FC_CAL_ADC_Sample_1'
C:\Users\miguel\AppData\Local\Temp\ccaEMKTz.o: In function `FCD_08f41_adc_base__GetAverageByte':
Flowcode1.c:(.text+0x9fc): undefined reference to `FC_CAL_ADC_Disable_1'
C:\Users\miguel\AppData\Local\Temp\ccaEMKTz.o: In function `FCD_08f41_adc_base__RawAverageInt':
Flowcode1.c:(.text+0xa68): undefined reference to `FC_CAL_ADC_Enable_1'
Flowcode1.c:(.text+0xa70): undefined reference to `FC_CAL_ADC_Sample_1'
Flowcode1.c:(.text+0xa9c): undefined reference to `FC_CAL_ADC_Enable_1'
Flowcode1.c:(.text+0xaa4): undefined reference to `FC_CAL_ADC_Sample_1'
C:\Users\miguel\AppData\Local\Temp\ccaEMKTz.o: In function `FCD_08f41_adc_base__GetAverageInt':
Flowcode1.c:(.text+0xb0c): undefined reference to `FC_CAL_ADC_Disable_1'
C:\Users\miguel\AppData\Local\Temp\ccaEMKTz.o: In function `FCD_08f41_adc_base__GetVoltage':
Flowcode1.c:(.text+0xb40): undefined reference to `FC_CAL_ADC_Enable_1'
Flowcode1.c:(.text+0xb48): undefined reference to `FC_CAL_ADC_Sample_1'
Flowcode1.c:(.text+0xb50): undefined reference to `FC_CAL_ADC_Disable_1'
C:\Users\miguel\AppData\Local\Temp\ccaEMKTz.o: In function `FCD_08f41_adc_base__RawEnable':
Flowcode1.c:(.text+0xb94): undefined reference to `FC_CAL_ADC_Enable_1'
C:\Users\miguel\AppData\Local\Temp\ccaEMKTz.o: In function `FCD_08f41_adc_base__RawSampleByte':
Flowcode1.c:(.text+0xbb0): undefined reference to `FC_CAL_ADC_Sample_1'
C:\Users\miguel\AppData\Local\Temp\ccaEMKTz.o: In function `FCD_08f41_adc_base__GetInt':
Flowcode1.c:(.text+0xbe0): undefined reference to `FC_CAL_ADC_Enable_1'
Flowcode1.c:(.text+0xbe8): undefined reference to `FC_CAL_ADC_Sample_1'
Flowcode1.c:(.text+0xbf0): undefined reference to `FC_CAL_ADC_Disable_1'
C:\Users\miguel\AppData\Local\Temp\ccaEMKTz.o: In function `FCD_08f41_adc_base__RawDisable':
Flowcode1.c:(.text+0xc14): undefined reference to `FC_CAL_ADC_Disable_1'
C:\Users\miguel\AppData\Local\Temp\ccaEMKTz.o: In function `FCD_08f41_adc_base__GetByte':
Flowcode1.c:(.text+0xc40): undefined reference to `FC_CAL_ADC_Enable_1'
Flowcode1.c:(.text+0xc48): undefined reference to `FC_CAL_ADC_Sample_1'
Flowcode1.c:(.text+0xc50): undefined reference to `FC_CAL_ADC_Disable_1'
collect2.exe: error: ld returned 255 exit status

Re: component adc pic32

Posted: Mon Oct 18, 2021 11:20 am
by BenR
Hello,

Please can you attach your project file so we can investigate the issue for you.

Re: component adc pic32

Posted: Tue Oct 19, 2021 5:41 pm
by asmatec
Hi,
It is a common example, if I change the chip to amr for example it compiles perfectly

Re: component adc pic32

Posted: Thu Oct 21, 2021 12:41 pm
by asmatec
Hi,
have you been able to find out something?

Re: component adc pic32

Posted: Fri Oct 22, 2021 12:24 pm
by BenR
Hello,

Many thanks for letting us know. I've added an update to the library update system which should solve the problem for you.