如何使用KinetisFlashTool将MKL27Z64VLH4的FLASH划分区域使用

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

如何使用KinetisFlashTool将MKL27Z64VLH4的FLASH划分区域使用

641 Views
yanandren
Contributor II

大家好,

我使用的板子型号是MKL27Z64VLH4

现在我需要把flash划分为几个区域。

一个是boot区域,

一个是main区域,

内容是:从地址0开始boot,然后跳转到另外一个地址进入main

在我使用KinetisFlashTool 把我的boot下载到0地址以后,工具就自动断开然后reset,当我再次打开,连接上以后就下载不进去了,提示如下:

Connected to device successfully!

Collecting device information......

Device information is updated!

Start update progress......

Update directly without unlock device.

Updating image......

Error: Update image failed(Command disallowed when security is enabled.).

Update process is stopped by error.

请问怎么解决。

  谢谢各位。

  六一儿童节快乐。

BR

Bernerd

0 Kudos
1 Reply

414 Views
kerryzhou
NXP TechSupport
NXP TechSupport

楼主你好!

  KL27Z64VLH4 是带有片上ROM bootloader的,你没有用ROM bootloader而是直接用的flash bootloader吗?

  那么你这个flash bootloader是怎么写的呢?是否是更新的时候先放到RAM里,然后直接更新应用程序呢?

其实使用KL27,建议你还是直接使用ROMbootloader, 具体的使用,你可以参考KBOOT2.0的Getting Started with the Kinetis ROM Bootloader.pdf文档:

NXP_Kinetis_Bootloader_2_0_0\doc

  你先试下ROM bootloader,如果还有问题,欢迎继续交流!


Have a great day,
Jingjing

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

0 Kudos