cancel
Showing results for 
Search instead for 
Did you mean: 

Error when trying to compile using Arduino IDE for Blue Pill

Potatogineer
Visitor

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

1 ACCEPTED SOLUTION

Accepted Solutions
Andrew Neil
Super User

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.

View solution in original post

5 REPLIES 5
Andrew Neil
Super User

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.

Ah gotcha apologies and thanks for the clarification

Ozone
Principal II

> 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.

@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.

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