Stack pointer is setup to incorrect alignment 메시지 - (STM32)
기술노트 82023
아키텍처:
ARM
컴포넌트:
debugger
업데이트:
2018-02-28 오전 1:57
Introduction
Programming an STM32 device fails with the message:
Warning: Stack pointer is setup to incorrect alignment. Stack addr=0xAAAAAAAA
Background
STM32 devices can be read protected. When read protection is enabled, bytes in flash memory will be read out as 0xAA. When the Cortex-M device starts up, the bytes at 0x00 to 0x03 are read, as they hold the value of the stack pointer, and in that situation the value 0xAAAAAAAA is regarded as invalid.
Solution
The flash of the STM32 device needs to be erased. With I-jet, unlock utilities for STM32 devices are provided as C-SPY macros found in the C-SPY Macro Quicklaunch window. With J-Link, arm\bin\JLinkSTM32.exe can be used.
All product names are trademarks or registered trademarks of their respective owners.