-
Hello mcuboot community, I am new to mcuboot and for the past week i have been trying to update the image by writing the contents of a zephyr.signed.bin file from an SD card and storing it to slot1 with I have checked that the SD related functions work fine (and we have been using SD for a while), so
When running Below is the screen/putty output where it gets stuck after the sys_reboot() call when trying to upgrade from 1.0.0 to 1.0.1. I notice that it shows Primary image and Scratch, but no entry for secondary image. Ideas what could be wrong?:
It stays like that forever, basically. Here is the relevant code for main.c (the rest of the code concerns only the SD card). Also, assume that the
For reference, main node dev is in reality a mimxrt1024_evk with some overlays and changes to .dts and pinmux. Flashing mcuboot with board set as mimxrt1024_evk and then flashing the actual image with board set as main_node_dev seems to work fine though. Maybe this could be a problem? (I don't think it is the case, though) Here are some configs I am using that might be relevant, although I have looked up most of them I am not sure about all of them. I am using more configs but they don't seem very relevant.
Additional info:
Here is also the flash map for mimxrt1024_evk. Most sections in the .dts look identical to our "rogue" version main_node_dev, specifically the flash map: https://github.com/zephyrproject-rtos/zephyr/blob/main/boards/arm/mimxrt1024_evk/mimxrt1024_evk.dts#L56-L83 Please let me know if there is more info I can provide or something else I can try. Any help will be muchly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Are you able to attach a debugger. It would be helpful to try and trace the codeflow once it prints the "Swap type: test" message in loader.c. I would think it should be starting a swap at this point. |
Beta Was this translation helpful? Give feedback.
Are you able to attach a debugger. It would be helpful to try and trace the codeflow once it prints the "Swap type: test" message in loader.c. I would think it should be starting a swap at this point.