arm-eabi-objcopy.exe unrecognized option

Sysprogs forums Forums VisualGDB arm-eabi-objcopy.exe unrecognized option

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34547
    kellac1
    Participant

    Hi,

    Recently, I have been having an issue with building my project which includes a bootloader. It has worked in the past, and appears to work on VS 2017, but not 2019 or 2022. However, I have recently upgraded my VisualGDB to the latest. My current environment looks like the following:

    • VS 2022
    • VisualGDB 5.6r9 (build 4777)
    • GCC 7.2.0 GDB 8.0.1 Revision 3
    • STM32 BSP 2018.08

    I get the following new error when building:

    C:\SysGCC\arm-eabi_v7\bin\arm-eabi-objcopy.exe: unrecognized option `--set-section-alignment'

    Please advise.

    Thank you,

    Chris

    #34548
    support
    Keymaster

    Hi,

    The –set-section-alignment argument is used by MSBuild projects to align the embedded bootloader to the specified boundary. You can find the implementation details in the <VisualGDB directory>\MSBuild\Targets\binary.targets file.

    If you are using an older toolchain that doesn’t support it, you can either try patching binary.targets to remove the -set-section-alignment part, or simply copy arm-none-eabi-objcopy.exe from a newer toolchain. Objcopy is only used for translating between various file formats (ELF/HEX/binary) and won’t affect the output of the compiler.

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