Skip to main content
Visitor II
March 21, 2020
Question

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?

  • March 21, 2020
  • 3 replies
  • 721 views

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

    This topic has been closed for replies.

    3 replies

    ST Employee
    March 26, 2020

    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

    Graduate II
    March 26, 2020

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

    ST Employee
    March 26, 2020

    Hello @Uwe Bonnes​ 

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

    Best regards

    Bouraoui