返回列表 回复 发帖

[硬件问题] iar与JLINK联接的时候出现的问题求助

iar5.5与JLINK_V8连接时,JLINK一切正常,但下载的时候就会出现以下问题:
Sun Dec 05 21:31:52 2010: Warning: Stack pointer is setup to incorrect alignment. Stack addr = 0xFFFFFFFF
Sun Dec 05 21:31:52 2010: Target reset
这个如何解决啊,是哪儿的设置问题还是软件问题啊?
做个备份!请看IAR 官网的回复:
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.
各位坛友,我是新手 请大家多多关照小弟我啊
返回列表