I set the new device and I did not make any change in the block code.
The compilation fails, as described below. I believe there is some error in the implementation of the PIC16F18444 code.
I am running Flowcode v8.2.2.15 and the database is up-to-dated.
I appreciate any help.
The first time I tried to compile, only replacing the PIC module (properly reconfigured) I had this error:
Code: Select all
FC202230105_3v7A.c: __EEPROM_DATA()
430: __EEPROM_DATA('B','l','o','c','k','l','i','n');
^ (194) ")" expected
431: __EEPROM_DATA('e',' ','K','O','1','1',' ','3');
^ (194) ")" expected
432: __EEPROM_DATA('v','7',' ','b','y',' ','C','o');
^ (194) ")" expected
433: __EEPROM_DATA('n','s','e','n','g',0x0A,0x0D,0x00);
^ (194) ")" expected
434: __EEPROM_DATA(0x01,0x03,0x01,0x01,0x00,0x00,0x00,0x00);
^ (194) ")" expected
435: __EEPROM_DATA(0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00);
^ (194) ")" expected
436: __EEPROM_DATA(0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00);
^ (194) ")" expected
437: __EEPROM_DATA(0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xAA);
^ (194) ")" expected
438: __EEPROM_DATA(0x01,0x03,0x01,0x01,0x00,0x00,0x00,0x00);
^ (194) ")" expected
439: __EEPROM_DATA(0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00);
^ (194) ")" expected
440: __EEPROM_DATA(0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00);
^ (194) ")" expected
441: __EEPROM_DATA(0x00,0x00,0x00,0x00,0x00,0x00,0xCC,0xDD);
^ (194) ")" expected
442: __EEPROM_DATA(0x01,0x03,0x01,0x01,0x00,0x00,0x00,0x00);
^ (194) ")" expected
443: __EEPROM_DATA(0x00,0x00,0x01,0x04,0x00,0x00,0x00,0x00);
^ (194) ")" expected
444: __EEPROM_DATA(0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00);
^ (194) ")" expected
445: __EEPROM_DATA(0x00,0x00,0x00,0x00,0x00,0x00,0xEE,0xFF);
^ (194) ")" expected
446: __EEPROM_DATA(0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00);
^ (194) ")" expected
447: __EEPROM_DATA(0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00);
^ (194) ")" expected
448: __EEPROM_DATA(0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00);
^ (194) ")" expected
449: __EEPROM_DATA(0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00);
^ (194) ")" expected
FC202230105_3v7A.c: 450: too many errors (21)
(908) exit status = 1
(908) exit status = 1
Error returned from xc8.exe
I don't know the reason since both PICs have the same EEPROM size.
So, I clear the EEPROM initial values and tried to compile a second time.
Then the compilation fails again, but with another set of errors:
Code: Select all
C202230105_3v7A.c: main()
8927: PIE1bits.TMR2IE = 1;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S846
8931: PIE1bits.RC1IE = 1;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S846
FC202230105_3v7A.c: myisr()
8990: if ((PIR1bits.TMR2IF) && (PIE1bits.TMR2IE))
^ (255) not a member of the struct/union ""
^ (255) not a member of the struct/union ""
(199) logical type required ^
(199) logical type required ^
8993: PIR1bits.TMR2IF = 0;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S828
9003: if ((PIR1bits.RC1IF) && (PIE1bits.RC1IE))
^ (255) not a member of the struct/union ""
^ (255) not a member of the struct/union ""
(199) logical type required ^
(199) logical type required ^
9006: PIR1bits.RC1IF = 0;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S828
(908) exit status = 1
(908) exit status = 1
Error returned from xc8.exe
These pictures shows the block interrupt setup:
This picture shows the configuration I am using for PIC16F18444: I appreciate any help.
Best regards,
Fernando