在編譯的時候出現(xiàn)的問題,很是有點郁悶!!
查閱后,顯示如下:
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.)
或許你上面沒有看懂,或許你看懂了!!!
下面我說一下自己及巨額的辦法:
此種情況,很多是由于芯片的一個保護(hù)功能,就是說在你仿真的時候,你原來的芯片里面已經(jīng)有程序了,在你想要重新搞定之前,你需要先擦除芯片里面的程序!!!
英文部分提供了一個很好的辦法,就是打開IAR的按章文件的此路徑(arm\bin\JLinkSTM32.exe)下的JLinkSTM32.exe這個家伙即可,你點擊以后根據(jù)提示或者體會自動那個擦出你芯片里面的程序!SO!恭喜,你的芯片又可以Debug了.................