You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initially I had an issue jumping to the app because it was jumping to the header instead of the image which i resolved by disabling ARM_MPU and defining dtcm_app: memory@20000400 node in the application overlay so it jumps past the header. now the app starts and I can see OS logs printing stack pointer at 0x2000xxxx which is valid DCTM address. However after those logs the app crashes.
I believe the issue may be that zephyr,flash and zephyr,sram are both pointing to DTCM but as described in the article above this is required.
I have attached my overlay and conf files for both mcuboot and blinky app as well as the bin, hex and elf for each. I;ve also attached dissasembly. Has anyone got this running on stm32?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use the RAM_LOAD feature of MCUBOOT on zephyr 4.2.0. I am running MCUBOOT from internal 64kb flash. I am storing a blinky sample in external flash to be copied to DTCM similar to this: https://community.nxp.com/t5/Zephyr-Project-Knowledge-Base/MCUboot-RAM-Loading-with-Zephyr/ta-p/2139539
Initially I had an issue jumping to the app because it was jumping to the header instead of the image which i resolved by disabling ARM_MPU and defining dtcm_app: memory@20000400 node in the application overlay so it jumps past the header. now the app starts and I can see OS logs printing stack pointer at 0x2000xxxx which is valid DCTM address. However after those logs the app crashes.
I believe the issue may be that zephyr,flash and zephyr,sram are both pointing to DTCM but as described in the article above this is required.
I have attached my overlay and conf files for both mcuboot and blinky app as well as the bin, hex and elf for each. I;ve also attached dissasembly. Has anyone got this running on stm32?
I am signing with this cmd:
imgtool sign --key C:/Partition_Environments/Pythons/zephyrproject/root-rsa-2048.pem --header-size 0x400 --align 4 --version 1.0.0 --slot-size 0x80000 --load-addr 0x20000000 --pad-header build/zephyr/zephyr.bin signed-hello-world.bin
Here are logs from printk:
logs with CONFIG_LOG enabled:
ram_load.zip
Beta Was this translation helpful? Give feedback.
All reactions