STM32 Compilation ELF Padding

Sysprogs forums Forums VisualGDB STM32 Compilation ELF Padding

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35123
    Itamare
    Participant

    Hi,

    I am working on VisualGDB with MSBuild.

    I am looking for a solution to add gap padding to the ELF outputs at the size of the entire MCU flash.

    Where can I add this command under the VisualGDB interface?

    Thanks.

    • This topic was modified 4 months, 3 weeks ago by Itamare.
    • This topic was modified 4 months, 3 weeks ago by Itamare.
    #35129
    support
    Keymaster

    Hi,

    VisualGDB uses the GNU Linker to link the built executables. You can pass additional flags to the linker via project properties (exact location depends on the project type). That said, we are not aware of any linker setting that would pad the ELF file up to the size of the MCU FLASH. You might be able to get it working with some tweaks to the linker script, but it’s not something that VisualGDB can do out-of-the-box.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.