Hi guys,
I've got quite strange problem with the stack. All my variables are defined as a static, stack size is far from the value which is really needed, still IAR shows warrning message when exiting a debug mode. Of course, program goes wrong after few seconds of running.
When debuging I meet couple of strange things, which could help to identify the problem:
1/ There is a loop in my SW like for(iter=0;iter<100;iter++) { ... a code ...}
The value of variable iter is increasing by one each cycle, but durring the cycle var iter has also a value like 4635 ... it's like: 1 2 3 4 4635 5 6 4635 7 8 9 10 11 12...etc.
2/ I'm using SPI. Buffer is filled correctly but after while I start to recieve corrupted data. It fixed after while ... correct data are recieved ... and then again, bad data.
Has anybody met something like this.
Thanks a lot
Alex.
HW and SW details:
MCU : 430F2410 (4Kb RAM)
MCU goes to LPM3
stack size: 200, heap 50 (but there is no dynamic allocation, so it could be zero may be?)
3 800 bytes of CODE memory
540 bytes of DATA memory (+ 45 absolute )
8 bytes of CONST memory
ps. excuse my language, I'm not native speaker [;)]
