FRDM KL26Z - Flashing the binary to target chip

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FRDM KL26Z - Flashing the binary to target chip

1,097 次查看
ip_malhotra
Contributor I

I'm new here, so this may be a rookie question. But I haven't been able to find what I'm looking for.

I have a FRDM KL26Z board. I was able to write and compile my code using KDS. I was able to debug my code on the board, and every functionality is fine. Now, I don't know how to go about the next step - flashing the binary to the "real" target chip. 

I have the target hardware ready, but I don't know how to flash the binary(hex/srec etc) to it.

- Is there some binary flash tool that can help me do that?

- How to connect that flash tool to the target chip? Can KL26Z board help in connecting the flash tool to the target chip?

标记 (2)
0 项奖励
回复
4 回复数

979 次查看
mjbcswitzerland
Specialist V
0 项奖励
回复

979 次查看
ip_malhotra
Contributor I

Hi Mark

Thanks for the suggestion.

I tried using frdm board as programmer. I wasn't really sure whether I need to copy the srec file to the bootloader or mass storage mode. I tried both, and it didnt work either way.

If I copy the srec file in the bootloader mode, then the "Application version" shows 0.0 in "http://www.pemicro.com/opensda/index.cfm", and the device always comes up in bootloader mode. If I copy the srec file in the mass storage mode, then the LED continuously blinks 8 times and stop, and again blinks 8 times and so on.

Any ideas?

0 项奖励
回复

979 次查看
mjbcswitzerland
Specialist V

Hi

You must not use bootloader mode since this will program the FRDM-KL26 debugger and not the target (you may need to reload the correct debugger again afterwards to recover).

Therefore mass-storage mode would be correct.

Regards

Mark

0 项奖励
回复

979 次查看
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Inderpreet, I hope you're doing well!

 

To flash a release device, you can use any of the KL26Z's supported debug interfaces and the MCUXpresso GUI Flash Tool. With this software, you will be able to directly program a binary file generated from an MCUXpresso project, or flash an arbitrary bin file generated in other software, like for example, a binary file generated with KDS.

 

You can read more about the MCUXpresso GUI Flash Tool in chapter 15 of the MCUXpresso User Guide, which can be found here.

 

You can also use interface specific software, like J-Link commander, to flash a binary file to a release device.

 

KL27Z MCU's support an ARM standard 2 Wire Serial Debug Interface that can be used for programming and debugging. You can read more about the SWD debug interface in chapter 9 of the KL26 Reference Manual, which can be found here.

 

Also, could you please take a look at the Kinetis Peripheral Module Quick Reference document, here? It also contains useful information about the available debug interfaces for Kinetis devices.

 

Please let me know if you need more information.

 

Best regards,

Sebastian

0 项奖励
回复