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.

죄송하지만, 당사 사이트에서는 Internet Explorer를 지원하지 않습니다.보다 편안한 사이트를 위해 Chrome, Edge, Firefox 등과 같은 최신 브라우저를 사용해 주시길 부탁드립니다.