2025-03-27 9:36 AM
Hello!!
iam trying to read a bin file of my touchgfx project which has along with bootloader code in it. while when we generate the bin the linker script is genarate along with bootloader code.
but here i need a only a bin which has application data which will starts from 0x90000000. how can i do this
why i need?
i need this becouse i wrote my custom bootloader which will read the data using usb and write it in starting address of 0x90000000 and after successfully written then my code jump from the starting address.
i have tried removing below parameters from project:
BOOTLOADER (xrw) : ORIGIN = 0x08000000, LENGTH = 128k
TARGET(binary) /* specify the file format of binary file */
INPUT (../../ExtMem_Boot/bootloader.bin) /* bootloader bin file path (relative to the output folder)*/
OUTPUT_FORMAT(default) /* restore the out file format */
.bootloader :
{
. = ALIGN(4);
KEEP(../../ExtMem_Boot/bootloader.bin)
} > BOOTLOADER
after that build it and i flashed it in my board using my custom bootloader.
but it's not working as expected. can anyone help me here where i went wrong
for your reference i been adding the images.
Solved! Go to Solution.
2025-03-27 9:44 AM - edited 2025-03-27 9:45 AM
Boy dont change config, instead learn and use cmd objcopy ... to split parts image
Split .BIN in multiple regions - STMicroelectronics Community
2025-03-27 9:44 AM - edited 2025-03-27 9:45 AM
Boy dont change config, instead learn and use cmd objcopy ... to split parts image
Split .BIN in multiple regions - STMicroelectronics Community
2025-03-28 3:15 AM
Hi, thank you for the replay,
I been facing an issue here, memory got automatically aligning. when I go through bin split. I Have added memory images for your reference.
i tried flash it and run but it's not working. can you help me what I have to do here.
the below picture is after split.
below picture is before split