Hi, I have a Stack problem in an interrupt handler.
When I use a PUSH or CALL instruction, SP is correctly updated, but the memory at the address pointed by SP remains 0!! DPP3 = 3
I checked under monitor control, but the program in Flash still crashes.
STK_SIZE fields in SYSCON to 7 (in startup code): No wrapping: entire internal RAM used as stack.
The behavior with the simulator is OK.
The system stack is F800 - F880, and SP is in the correct range, problem detected with SP=F860.
I've tried the code with 2 C167CS cards, this should not be a hardware pb.
Thanks for any help,
I found the error. The monitor was compiled with STKSZ (of SYSCON) set to 0, and it must be 7 (I managed stacks manually for different reasons) I changed this field to 7 in the start1167.a66 file, but this was not sufficent. That's why the monitor sent hazardous data to the IDE.