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!
Thank you Vidar,
That did the trick! We actually pulled the Zephyr linker.ld script file local to our build and modified it to do the padding at the end of FLASH. See this link in the Zephyr project, https://github.com/zephyrproject-rtos/zephyr/commit/c107827bb7456d7ead8af0b1febe932e1b2c4423
Best,
Kurt
Thank you Vidar,
That did the trick! We actually pulled the Zephyr linker.ld script file local to our build and modified it to do the padding at the end of FLASH. See this link in the Zephyr project, https://github.com/zephyrproject-rtos/zephyr/commit/c107827bb7456d7ead8af0b1febe932e1b2c4423
Best,
Kurt