Please help me stm32 arduino arm-none-eabi-g++: error:

arm-none-eabi-g++: error: i5.platformio\packages\framework-arduinoststm32\variants\PILL_F103XX\ldscript.ld: No such file or directory
*** [.pio\build\bluepill_f103c8\firmware.elf] Error 1

See

Do you have a space in your Windows username?

No i dont have it in my user name

Then state your full platformio.ini and the code you’re running.

Are you sure? That’s exactly what someone else thought, and they were wrong… :open_mouth:

Go to your file manager, and type %userprofile% in the location bar, and hit enter. Then either screenshot or copy and paste the path that that expanded to. If there’s a space, or an accent there, that could be your problem!

1 Like

Sorry, i thank i have a space in my user name :face_with_raised_eyebrow:

Easiest way around that is to set the build_dir, then you can locate it somewhere else :wink:

i.e. something like

[platformio]
build_dir = "C:/pio-build"

should work (may need to create the folder before the first build).

https://docs.platformio.org/en/latest/projectconf/section_platformio.html#build-dir

Thank you ! I have deletted space between my username and all goes well !! :wink:

1 Like