STM32 jlink 下载失败处理方法(addr=0xAAAAAAAA)
乌卡卡 | 2014-12-26 10:13:17 阅读:4222
发布文章
Warning: Stack pointer is setup to incorrect alignment. Stack addr = 0xAAAAAAAA (EWARM 5.x & 6.x)
EW targets:
|
ARM
|
EW component:
|
C-SPY debugger
|
Last update:
|
November 18, 2010
|
Problem
Programming the STM32 device fails with the message:
Warning: Stack pointer is setup to incorrect alignment. Stack addr = 0xAAAAAAAA
Background
The STM32 device can be read protected. When that is done will the bytes in the flash memory read out as 0xAA. When the Cortex-M device starts up are the bytes 0x00 to 0x03 read as holding the value of the stack pointer, and in that situation is the value 0xAAAAAAAA invalid.
Solution
The flash of the STM32 needs to be erased with an external tool. The tool arm\bin\JLinkSTM32.exe can do this erasure. (Just run the tool from command line.)
Note
The arm\bin\JLinkSTM32.exe in version 5.50 of EWARM had a bug. So (if needed) update with the EWARM Service Pack 5.50.5.
|
|
') } document.write('
') document.write('' + LinkText + '') document.write('
') }
|
...if JLinkSTM32.exe can not work, use j-flash.->erase sectors
*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。