cancel
Showing results for 
Search instead for 
Did you mean: 

how to get touchgfx project bin without bootloader in it.

naveen
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
MM..1
Chief III

Boy dont change config, instead learn and use cmd objcopy ... to split parts image

Split .BIN in multiple regions - STMicroelectronics Community

View solution in original post

2 REPLIES 2
MM..1
Chief III

Boy dont change config, instead learn and use cmd objcopy ... to split parts image

Split .BIN in multiple regions - STMicroelectronics Community

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.

Screenshot 2025-03-28 152402.png

below picture is before split

Screenshot 2025-03-28 152418.png