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?
Hi
You can either purchase a debugger/programmer (P&E, Segger, etc.) or use your FRDM-KL26Z as one: https://mcuoneclipse.com/2013/04/21/using-the-freedom-board-as-jtag-programmer/
Regards
Mark
Complete Kinetis solutions for professional needs, training and support: http://www.utasker.com/kinetis.html
i.MX RT project compatibility: http://www.utasker.com/iMX.html
Kinetis KL25, KL26, KL27, KL28, KL43, KL46, KL82
- http://http://www.utasker.com/kinetis/FRDM-KL25Z.html
- http://www.utasker.com/kinetis/TWR-KL25Z48M.html
- http://www.utasker.com/kinetis/FRDM-KL26Z.html
- http://www.utasker.com/kinetis/TEENSY_LC.html
- http://www.utasker.com/kinetis/FRDM-KL27Z.html
- http://www.utasker.com/kinetis/Capuccino-KL27.html
- http://www.utasker.com/kinetis/FRDM-KL28Z.html
- http://www.utasker.com/kinetis/FRDM-KL43Z.html
- http://www.utasker.com/kinetis/TWR-KL43Z48M.html
- http://www.utasker.com/kinetis/FRDM-KL46Z.html
- http://www.utasker.com/kinetis/TWR-KL46Z48M.html
- http://www.utasker.com/kinetis/FRDM-KL82Z.html
uTasker: supporting >1'000 registered Kinetis users get products faster and cheaper to market
Request Free emergency remote desk-top consulting at http://www.utasker.com/services.html
Open Source version at https://github.com/uTasker/uTasker-Kinetis
https://community.nxp.com/thread/512558
https://community.nxp.com/thread/352862
https://community.nxp.com/thread/498809
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?
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
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