adc problem PIC24FJ128GA204
Posted: Mon Nov 06, 2023 8:04 am
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
14: error: 'AD1CON2BITS' has no member named 'VCFG1'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c
14: error: 'AD1CON2BITS' has no member named 'VCFG2'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c
15: error: 'AD1CON2BITS' has no member named 'VCFG0'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c
15: error: 'AD1CON2BITS' has no member named 'VCFG0'
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c
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.
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
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c
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.