2020-03-21 07:53 AM
I'm trying to run CM4 in debugger mode in STM32H757I-EVAL board for "HSEM_ResourceSharing" example code. But, debugger mode exits immediately with warning message "The stack pointer for stack 'CSTACK' (currently 0xA05F0001) is outside the stack range (0x10000028 to 0x10000428) "
How to fix this?
2020-03-26 03:11 AM
Hello @S.Kamath
The behavior is expected as the CM4 is in low power. this happens when the debugger tries to read CPU register while the CPU is in low-power mode. Please modify your code to avoid stop mode.
Best regards
Bouraoui
2020-03-26 05:23 AM
Is there something like MCUDBG_CR for the M4 in the H7?
2020-03-26 06:19 AM
Hello @Uwe Bonnes
There is only one MCUDBG_CR register shared between the two cores.
Best regards
Bouraoui