cancel
Showing results for 
Search instead for 
Did you mean: 

Buggy example project STM32Cube_FW_H7_V1.5.0\Projects\STM32H747I-DISCO\Examples\GPIO\GPIO_EXTI\EWARM

ramkumarkoppu
Associate III

CM4 configuration for the project STM32Cube_FW_H7_V1.5.0\Projects\STM32H747I-DISCO\Examples\GPIO\GPIO_EXTI\EWARM generates error The stack pointer for stack 'CSTACK' (currently 0xA05F0001) is outside the stack range (0x10000018 to 0x10000418) when try to debug the Cortex-M4.

1 REPLY 1
Imen.D
ST Employee

Hi @ramkumarkoppu​ ,

It seems this is an expected behavior as in the application, CM4 enters in deep-sleep mode (Domain D2 goes to STOP mode) waiting for CM7 to perform system initialization (then CM7 will wake-up CM4). When CM4 is in LP mode, the debugger cannot read register values correctly and every read access returns the value 0xA0F50001; even the CM4 core registers, ie SP registers.

Thus, IAR complains that the read SP value is outside the CSTACK region allocated during compilation (in the link process).

We recommend you to review the application note AN5286, which provides guidelines for the debug of custom applications on the STM32H7x5/x7 microcontrollers. (with Focus on EWARM steps on the chapter 4, and in order to debug only CM4, please follow the described steps on CM4-project configuration.

Best Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen