PIC16(L)F18446.fcdx more wrong definitions
Posted: Thu Jun 09, 2022 9:40 am
Hi
On May 31, 2022 10:38 pm I posted a bug report named
PIC16(L)F18446.fcdx with wrong definitions .
You promptly solved this uC definitions and all compile well.
At.that time anoter problem arrived:
It simulates as if all is correct (functioning as expected) but, after compiled (no errors)
and transfered to the real PIC16LF18446 it doesn't work
You suggested me to add this code
T2CLKCONbits.CS = 2;
T2HLTbits.MODE = 0;
And all workes wlas it should.
The current problem is, when adding TMR4 with same properties and also adding the suggested code (adapted to tmr4) to that initially attached Flowchart, when compiling, it says
16f18446.c: main()
2516: T4CONbits.T2CKPS = 6;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S508
XmiPRO2chargerExtraControl_Basic_tests_v0.7_16f18446.c: myisr()
3481: FCM_TRM2_int_process();
^ (361) function declared implicit int (warning)
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
Can you help me?
It seams to me there are more errors in the definition s file for this uC .
Could it be ?
On May 31, 2022 10:38 pm I posted a bug report named
PIC16(L)F18446.fcdx with wrong definitions .
You promptly solved this uC definitions and all compile well.
At.that time anoter problem arrived:
It simulates as if all is correct (functioning as expected) but, after compiled (no errors)
and transfered to the real PIC16LF18446 it doesn't work
You suggested me to add this code
T2CLKCONbits.CS = 2;
T2HLTbits.MODE = 0;
And all workes wlas it should.
The current problem is, when adding TMR4 with same properties and also adding the suggested code (adapted to tmr4) to that initially attached Flowchart, when compiling, it says
16f18446.c: main()
2516: T4CONbits.T2CKPS = 6;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S508
XmiPRO2chargerExtraControl_Basic_tests_v0.7_16f18446.c: myisr()
3481: FCM_TRM2_int_process();
^ (361) function declared implicit int (warning)
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
Can you help me?
It seams to me there are more errors in the definition s file for this uC .
Could it be ?