Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.

We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.

Thank you for your understanding.


This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C166: Stack does not update memory!

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,

Parents Reply Children
No data