adc problem PIC24FJ128GA204

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
asmatec
Posts: 22
http://meble-kuchenne.info.pl
Joined: Wed Dec 30, 2020 3:07 pm
Been thanked: 4 times

adc problem PIC24FJ128GA204

Post by asmatec »

Hello, we continue with the problem of the adc inputs on the pic24fj128ga204 chip, this is the message when compiling to hex!


C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c: In function 'FC_CAL_ADC_Enable_1':
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:823:29: error: 'ANSELA' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:823:29: note: each undeclared identifier is reported only once for each function it appears in
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1226:14: error: 'AD1CON2BITS' has no member named 'VCFG1'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1227:14: error: 'AD1CON2BITS' has no member named 'VCFG2'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1230:15: error: 'AD1CON2BITS' has no member named 'VCFG0'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1232:15: error: 'AD1CON2BITS' has no member named 'VCFG0'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1244:14: error: 'AD1CON1BITS' has no member named 'AD12B'
CRG_PIC24_V1.1.c: In function 'main':
CRG_PIC24_V1.1.c:5778:3: warning: passing argument 3 of 'FCI_FLOAT_TO_STRING' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:542:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
CRG_PIC24_V1.1.c:5779:3: warning: passing argument 1 of 'FCI_LEFTSTRING' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:170:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
CRG_PIC24_V1.1.c:5779:3: warning: passing argument 4 of 'FCI_LEFTSTRING' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:170:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
CRG_PIC24_V1.1.c:5785:3: warning: passing argument 1 of 'FCD_0be11_LCDI2C1__PrintString' discards qualifiers from pointer target type
CRG_PIC24_V1.1.c:4994:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
CRG_PIC24_V1.1.c:5797:2: warning: 'return' with a value, in function returning void

regards.

Miguel.

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: adc problem PIC24FJ128GA204

Post by medelec35 »

Hello.
Sorry, this has slipped under our radar.
This will be looked into ASAP
Martin

mnfisher
Valued Contributor
Posts: 958
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 509 times

Re: adc problem PIC24FJ128GA204

Post by mnfisher »

See also viewtopic.php?f=5&t=2190

Martin

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: adc problem PIC24FJ128GA204

Post by medelec35 »

Hello.
Sorry for the delay, I have been on holiday.
Would you like to test your project with the attached file?
Browse to this location using File Explorer, it's hidden by default so just paste the link into your address bar.

Code: Select all

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC16
Replace the existing file with the attached file.
If Flowcode is already open, then you will need to reload your project.
If you run any component updates, then the fcdx you added will be overwritten.
Attachments
24FJ128GA204.fcdx
(44.55 KiB) Downloaded 290 times
Martin

Post Reply