upfront compiling error

Post here first, or if you can't find a relevant section!
Post Reply
jayhawk
Posts: 4
Joined: Mon May 18, 2020 8:50 pm

upfront compiling error

Post by jayhawk »

I'm trying to use roger's files to compile code with pwmWrite and the nice HardwareTimer, but I get a simple error:

Arduino: 1.8.12 (Windows 10), Board: "Generic STM32F103C series, STM32F103C8 (20k RAM. 64k Flash), HID bootloader 2.0, 72Mhz (Normal), Smallest (default)"

exec: "/bin/arm-none-eabi-g++": file does not exist
Error compiling for board Generic STM32F103C series.


In my limited experience, it looks to me like a Linux library file... How do you get the files running on Windows? I've pasted the unzipped folders in the hardware folder of Arduino and rebooted. That's all the installation instructions say since I'm using an stm32f1 series. I've tried compiling with various upload methods and "Optimize" options and they all return this error.

Is there a file that I forgot to run?
by fpiSTM » Wed May 20, 2020 5:14 am
Simply follow this wiki:
https://github.com/rogerclarkmelbourne/ ... stallation
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!
Go to full post
ag123
Posts: 1657
Joined: Thu Dec 19, 2019 5:30 am
Answers: 25

Re: upfront compiling error

Post by ag123 »

it seem to be missing the gcc/g++ arm-none-eabi compiler.

you could get the arm gcc compiler from
https://developer.arm.com/tools-and-sof ... /downloads
and set it up so that the ide can access them on the common paths
or
i think you could get a compiler if you follow the instructions to install the official core
(this is probably better if you intended to use the official core as well, but i've not actually done that on windows.
but on linux i figured out where the compiler resides and setup my paths so that the compiler can be accessed)
https://github.com/stm32duino/wiki/wiki
and you would need to make that compiler available on the paths for the libmaple core as well.
User avatar
fpiSTM
Posts: 1746
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: upfront compiling error

Post by fpiSTM »

Simply follow this wiki:
https://github.com/rogerclarkmelbourne/ ... stallation
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!
User avatar
Bakisha
Posts: 140
Joined: Fri Dec 20, 2019 6:50 pm
Answers: 5
Contact:

Re: upfront compiling error

Post by Bakisha »

Install (add) Arduino DUE from board manager. As I recall, that is what is need to install gcc compiler for Roger's core.
jayhawk
Posts: 4
Joined: Mon May 18, 2020 8:50 pm

Re: upfront compiling error

Post by jayhawk »

fpiSTM wrote: Wed May 20, 2020 5:14 am Simply follow this wiki:
https://github.com/rogerclarkmelbourne/ ... stallation
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!
I can't believe I missed this on the installation page! Thanks for the help!
User avatar
fpiSTM
Posts: 1746
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: upfront compiling error

Post by fpiSTM »

Welcome ;)
Post Reply

Return to “General discussion”