I get an error when I compile it to hex for the 12F683 chip.
It seems to be an issue with FC7 only, it worked with FC6.
I have the file attached:
Error when compiling to HEX for 12F683
Moderator: Benj
Error when compiling to HEX for 12F683
- Attachments
-
- RSSI monitor 12F683.fcfx
- (7.19 KiB) Downloaded 363 times
-
- Posts: 444
- Joined: Tue Apr 15, 2014 4:19 pm
- Location: Kajaani, Finland
- Has thanked: 345 times
- Been thanked: 227 times
Re: Error when compiling to HEX for 12F683
To Matrix team: Seems to be problem with PWM component?
Seems that FC7 has defined the trisa and porta in uppercase as TRISA and PORTA, but in the functions these are referenced as lower case, and could it be thats why its not generating hex correctly?
Code: Select all
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_PWM.c: FC_CAL_PWM_Enable_1()
84: {trisa &= ~(1 << (2)); porta &= ~(1 << (2));};
^ (192) undefined identifier "trisa"
^ (192) undefined identifier "porta"
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_PWM.c: FC_CAL_PWM_Disable_1()
296: trisa |= (1 << (2));
^ (192) undefined identifier "trisa"
Ill just keep the good work up!
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Error when compiling to HEX for 12F683
Hello,
You are correct in your hypothesis that the compile error was being caused by those lower case register names. Strange we hadn't seen the issue previously but must be very device dependent.
Anyway the attached component should fix the problem for you, just copy to your "Flowcode 7/Components" folder and restart Flowcode for the changes to be loaded.
You are correct in your hypothesis that the compile error was being caused by those lower case register names. Strange we hadn't seen the issue previously but must be very device dependent.
Anyway the attached component should fix the problem for you, just copy to your "Flowcode 7/Components" folder and restart Flowcode for the changes to be loaded.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel