I have been trying to implement the bootloader in Kinetis K50 MCU with AN2295 without success (I searched NXP community first and modified the bootloader files according to other developers’ notes/suggestions, could not even establish the serial communication between the bootloader and PC software hc08sprg).
The following is a brief description of my system, the approach I followed, and the problems I encountered when I turned to AN2295. I would appreciate it very much if anyone can give me any suggestion.
Our MCU system:
My Approach
I landed on MCUBOOT: MCU Bootloader for NXP Microcontrollers page, clicked on DOWNLOAD tab:
Then I turned to AN2295 which at least implies that K50 is supported.
My understanding about implementing a bootloader (please correct me if I am wrong)
Problems in trying to make AN2295 serial bootloader work
My initial attempt of downloading the bootloader to MCU was not successfully because the default setting of debugger was simulator; after this was corrected, I believe the bootloader is programmed.
There was some warning but seems not to matter
However, when I tried to connect our MCU with computer in hc08sprg, nothing is received by the computer.
The following shows the modifications I made with the original bootloader
With all these efforts, I could not connect the MCU from my computer and I am seeking help
Hi Yinni,
I am assuming that you set K60_100MHz correct? Please note that AN2295 is an old software tool that is not recommended, we recommend using latest MCU boot software. You are correct that specific bootloader projects are not included in the K50 SDK, however, you can check chapter 10 of the MCU Bootloader v2.5.0 Reference Manual for porting guide. https://www.nxp.com/docs/en/reference-manual/MCUBOOTRM.pdf
You can see an example of this in this link for TWR-K60D100: https://community.nxp.com/t5/Kinetis-Microcontrollers/Port-MCUBoot2-0-0-to-TWR-K60D100/ta-p/1117267
Best regards,
Felip
Hi
Note that AN2295, Kboot and a number of loaders (like SD card, memory stick, Ethernet, USB-MSD) for the K5x (and almost any other Kinetis part) are available as out-of-the-box builds for most IDEs in the open source uTasker Kinetis project on GITHub
https://www.utasker.com/kinetis/TWR-K53N512.html
Regards
Mark
[uTasker project developer for Kinetis and i.MX RT]
Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements
For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key: https://www.utasker.com/iMX/RT1064.html