cancel
Showing results for 
Search instead for 
Did you mean: 

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. How to fix this?

S.Kamath
Associate II

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?

0693W000000URBpQAO.png

3 REPLIES 3
Bouraoui Chemli
ST Employee

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

Uwe Bonnes
Principal II

Is there something like MCUDBG_CR for the M4 in the H7?

Bouraoui Chemli
ST Employee

Hello @Uwe Bonnes​ 

There is only one MCUDBG_CR register shared between the two cores.

Best regards

Bouraoui