I'm using the pre-programmed flashloader on a MK22 chip to program an own configured version of the NXP Bootloader 2.0 and an application software.
The bootloader is running from flash and I'm able to update the application software via the blhost tool. But how can I upgrade the bootloader? Since it is running from flash in an restricted area I'm not able to erase or write to that.
Hi @martinoss
To update the bootloader you could do a mass erase to your board an then flash a new bootloader using any tool of your convenience, for example blhost, before doing a mass erase, please verify the security of your board is configured correctly, please read application note AN4507 for more information of the security flash protection features. Let me know if you have another question.
Best Regards, Miguel.
Thanks for your response.
Since the present bootloader is running from flash, don't I need to download an application software first having the same bootloader functionalities but is running from RAM? This to be able to do the mass erase and communicate with blhost to downloads the new bootloader to flash?
Best regards, Martin
Hi @martinoss
Correct, you need a bootloader running from RAM, on the sdk there is a flasloader loader demo, the example could help you. Let me know if it helps you.
Best Regards, Miguel.