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
component adc pic32
-
- Posts: 22
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 30, 2020 3:07 pm
- Been thanked: 4 times
-
- Matrix Staff
- Posts: 1760
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 447 times
- Been thanked: 607 times
Re: component adc pic32
Hello,
Please can you attach your project file so we can investigate the issue for you.
Please can you attach your project file so we can investigate the issue for you.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: component adc pic32
Hi,
It is a common example, if I change the chip to amr for example it compiles perfectly
It is a common example, if I change the chip to amr for example it compiles perfectly
- Attachments
-
- Flowcode1.fcfx
- (7.76 KiB) Downloaded 183 times
-
- Matrix Staff
- Posts: 1760
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 447 times
- Been thanked: 607 times
Re: component adc pic32
Hello,
Many thanks for letting us know. I've added an update to the library update system which should solve the problem for you.
Many thanks for letting us know. I've added an update to the library update system which should solve the problem for you.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel