Using flowcode 3.2.1.38
Target chip 16F877A
Code sent to Steve via email
Function readmode is called only once ?
β€bank switchβ€ error not understood.
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_READMODE'
Warning unreferenced functions removed:
FCD_LCDDisplay0_GetDefines in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
FCD_LCDDisplay0_Command in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
FCD_LCDDisplay0_RawSend in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
FCD_LCDDisplay0_PrintNumber in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
FCD_LCDDisplay0_PrintString in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
LCD_198802_Dummy_Function in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
Internal Error: Trying to add bank switching for var that has no memory allocated:'$ret' ('CompTempVarRet621',0x1000106C)
complile to chip error
- Steve
- Matrix Staff
- Posts: 3433
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
The "Warning unreferenced functions removed:" entries can safely be ignored.
But the "Internal Error: Trying to add bank switching for var that has no memory" error is a problem.
This is a problem with the compiler, which has been patched to fix this problem. See here:
http://forum.sourceboost.com/index.php?showtopic=3304
[EDIT: this will not work. You will need a special version of these files for Flowcode - see below in this thread]
But the "Internal Error: Trying to add bank switching for var that has no memory" error is a problem.
This is a problem with the compiler, which has been patched to fix this problem. See here:
http://forum.sourceboost.com/index.php?showtopic=3304
[EDIT: this will not work. You will need a special version of these files for Flowcode - see below in this thread]
Last edited by Steve on Tue Jan 08, 2008 10:22 am, edited 1 time in total.
compile error
Hi Steve
thanks for the prompt response. I downloaded the fix (zip file) and after unzipping found 3 files
boostc++.pic16
boostc++.pic18
boostc++.plc
I ran the pic 16 file as I am working on this series of chip, the dos code window shows code activity, and then I ran flow code again trying to compile to chip. but no change, still getting:-
Warning: Recursion may cause call stack overflow in
function:'FCM_READMODE'
Warning unreferenced functions removed:
FCD_LCDDisplay0_GetDefines in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
FCD_LCDDisplay0_Command in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
FCD_LCDDisplay0_RawSend in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
FCD_LCDDisplay0_PrintNumber in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
FCD_LCDDisplay0_PrintString in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
LCD_526050_Dummy_Function in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
Internal Error: Trying to add bank switching for var that has no memory allocated:'$ret' ('CompTempVarRet621',0x1000106C)
failure
Return code = -2
Have I missed a step in installing the fix?
regards joe
thanks for the prompt response. I downloaded the fix (zip file) and after unzipping found 3 files
boostc++.pic16
boostc++.pic18
boostc++.plc
I ran the pic 16 file as I am working on this series of chip, the dos code window shows code activity, and then I ran flow code again trying to compile to chip. but no change, still getting:-
Warning: Recursion may cause call stack overflow in
function:'FCM_READMODE'
Warning unreferenced functions removed:
FCD_LCDDisplay0_GetDefines in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
FCD_LCDDisplay0_Command in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
FCD_LCDDisplay0_RawSend in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
FCD_LCDDisplay0_PrintNumber in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
FCD_LCDDisplay0_PrintString in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
LCD_526050_Dummy_Function in: C:\Pic-Projects\Base-Stn-2008-1\SR3400-877-jan08-1.c
Internal Error: Trying to add bank switching for var that has no memory allocated:'$ret' ('CompTempVarRet621',0x1000106C)
failure
Return code = -2
Have I missed a step in installing the fix?
regards joe