This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM Toolchain Visual Studio Code

Hi everyone,

    I am trying to compile a code in Visual Studio Code (SO Windows 10) using ARM ToolChain, but I had errors with this toolchain. Which is the correct way to install this toolchain to be used in VSC? I hope you can hep me.

Best Regards

Parents
  • Hi Andy, I am exporting a project using ARM Toolchain from linux to windows. I already solved many of the errors only adding the path of ARM Toolchain to environment variables. I am new with this toolchain then i was only asking for a tutorial or guide to use this toolchain with VSC in windows.

    Now I can compile but still I have some errors like

    [build] [ 60%] Linking CXX executable program_test.exe
    [build] c:/program files (x86)/gnu arm embedded toolchain/10 2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: unrecognized option '--major-image-version'
    [build] c:/program files (x86)/gnu arm embedded toolchain/10 2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: use the --help option for usage information
    [build] collect2.exe: error: ld returned 1 exit status
    [build] CMakeFiles\program_test.dir\build.make:745: recipe for target 'program_test.exe' failed
    [build] mingw32-make.exe[2]: *** [program_test.exe] Error 1
    [build] CMakeFiles\Makefile2:122: recipe for target 'CMakeFiles/program_test.dir/all' failed
    [build] mingw32-make.exe[1]: *** [CMakeFiles/program_test.dir/all] Error 2
    [build] Makefile:101: recipe for target 'all' failed
    [build] mingw32-make.exe: *** [all] Error 2
    [build] Build finished with exit code 2
    I think the problem could be the compiler is trying to make an executable when it must generate a binary file for microcontroller. Do you have any clue to solve this problem?
Reply
  • Hi Andy, I am exporting a project using ARM Toolchain from linux to windows. I already solved many of the errors only adding the path of ARM Toolchain to environment variables. I am new with this toolchain then i was only asking for a tutorial or guide to use this toolchain with VSC in windows.

    Now I can compile but still I have some errors like

    [build] [ 60%] Linking CXX executable program_test.exe
    [build] c:/program files (x86)/gnu arm embedded toolchain/10 2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: unrecognized option '--major-image-version'
    [build] c:/program files (x86)/gnu arm embedded toolchain/10 2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: use the --help option for usage information
    [build] collect2.exe: error: ld returned 1 exit status
    [build] CMakeFiles\program_test.dir\build.make:745: recipe for target 'program_test.exe' failed
    [build] mingw32-make.exe[2]: *** [program_test.exe] Error 1
    [build] CMakeFiles\Makefile2:122: recipe for target 'CMakeFiles/program_test.dir/all' failed
    [build] mingw32-make.exe[1]: *** [CMakeFiles/program_test.dir/all] Error 2
    [build] Makefile:101: recipe for target 'all' failed
    [build] mingw32-make.exe: *** [all] Error 2
    [build] Build finished with exit code 2
    I think the problem could be the compiler is trying to make an executable when it must generate a binary file for microcontroller. Do you have any clue to solve this problem?
Children