Skip to main content
WYang.2
Visitor II
May 6, 2020
Question

Build multiple binary files in 1 project

  • May 6, 2020
  • 2 replies
  • 1348 views

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!

This topic has been closed for replies.

2 replies

berendi
Principal
May 6, 2020

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

Tesla DeLorean
Guru
May 6, 2020

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 VenmoUp vote any posts that you find helpful, it shows what's working..