I'm testing the demo lwip_httpsrv_ota_enet on EVK-MIMXRT1064.
First, I've downloaded mcuboot_opensource and executed Bootloader Version 1.7.2
Then I run the demo lwip_httpsrv_ota_enet successfully, I give the command 'jump ResetISR' and the terminal displays the following:
Initializing PHY...
************************************************
mbedSSL HTTPS Server example
************************************************
IPv4 Address : 192.168.0.102
IPv4 Subnet mask : 255.255.255.0
IPv4 Gateway : 192.168.0.100
************************************************
Then, with a web browser I connect to https://192.168.0.102
I see the main web page of the example and I can upload a bin file.
I make signed application image (i.e. of Hello_world) of a bin file with the command
python imgtool.py sign --key sign-rsa2048-priv.pem --align 4 --header-size 0x400 --pad-header --slot-size 0x200000 --max-sectors 800 --version "1.0" hello_world.bin hello_world_SIGNED.bin
I obtain the signed file hello_world_SIGNED.bin
I upload that file from the web page button and I can read from serial
store_update_image: processed 14044 bytes
store_update_image: upload complete
After that I push the "Reboot" button as requested in readme file, and the board communicates :
write magic number offset = 0x33ff00
update_image_state(1): 0
SystemReset
And after that, the system hangs .
In theory, the application had to start and the browser had to activate the "Accept update" button. But nothing happens. I have to restart the board and I read the bootloader message
Bootloader Version 1.7.2
Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
Secondary image: magic=good, swap_type=0x1, copy_done=0x3, image_ok=0x3
Boot source: none
Failed reading image headers; Image=0
Unable to find bootable image
- What am i doing wrong in preparing the signed application?
- And why do I have to reprogram lwip_httpsrv_ota_enet every time after failing to load the image?