complile to chip error

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
GJB
Posts: 11
Joined: Tue Jan 09, 2007 9:37 pm
Contact:

complile to chip error

Post by GJB »

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)

User avatar
Steve
Matrix Staff
Posts: 3418
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post by Steve »

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]
Last edited by Steve on Tue Jan 08, 2008 10:22 am, edited 1 time in total.

GJB
Posts: 11
Joined: Tue Jan 09, 2007 9:37 pm
Contact:

compile error

Post by GJB »

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

User avatar
Steve
Matrix Staff
Posts: 3418
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post by Steve »

Sorry, Joe - my mistake. We need to get special versions of the BoostC files for Flowcode. I will hopefully have them available to download later today.

User avatar
Steve
Matrix Staff
Posts: 3418
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: complile to chip error

Post by Steve »

Please post your FCF and C files and we'll have a look.

Post Reply