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.c14: error: 'AD1CON2BITS' has no member named 'VCFG1'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c14: error: 'AD1CON2BITS' has no member named 'VCFG2'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c15: error: 'AD1CON2BITS' has no member named 'VCFG0'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c15: error: 'AD1CON2BITS' has no member named 'VCFG0'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c14: 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.
adc problem PIC24FJ128GA204
-
- Posts: 22
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 30, 2020 3:07 pm
- Been thanked: 4 times
-
- Matrix Staff
- Posts: 1464
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 514 times
- Been thanked: 474 times
Re: adc problem PIC24FJ128GA204
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.
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.
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
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 310 times
Martin