FSEC在代码中置为保密(0xF0),srec格式文件通过FLASH方式下载到芯片,出现问题。
下面是下载过程中console打印信息,前面部分显示下载成功,也识别到芯片加密了,但是接着就erasing了!!见红字部分。
有人遇到过这个问题吗,我猜是不是可以设置什么命令阻止最后的erasing。
用debug方式下载elf也是相同的问题。
我用的kinetis design studio v2.0.0
仿真工具PEmicro的。
;version 1.02, 02/07/2014, Copyright P&E Microcomputer Systems, [ke_64k_pflash_ftmre_m0]
;device freescale, ke04z64m4, desc=pflash_pipeline
;begin_cs device=$00000000, length=$00010000, ram=$20000000
Loading programming algorithm ...
Done.
CMD>PM
Programming.
Processing Object File Data ...
.
Programmed.
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00000000-000000BF ...
Ok.
block 00000400-0000A7A7 ...
Ok.
Checksum Verification Successful. (Cumulative CRC-16=$06B3)
CMD>RE
Initializing.
Device is Secure.
Device is secured. Erasing ...
Target has been RESET and is active.
Disconnected from "127.0.0.1" via 127.0.0.1
Target Disconnected.
|