Skip to main content
Senior II
July 30, 2025
Question

custom objcopy command

  • July 30, 2025
  • 1 reply
  • 163 views

Is it possible to edit the objcopy command emitted by the Stm32CubeIDEIDE? I need to make some adjustments to keep some RAM addresses from showing up in the hex file. Advice on the internet seems to thing this is easily adjustable in the IDE. However, I do not see any place where this can be modified.

 

Thanks,

Carl

1 reply

KnarfB
Super User
July 30, 2025

Advice on the internet 

The internet is full of everything.

At least you can add a custom post-build command which could mimic the original objcopy with your adjustments and generate an additional output file.

keep some RAM addresses from showing up in the hex file

Maybe you can adapt the .ld file here?

hth

KnarfB