Page 1 of 1

Unable to compile any ARM demos (gcc-arm-embedded)

Posted: Mon May 20, 2013 6:28 pm
by strobot
Hi,

I just got the latest version of ChibiOS from GitHub and am having trouble getting any of the ARM projects to compile.

I am using:
gcc-arm-embedded 4.7 from https://launchpad.net/gcc-arm-embedded
and
Make for Windows from http://gnuwin32.sourceforge.net/packages/make.htm

I've tried this on two different computers and have gotten the same results. What am I missing?

I get this error when I try to compile

Code: Select all

c:\Users\alex\Dropbox\Github\ChibiOS\demos\ARMCM4-STM32F303-DISCOVERY>make
make
The system cannot find the path specified.
Compiler Options
arm-none-eabi-gcc -c -mcpu=cortex-m4 -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -ffunction-sections -fdata-sections -fno-common  -Wall -Wextra -Wstrict-prototypes -Wa,-alms=build/lst/  -DCORTEX_USE_FPU=FALSE  -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -MD -MP -MF .dep/build.d -I. -I../../os/ports/common/ARMCMx/CMSIS/include -I../../os/ports/common/ARMCMx -I../../os/ports/GCC/ARMCMx -I../../os/ports/GCC/ARMCMx/STM32F3xx -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/STM32F30x -I../../os/hal/platforms/STM32 -I../../os/hal/platforms/STM32/GPIOv2 -I../../os/hal/platforms/STM32/I2Cv2 -I../../os/hal/platforms/STM32/SPIv2 -I../../os/hal/platforms/STM32/USARTv2 -I../../os/hal/platforms/STM32/USBv1 -I../../boards/ST_STM32F3_DISCOVERY -I../../os/various/devices_lib/accel -I../../os/various main.c -o main.o
ECHO is off.
mkdir -p build/obj
The syntax of the command is incorrect.
make: *** [build] Error 1

Re: Unable to compile any ARM demos (gcc-arm-embedded)

Posted: Mon May 20, 2013 6:32 pm
by Giovanni
Hi,

You are missing other required utils like "mkdir.exe". Download the "YAGARTO Tools", it includes make and everything else is required.

http://www.yagarto.de

You may also consider using ChibiStudio and get rid of all tool problems.

Giovanni

Re: Unable to compile any ARM demos (gcc-arm-embedded)

Posted: Mon May 20, 2013 7:52 pm
by strobot
Woohoo! Successful compilation after install the yagarto tools!

Thanks so much Giovanni, I'm excited to get started with ChibiOS. What an effort you have put in to this project.