Skip to main content
EBris.2
Associate
June 5, 2020
Question

Binary output code

  • June 5, 2020
  • 2 replies
  • 820 views

Hi all,

I'm working on TouchGFX project that uses external QuadSPI Flash to store all graphics objects required by my designed HMI.

I want to obtain as result of the release building two distinct .bin files that contain respectively:

  • one bin file that contains the binary code of my application to be written into internal flash,
  • and a second bin file that contains the graphics objects to be written into external QuadSPI Flash.

Is there a way into STM32CubeIDE to do that?

Thank you in advance!

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
June 5, 2020

I'd imagine objcopy has options to selectively extract sections.

Can do so with FromELF in Keil, and the ELF format is not that complicated in the fixed/frosted forms used here.

I'd probably build my own signing tools to validate the integrity of the external data/images so the system doesn't drive into a ditch when things are corrupted.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
EBris.2
EBris.2Author
Associate
June 12, 2020

Hi clive1,

Thank you so much for your advice!

I have resolved by adding arm-none-eabi-objcopy command in Post-build steps section properties of my project.