Hi,
We need the ability to pad the end of our Zephyr application for 8 byte alignment. Is there a way to do this?
Thanks
Hi,
We need the ability to pad the end of our Zephyr application for 8 byte alignment. Is there a way to do this?
Thanks
Hi Sigurd,
Our Zephyr application images are encrypted and require the end FLASH address to fall on an 8 byte boundary. We use our own custom non-Zephyr bootloader to decrypt the Zephyr application from SPIFLASH prior to programming into FLASH memory.
We use a custom linker script file to locate variables in certain sections of SRAM and FLASH memory. Is there a simple way to modify the alignment of code/data at the end of FLASH memory?
In the past, a simple ". = ALIGN(8);" statement in the linker script file will work to pad memory to an 8 byte alignment at the end of FLASH.
Thanks!
Hi,
I don't see any option in Zephyr to this. As far as I can see, it looks like it's set to align 4. https://github.com/zephyrproject-rtos/zephyr/blob/main/include/zephyr/arch/arm/aarch32/cortex_m/scripts/linker.ld#L146
But there could be some other ways to do it. Maybe you could check with the Zephyr community in the Zephyr discord. https://docs.zephyrproject.org/latest/develop/getting_started/index.html#asking-for-help
Hi,
I don't see any option in Zephyr to this. As far as I can see, it looks like it's set to align 4. https://github.com/zephyrproject-rtos/zephyr/blob/main/include/zephyr/arch/arm/aarch32/cortex_m/scripts/linker.ld#L146
But there could be some other ways to do it. Maybe you could check with the Zephyr community in the Zephyr discord. https://docs.zephyrproject.org/latest/develop/getting_started/index.html#asking-for-help