I am using FRDM RW-612 evk for my development. For that I have flashed bootloader (frdmrw612_mcuboot_opensource) at 0x8000000 location. And application (frdmrw612_ota_mcuboot_server_wifi) at 0x8020400 location. I have uncommented #define CONFIG_BOOT_OTA_TEST to generate MCU boot for testing without image signature verification
I followed readme steps
(1) erase flash
(2) debugged bootloader stop the execution
(3) debugged application then pause the execution and in debugger console write ''jump ResetISR'. then start the execution and these steps worked for me.
I want to flash the bootloader and application without using debugger console. e.g. using Jlink or any other GUI tool
Hi @Meera_Shah.
Is there any particular reason that you are uploading the image to address 0x08020400? Since the start address for the primary slot is 0x8020000 this may cause MCUboot to not recognize the image.
Additionally please try to upload a signed image to address 0x08020000. To sign the image I suggest to use the MCUXpresso Secure Provisioning Tool (SPT) and following the "MCUXpresso Secure Provisioning Tool User Guide" file provided within the installation path of the SPT. In section "7.5 - MCUboot workflow" step 5 indicates the way to sign the image using the tool.
Notice that the "imgtool arguments" for the MCUboot to recognize a signed image are specified inside the "example_board_readme.md" file of the mcuboot example. Also, the path to find the keys to sign images is the following:
Please let me know if loading wifi ota server example as a signed binary image with J-Link Commander works for you.
connect
RW612
SWD
4000
loadbin , 0x8000000 I did the above for the bootloader, then ran:
loadbin , 0x8020400 However, after reset, the application does not boot. Console log:
hello sbl.
Disabling flash remapping function
Bootloader Version 2.0.0
Image 0 Primary slot: Image not found
Image 0 Secondary slot: Image not found
No slot to load for image 0
Unable to find bootable imageIt seems the bootloader cannot find the application image when flashed via J-Link.
Hello @Meera_Shah, hope you are doing well.
In order to flash the application or the bootloader you could use the Jlink commander tool by going through the following commands:
> connect
> RW612
> SWD
> 4000
> loadbin
Please let me know if this works out for you.