cancel
Showing results for 
Search instead for 
Did you mean: 

Build multiple binary files in 1 project

WYang.2
Associate

Hello there :

I want to build multiple bin files with specific address and length in CubeIDE/Eclipse,

for example , I have my linker file like :

MEMORY:

{

SYSTEM_BIN(wr) :ORIGIN = 0x8008800 ,LENGTH = 8K

PCU_BIN(wr) :ORIGIN = 0x800A800 ,LENGTH = 8K

}

Can I build two 8K bin files (for SYSTEM_BIN and PCU_BIN) in this project?

Thanks!

3 REPLIES 3
berendi
Principal

Just generate one big bin file, and write a small program to cut it up, or use the dd utility on Linux.

Keil's FromELF utility by default spills different sparse sections into their own binary.

As thing go the ELF format is well documented and easily enough to code custom output, packaging or signing tools for..

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..