HI, after success with the bootloader with the MK64 (for anyone who seeks for help, see this link) I now understand few other things, obviously, did not think about them earlier (silly me), but better late than never...
My board is far away from the user, so for burning new version, the user has to go back to Bootloader mode, and then burn the new version. Since this cannot be achieved (since the board cannot be reached, so no buttons can be pushed to go back to boot loader mode for the KinetisFlashLoader to connect to the board):
1. can I enter bootloader mode through software? writing something to a register in my user application or something similar?
2. How can I burn new firmware to MK64 through UART? Obviously I need to put some extra code in my application. I guess in such case, boot loader does not have to be installed. Using the UART I will write the new user app to 0x0000 (or some other address) in the flash, so in the next boot, the MK64 will be loaded with the new user app (the old will be deleted from the flash).
Thanks!
Roy
Hi,
For the UART update of MK64 purpose, customer should write the uart bootloader first then the flashed bootloader will implement to download the customer application code. This is the usually way to do that. Anyway, the way mentioned by Maark is also functionable.
Hi Roy
The K64 supports Swap Block which allows the application to write new code to the second half of Flash and boot to it: Development of Swap in FRDM_K64
You can command the boot loader to start in boot loader mode by defining a pattern in RAM or other area that is not cleared on a SW reset. The application sets the pattern and commands a SW reset, and the boot loader detects that it was a SW reset (rather than WD reset or power up) and if the pattern matches it accepts this as a command.
Beware that all that you have done and will need to do is already available in the uTasker K64 project which is available as open source at
http://www.utasker.com/forum/index.php?topic=1721.msg7086#msg7086
along with guides and documentation.
Regards
Mark
Professional support for Kinetis: http://www.utasker.com/index.html
Remote desktop one-on-one coaching: http://www.utasker.com/services.html
Getting started to expert videos: https://www.youtube.com/results?search_query=utasker+shorts