Page 1 of 1

Error of compilation to board Generic STM32F103C series

Posted: Thu Apr 01, 2021 6:42 pm
by VD_ALMEIDA
Hello guys,

How are you ?

I'm new here, and also new with bluepill, I started to develop a prototype with bluepill as microcontroller.

I'm having problems to compile the program in the bluepill.

exec: "/bin/arm-none-eabi-g++": file does not exist

Please, anyone can help me ?

Full message
Arduino: 1.8.13 (Windows 7), Placa:"Generic STM32F103C series, STM32F103C8 (20k RAM. 64k Flash), STLink, 72Mhz (Normal), Smallest (default)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Vitão\Documents\Arduino\libraries -fqbn=Arduino_STM32-master:STM32F1:genericSTM32F103C:device_variant=STM32F103C8,upload_method=STLinkMethod,cpu_speed=speed_72mhz,opt=osstd -ide-version=10813 -build-path C:\Users\VITO~1\AppData\Local\Temp\arduino_build_745094 -warnings=none -build-cache C:\Users\VITO~1\AppData\Local\Temp\arduino_cache_374976 -prefs=build.warn_data_percentage=75 -verbose C:\Users\Vitão\Desktop\teste_inicial\teste_inicial.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Vitão\Documents\Arduino\libraries -fqbn=Arduino_STM32-master:STM32F1:genericSTM32F103C:device_variant=STM32F103C8,upload_method=STLinkMethod,cpu_speed=speed_72mhz,opt=osstd -ide-version=10813 -build-path C:\Users\VITO~1\AppData\Local\Temp\arduino_build_745094 -warnings=none -build-cache C:\Users\VITO~1\AppData\Local\Temp\arduino_cache_374976 -prefs=build.warn_data_percentage=75 -verbose C:\Users\Vitão\Desktop\teste_inicial\teste_inicial.ino

Using board 'genericSTM32F103C' from platform in folder: C:\Program Files (x86)\Arduino\hardware\Arduino_STM32-master\STM32F1

Using core 'maple' from platform in folder: C:\Program Files (x86)\Arduino\hardware\Arduino_STM32-master\STM32F1

Detecting libraries used...

/bin/arm-none-eabi-g++ -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -fno-use-cxa-atexit -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -w -x c++ -E -CC -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10813 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DSERIAL_USB -DGENERIC_BOOTLOADER -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ -DMCU_STM32F103C8 -mthumb -march=armv7-m -D__STM32F1__ "-IC:\\Program Files (x86)\\Arduino\\hardware\\Arduino_STM32-master\\STM32F1\\system/libmaple" "-IC:\\Program Files (x86)\\Arduino\\hardware\\Arduino_STM32-master\\STM32F1\\system/libmaple/include" "-IC:\\Program Files (x86)\\Arduino\\hardware\\Arduino_STM32-master\\STM32F1\\system/libmaple/stm32f1/include" "-IC:\\Program Files (x86)\\Arduino\\hardware\\Arduino_STM32-master\\STM32F1\\system/libmaple/usb/stm32f1" "-IC:\\Program Files (x86)\\Arduino\\hardware\\Arduino_STM32-master\\STM32F1\\system/libmaple/usb/usb_lib" "-IC:\\Program Files (x86)\\Arduino\\hardware\\Arduino_STM32-master\\STM32F1\\cores\\maple" "-IC:\\Program Files (x86)\\Arduino\\hardware\\Arduino_STM32-master\\STM32F1\\variants\\generic_stm32f103c" "C:\\Users\\VITO~1\\AppData\\Local\\Temp\\arduino_build_745094\\sketch\\teste_inicial.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

exec: "/bin/arm-none-eabi-g++": file does not exist

Erro compilando para a placa Generic STM32F103C series

Re: Error of compilation to board Generic STM32F103C series

Posted: Fri Apr 02, 2021 7:18 am
by fpiSTM
Hi
It seems you do not install the toolchain.
Read the wiki:
https://github.com/rogerclarkmelbourne/ ... on#all-oss
  • Run the IDE, and on the Tools menu, select the Boards manager, and install the Arduino SAM boards (Cortex-M3) from the list of available boards. You must do this step, it installs the arm-none-eabi-g++ toolchain!

Re: Error of compilation to board Generic STM32F103C series

Posted: Fri Apr 02, 2021 10:57 pm
by feluga
Hi Victor,

One important step when intalling Roger's Core (STM32 Arduino based on LibMaple) is to install "Arduino Due Board" in order to setup the ARM Cortex M3 Tool Chain. By intalling the DUE, Arduino IDE will install necessary ARM compiler and others related to it.

This step is detailed in the document fpiSTM has pointed to you:

"Run the IDE, and on the Tools menu, select the Boards manager, and install the Arduino SAM boards (Cortex-M3) from the list of available boards. You must do this step, it installs the arm-none-eabi-g++ toolchain!"

Good luck!