Posted: Fri May 30, 2014 1:34 pm Post subject: Simulator Frame or software stack overlap ?
Dear all,
I am evaluating some code because the device I want to control sometimes behaves inpredictable.
In the simulation runnig sometime the message Frame or software stack overlap occurs.
I changed the parameters for the stacks and frame several times but the message occurs in the bottom line often when I pause the program.
Here an excerpt form the compiler's report file
Compiler : BASCOM-AVR LIBRARY V 2.0.7.6
Processor : M168
SRAM : 400 hex
EEPROM : 200 hex
ROMSIZE : 4000 hex
ROMIMAGE : 3BF6 hex -> Will fit into ROM
ROMIMAGE : 15350 dec
FLASH USED : 93 %
BAUD : 19200 Baud
XTAL : 6000000 Hz
BAUD error : 2.34%
The occupation of SRAM is indicated in the attachment.
In the program there is 1 ISR using NOSAVE option and the communication via UART as well as LCD and print commands.
In testing only ISR and LCD commands were executed. No communication via UART.
There is also 3 floating point multiplications in the code.
In running the simulation HW stack usage is in 15 bytes only. SW stack 2 bytes only.
In the frame I can see so far only activity in 4 bytes.
So far no operation with strings coming from the uart did occur. I cannot imagine how an opverlap may occur.
After studying the Bascom aplication note #183 I cannot find an explanation.
How can I find the reason for an overlap ? and correct it.
Stack of 40h is small, try to increase and see if the error disappear.
Without code hard to say where the problem is. _________________ www.evertdekker.comBascom code vault
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum