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
contr2889 said:I had errors with this toolchain
So what "errors", exactly, did you have?
contr2889 said:Which is the correct way to install this toolchain
What makes you think that it's a problem with the installation ?
contr2889 said:I hope you can hep me.
a bit hard given the (lack of) detail provided
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
contr2889 said: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:
But that's GCC - not the ARM Compiler.
The problem is here:ld.exe: unrecognized option '--major-image-version'You will need to identify why an apparently unrecognized option is being given to ld.The GNU toolchain forum may be able to offer more help with GCC:community.arm.com/.../gnu-toolchain-forum
It seems the problem is in file Link.txt
"C:\Program Files\CMake\bin\cmake.exe" -E rm -f CMakeFiles\program_test.dir/objects.aC:\MinGW\bin\ar.exe cr CMakeFiles\program_test.dir/objects.a @CMakeFiles\program_test.dir\objects1.rsp
arm-none-eabi-g++ -std=gnu++98 -fno-rtti -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -Os -mcpu=cortex-m3 -mthumb -g -Wl,--gc-sections -Wl,--wrap,main -Wl,--wrap,exit -Wl,--wrap,atexit -mcpu=cortex-m3 -mthumb "-TC:/Users/contr/Documents.../mbed-dev/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_GCC_ARM/LPC1768.ld" -static -Wl,--whole-archive CMakeFiles\program_test.dir/objects.a -Wl,--no-whole-archive -o program_test.exe -Wl,--out-implib,libprogram_test.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\program_test.dir\linklibs.rsp
if i quit these flag the output don recognize --minor-image-version Flag. I don't know where could be the problem.
https://community.arm.com/developer/tools-software/oss-platforms/f/gnu-toolchain-forum/48440/gnu-arm-embedded-toolchain-visual-studio-code