component adc pic32

Post and discuss new components that you have created.
Post Reply
asmatec
Posts: 22
http://meble-kuchenne.info.pl
Joined: Wed Dec 30, 2020 3:07 pm
Been thanked: 4 times

component adc pic32

Post 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

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: component adc pic32

Post by BenR »

Hello,

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

asmatec
Posts: 22
Joined: Wed Dec 30, 2020 3:07 pm
Been thanked: 4 times

Re: component adc pic32

Post by asmatec »

Hi,
It is a common example, if I change the chip to amr for example it compiles perfectly
Attachments
Flowcode1.fcfx
(7.76 KiB) Downloaded 159 times

asmatec
Posts: 22
Joined: Wed Dec 30, 2020 3:07 pm
Been thanked: 4 times

Re: component adc pic32

Post by asmatec »

Hi,
have you been able to find out something?

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: component adc pic32

Post 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.

Post Reply