Anders Johansson

Running from stack, using TN235 that will not compile

Discussion created by Anders Johansson on Nov 16, 2006
Latest reply on Nov 20, 2006 by Tom Thompson
CW 3.1 HCS12
I need to run code from stack to erase and program flash.
I have implemented TN235, thinking it will allow me to write programs in C,
put the code on the stack and execute from there. Although not absolutely
necessary, I would prefer to be able to call functions also located in banked memory.
TN235 seems to resolve all this... BUT, the compiler complains about:
#pragma CODE_SEG NEAR PIC ToCopyToStack /* near and position independent */
issuing warning C3802: Segment pragma incorrect
All help much appreciated
Anders J