Skip to main content
Associate
October 15, 2025
Solved

Error when trying to compile using Arduino IDE for Blue Pill

  • October 15, 2025
  • 2 replies
  • 342 views

Hello!

I've been uploading code to my STM32 Bluepill using my computer but it died recently and I had to use a different computer. After adding the library for the STM32F1, i tried to compile and upload again but i received these errors. Im a bit lost on where to start and would appreciate if anyone could help point me in the right direction for a fix!!

 

The error code from the arduino terminal is as below


exec: "C:\\Users\\hisha\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\tools\\xpack-arm-none-eabi-gcc\\14.2.1-1.1/bin/arm-none-eabi-gcc": file does not exist

Compilation error: exec: "C:\\Users\\hisha\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\tools\\xpack-arm-none-eabi-gcc\\14.2.1-1.1/bin/arm-none-eabi-gcc": file does not exist

Best answer by Andrew Neil

Note that Blue Pill is not an ST Product, and likely does not contain a genuine STM32.

This forum isn't focussed on Arduino - the place for STM32 Arduino support is: https://www.stm32duino.com/

For general Arduino Support:  https://forum.arduino.cc/

 


@Potatogineer wrote:

The error code from the arduino terminal is as below


exec: "C:\\Users\\hisha\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\tools\\xpack-arm-none-eabi-gcc\\14.2.1-1.1/bin/arm-none-eabi-gcc": file does not exist

Compilation error: exec: "C:\\Users\\hisha\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\tools\\xpack-arm-none-eabi-gcc\\14.2.1-1.1/bin/arm-none-eabi-gcc": file does not exist


arm-none-eabi-gcc is the compiler executable - so your GCC compiler is not (properly) installed.

Arduino IDE specific forum: https://forum.arduino.cc/c/development-tools/ide-2-x/93

2 replies

Andrew Neil
Andrew NeilBest answer
Super User
October 15, 2025

Note that Blue Pill is not an ST Product, and likely does not contain a genuine STM32.

This forum isn't focussed on Arduino - the place for STM32 Arduino support is: https://www.stm32duino.com/

For general Arduino Support:  https://forum.arduino.cc/

 


@Potatogineer wrote:

The error code from the arduino terminal is as below


exec: "C:\\Users\\hisha\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\tools\\xpack-arm-none-eabi-gcc\\14.2.1-1.1/bin/arm-none-eabi-gcc": file does not exist

Compilation error: exec: "C:\\Users\\hisha\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\tools\\xpack-arm-none-eabi-gcc\\14.2.1-1.1/bin/arm-none-eabi-gcc": file does not exist


arm-none-eabi-gcc is the compiler executable - so your GCC compiler is not (properly) installed.

Arduino IDE specific forum: https://forum.arduino.cc/c/development-tools/ide-2-x/93

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate
October 15, 2025

Ah gotcha apologies and thanks for the clarification

Ozone
Principal
October 15, 2025

> The error code from the arduino terminal is as below
>exec: "C:\\Users\\hisha\\AppData\\Local\\Arduino15\\packages\\STMicroelectronics\\tools\\xpack-arm-none-eabi-gcc\\14.2.1-1.1/bin/arm-none-eabi-gcc": file does not exist

Dabbling in Arduino occasionally, I think it means the corresponding platform ("boards" in Arduino jargon) is not installed on this PC. Check within Arduino's  "board manager".

PS:
And yes, Arduino is not well supported on this forum.
Although a few members have some experience with it.

Andrew Neil
Super User
October 15, 2025

@Potatogineer  in particular, STM32 (or, in fact, any Cortex-M MCU) needs a different compiler from AVR (the "traditional" Arduino MCU).

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Ozone
Principal
October 15, 2025

The same toolchain should work for all boards based on Cortex M devices.
Not sure about the Arduino equivalent of the respective BSPs.