Compiling to HEX problem...
Posted: Mon Nov 26, 2007 12:24 am
Hi,
I was developing my first professional system, and it was compiling well, and I would use this hex file to simulate it on Proteus ISIS. This all happened until one time I could not compile the hex file. Could it be that the PIC I am using (as in 16F877A) cannot support the size of the program I am writing?
This is the log:
File name: E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c
Generated by: Flowcode v3.2.2.40
Date: Monday, November 26, 2007 00:16:39
Licence: Student
Registered to: Chris Schembri Badacchino
NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
D:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic16.flowcode.exe -v -t PIC16F877A "Room Auto Switch - LCD Macro (inc timer).c"
BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Licensed to FlowCode User under Single user Standard License for 1 node(s)
Limitations: PIC12,PIC16 max code size:4096 words, max RAM banks:Unlimited, Non commercial use only
Room Auto Switch - LCD Macro (inc timer).c
Starting preprocessor: "D:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" "E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c" -i "D:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC16F877A -la -c2 -o "Room Auto Switch - LCD Macro (inc timer).pp" -v -d _BOOSTC -d _PIC16
...............................................................................
Room Auto Switch - LCD Macro (inc timer).c success
success
Return code = 0
Launching the linker/assembler...
D:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostlink.pic.exe -ld "D:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\lib" libc.pic16.lib flowcode.pic16.lib "Room Auto Switch - LCD Macro (inc timer).obj" -t PIC16F877A -d "E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro" -p "Room Auto Switch - LCD Macro (inc timer)"
BoostLink Optimizing Linker Version 6.70
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Warning: Recursion may cause call stack overflow in function:'FCM_Manual_Mode'
Warning: Recursion may cause call stack overflow in function:'FCM_Cancel_to_Menu'
Warning: Recursion may cause call stack overflow in function:'FCM_Menu_in_Sensor_Mode'
Warning: Recursion may cause call stack overflow in function:'FCM_Sensor_Mode'
Warning: Recursion may cause call stack overflow in function:'FCM_Pre_Pre_Sensor_in_Sensor_Mode'
Warning: Recursion may cause call stack overflow in function:'FCM_Pre_Timer_Mode3_Minutes'
Warning: Recursion may cause call stack overflow in function:'FCM_Pre_Timer_Mode3_Hours'
Warning: Recursion may cause call stack overflow in function:'FCM_Pre_Timer_Mode3_Days'
Warning: Recursion may cause call stack overflow in function:'FCM_Pre_Timer_Mode2'
Warning: Recursion may cause call stack overflow in function:'FCM_Pre_Timer_Mode1'
..........
Warning unreferenced functions removed:
FCD_LCDDisplay0_GetDefines in: E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c
FCD_LCDDisplay0_Command in: E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c
FCD_LCDDisplay0_RawSend in: E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c
FCD_LCDDisplay0_PrintString in: E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c
LCD_590512_Dummy_Function in: E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c
Warning: function never returns: 'FCM_Timer_Mode_Followup'
Warning: function never returns: 'FCM_Timer_Mode'
Warning: function never returns: 'FCM_Pre_Timer_Mode3_Seconds'
Warning: function never returns: 'FCM_Pre_Timer_Mode3_Minutes'
Warning: function never returns: 'FCM_Pre_Sensor_in_Sensor_Mode'
Warning: function never returns: 'FCM_Pre_Timer_Mode3_Hours'
Warning: function never returns: 'FCM_Pre_Pre_Sensor_in_Sensor_Mode'
Warning: function never returns: 'FCM_Pre_Manual_in_Sensor_Mode'
Warning: function never returns: 'FCM_Menu_in_Sensor_Mode'
Warning: function never returns: 'FCM_Pre_Timer_Mode3_Days'
Warning: function never returns: 'FCM_Pre_Timer_Mode2'
Warning: function never returns: 'FCM_Sensor_Mode'
Warning: function never returns: 'FCM_Pre_Timer_Mode1'
Warning: function never returns: 'FCM_Pre_Sensor_Mode'
Warning: function never returns: 'FCM_Pre_Manual_Mode'
Warning: function never returns: 'FCM_Menu'
Warning: function never returns: 'FCM_Manual_Mode'
Too much code to fit in ROM, overfilled by:386 locations.
failure
Return code = -2
Flowcode was unable to assemble the ASM file due to the following errors:
FINISHED
Thanks!
I was developing my first professional system, and it was compiling well, and I would use this hex file to simulate it on Proteus ISIS. This all happened until one time I could not compile the hex file. Could it be that the PIC I am using (as in 16F877A) cannot support the size of the program I am writing?
This is the log:
File name: E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c
Generated by: Flowcode v3.2.2.40
Date: Monday, November 26, 2007 00:16:39
Licence: Student
Registered to: Chris Schembri Badacchino
NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
D:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic16.flowcode.exe -v -t PIC16F877A "Room Auto Switch - LCD Macro (inc timer).c"
BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Licensed to FlowCode User under Single user Standard License for 1 node(s)
Limitations: PIC12,PIC16 max code size:4096 words, max RAM banks:Unlimited, Non commercial use only
Room Auto Switch - LCD Macro (inc timer).c
Starting preprocessor: "D:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" "E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c" -i "D:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC16F877A -la -c2 -o "Room Auto Switch - LCD Macro (inc timer).pp" -v -d _BOOSTC -d _PIC16
...............................................................................
Room Auto Switch - LCD Macro (inc timer).c success
success
Return code = 0
Launching the linker/assembler...
D:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostlink.pic.exe -ld "D:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\lib" libc.pic16.lib flowcode.pic16.lib "Room Auto Switch - LCD Macro (inc timer).obj" -t PIC16F877A -d "E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro" -p "Room Auto Switch - LCD Macro (inc timer)"
BoostLink Optimizing Linker Version 6.70
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Warning: Recursion may cause call stack overflow in function:'FCM_Manual_Mode'
Warning: Recursion may cause call stack overflow in function:'FCM_Cancel_to_Menu'
Warning: Recursion may cause call stack overflow in function:'FCM_Menu_in_Sensor_Mode'
Warning: Recursion may cause call stack overflow in function:'FCM_Sensor_Mode'
Warning: Recursion may cause call stack overflow in function:'FCM_Pre_Pre_Sensor_in_Sensor_Mode'
Warning: Recursion may cause call stack overflow in function:'FCM_Pre_Timer_Mode3_Minutes'
Warning: Recursion may cause call stack overflow in function:'FCM_Pre_Timer_Mode3_Hours'
Warning: Recursion may cause call stack overflow in function:'FCM_Pre_Timer_Mode3_Days'
Warning: Recursion may cause call stack overflow in function:'FCM_Pre_Timer_Mode2'
Warning: Recursion may cause call stack overflow in function:'FCM_Pre_Timer_Mode1'
..........
Warning unreferenced functions removed:
FCD_LCDDisplay0_GetDefines in: E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c
FCD_LCDDisplay0_Command in: E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c
FCD_LCDDisplay0_RawSend in: E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c
FCD_LCDDisplay0_PrintString in: E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c
LCD_590512_Dummy_Function in: E:\school\University\3rd year\Pule\Room Auto Switch - LCD Macro\Room Auto Switch - LCD Macro (inc timer).c
Warning: function never returns: 'FCM_Timer_Mode_Followup'
Warning: function never returns: 'FCM_Timer_Mode'
Warning: function never returns: 'FCM_Pre_Timer_Mode3_Seconds'
Warning: function never returns: 'FCM_Pre_Timer_Mode3_Minutes'
Warning: function never returns: 'FCM_Pre_Sensor_in_Sensor_Mode'
Warning: function never returns: 'FCM_Pre_Timer_Mode3_Hours'
Warning: function never returns: 'FCM_Pre_Pre_Sensor_in_Sensor_Mode'
Warning: function never returns: 'FCM_Pre_Manual_in_Sensor_Mode'
Warning: function never returns: 'FCM_Menu_in_Sensor_Mode'
Warning: function never returns: 'FCM_Pre_Timer_Mode3_Days'
Warning: function never returns: 'FCM_Pre_Timer_Mode2'
Warning: function never returns: 'FCM_Sensor_Mode'
Warning: function never returns: 'FCM_Pre_Timer_Mode1'
Warning: function never returns: 'FCM_Pre_Sensor_Mode'
Warning: function never returns: 'FCM_Pre_Manual_Mode'
Warning: function never returns: 'FCM_Menu'
Warning: function never returns: 'FCM_Manual_Mode'
Too much code to fit in ROM, overfilled by:386 locations.
failure
Return code = -2
Flowcode was unable to assemble the ASM file due to the following errors:
FINISHED
Thanks!