使用KinetisFlashTool下载的时候说FLASH保护的错误,是什么原因呢?

cancel
Showing results for 
Search instead for 
Did you mean: 

使用KinetisFlashTool下载的时候说FLASH保护的错误,是什么原因呢?

Jump to solution
579 Views
yanandren
Contributor II

Connected to device successfully!

Collecting device information......

Device information is updated!

Erase all memory of internal flash and unsecore the device. Completed!

Device information is updated!

Start update progress......

Updating image......

Error: Update image failed(kStatus_FlashProtectionViolation).

Update process is stopped by error.

下载的是一个bin文件,21k

0 Kudos
1 Solution
236 Views
jeremyzhou
NXP TechSupport
NXP TechSupport

Hi,

建议先做个试验,对比导致Flash 进入Secure状态和没有的操作过程有什么区别。
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
5 Replies
237 Views
jeremyzhou
NXP TechSupport
NXP TechSupport

Hi,

建议先做个试验,对比导致Flash 进入Secure状态和没有的操作过程有什么区别。
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
236 Views
jeremyzhou
NXP TechSupport
NXP TechSupport

Hi,

谢谢你选择NXP半导体产品,很高兴为你提供支持。

在回答问题之前,能否请你告知一下你所使用的MCU型号和板子名称。
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
236 Views
yanandren
Contributor II

谢谢回复。

我使用的是KL27Z,MKL27Z64VLH4

0 Kudos
236 Views
jeremyzhou
NXP TechSupport
NXP TechSupport

Hi,

我刚才在FRDM-KL27实验了一下,按照附件给出的步骤一步步做,成功的升级了应用程序,

如果你的bin也是基于FRDM-KL27的,你可以发给我,我这边复现一下问题。

2016-06-02_15-44-36.jpg

                                                              Fig 1


Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

236 Views
yanandren
Contributor II

HI,

谢谢回复,这个文档对于一些理解上很有帮助。

另外,我的问题是这样的,

有时候写FLASH之后,片子的FLASH会进入SECURE状态,有时候却不会,请问是有什么条件吗?

0 Kudos