Migration from PIC18F26K22 to PIC18F26K42
Posted: Fri Jan 15, 2021 1:33 pm
Hello!
In the past i was using PIC18F26K22 and everything was working well in FC8, recently i migrated to PIC18F26K42 for 12bit ADC, only changing the chip in Project Options did not work, there are so many new settings
, i tried few settings but nothing is working, i am getting below error while compiling, can someone explain me where can i go wrong or do i need to start the project all new instead of Save As, i think this is something to do with port settings, is it?
Abhi
In the past i was using PIC18F26K22 and everything was working well in FC8, recently i migrated to PIC18F26K42 for 12bit ADC, only changing the chip in Project Options did not work, there are so many new settings

can someone shed some light on this, thank youC:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_I2C.c: FC_CAL_I2C_Master_Init_1()
266: SSP1DATPPS = 0;
^ (192) undefined identifier "SSP1DATPPS"
269: SSP1CLKPPS = 3;
^ (192) undefined identifier "SSP1CLKPPS"
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_I2C.c: FC_CAL_I2C_Slave_Init_1()
661: SSP1DATPPS = 0;
^ (192) undefined identifier "SSP1DATPPS"
663: SSP1CLKPPS = 3;
^ (192) undefined identifier "SSP1CLKPPS"
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_UART.c: FC_CAL_UART_Init_1()
551: INTCON0bits.PEIE = 1;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S2036
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_UART.c: FC_CAL_UART_Uninit_1()
908: PIE1bits.RCIE = 0;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S151
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_UART.c: FC_CAL_UART_UpdateBaud_1()
1564: PIE1bits.RCIE = 1;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S151
1565: INTCON0bits.PEIE = 1;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S2036
TLIC_18F26K22_OLED_CI_4R_15-01-2021.c: default_isr()
19387: if ((PIR4bits.TMR3IF) && (PIE4bits.TMR3IE))
^ (255) not a member of the struct/union ""
^ (255) not a member of the struct/union ""
(199) logical type required ^
(199) logical type required ^
19390: PIR4bits.TMR3IF = 0;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S188
19403: if ((PIR1bits.RCIF) && (PIE1bits.RCIE))
^ (255) not a member of the struct/union ""
^ (255) not a member of the struct/union ""
TLIC_18F26K22_OLED_CI_4R_15-01-2021.c: 19403: too many errors (21)
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\Program Files (x86)\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat reported error code 1
Abhi