Compiling using Makefile for esc32

Info and Discussion about the ESC32 hardware and software

Compiling using Makefile for esc32

Postby phynix » Sat May 03, 2014 11:53 am

Hello, I am trying to compile the firmeware using the makefile - with no success so far. Maybe someone can bring some light into this story:

I tried to follow the advices that were given for the AQ-firmeware:

Installed Crossworks 2.3
moved the installation-files to C:/CW
Installed Yatargo-Tools
Installed gawk manualy
installed gnuwin32
Downloaded the STM32F4xx_DSP_StdPeriph_Lib_V1.3.0 and put on folder with "onboard"
adjusted the paths in the makefile:
CC_PATH ?= C:/CW
EXE_AWK ?= C:/devTools/GnuWin32/bin/gawk
EXE_MKDIR ?= C:/devTools/GnuWin32/bin/mkdir
EXE_MV ?= C:/devTools/GnuWin32/bin/mv #added

But I still get an error with "make all":
Code: Select all
PS C:\CW\onboard> make all
process_begin: CreateProcess(NULL, svnversion, ...) failed.
Attempting to create build folders...
C:/devTools/GnuWin32/bin/mkdir -p ../build/Release/obj
## Compiling main.c -> ../build/Release/obj/main.o ##
C:/CW/gcc/arm-unknown-elf/bin/cc1 -mcpu=cortex-m3 -mthumb -mlittle-endian -mfpu=
vfp -mfloat-abi=soft -nostdinc -Wall -std=c99 -fno-dwarf2-cfi-asm -fno-builtin -
ffunction-sections -fdata-sections -fno-common -fmessage-length=0 -quiet -MD ../
build/Release/obj/main.d -MQ ../build/Release/obj/main.o -I. -I../STM32/include
-IC:/CW/include  -D__CROSSWORKS_ARM -D__ARM_ARCH_7M__ -D__TARGET_PROCESSOR=STM32
F103CB -D__TARGET_MD= -DSTM32F10X_MD= -D__THUMB -DUSE_STDPERIPH_DRIVER  -DNDEBUG
 -DSTARTUP_FROM_RESET -g1 -O2 main.c -o ../build/Release/obj/main.lst
In file included from stm32f10x_gpio.h:32:0,
                 from digital.h:22,
                 from main.h:24,
                 from main.c:19:
stm32f10x.h:479:30: fatal error: system_stm32f10x.h: No such file or directory
compilation terminated.
make: *** [../build/Release/obj/main.o] Error 1


what else do I miss? It looks like some files are still missing ...

Soeren
phynix
 
Posts: 73
Joined: Mon Feb 11, 2013 11:03 pm

Re: Compiling using Makefile for esc32

Postby Max » Sat May 03, 2014 9:20 pm

Hi Soeren,

I think you're missing files in this path
Code: Select all
-I../STM32/include

This is where it expects to find system_stm32f10x.h/c. These are distributed with the CW "support packages" for STM32 and also available from STM directly. There's also a package available here: viewtopic.php?f=31&t=44&start=80#p17041 The "STM32" folder should be at the same level as "onboard" and the StdPeriph_Lib stuff.

Also if you install command-line SVN it will get rid of the first (non fatal) error plus label your .hex file with the correct revision number. But it's not required.

Oh, also, just in case, get rid of the comment at the end of this line
Code: Select all
EXE_MV ?= C:/devTools/GnuWin32/bin/mv #added

make doesn't like inline comments very much (it might work in this case, but generally best to avoid it).

HTH,
-Max
Max
 
Posts: 2814
Joined: Mon Aug 13, 2012 9:45 pm
Location: Near Ithaca, NY, USA


Return to ESC32

Who is online

Users browsing this forum: No registered users and 5 guests

cron