Hi,
not sure if this topic belongs to 'Development and Feedback' ...
Stumbled upon ChibiOS via a post in the Sparkfun Forum and decided to give it a try - pretty impressive so far!
Ran into an issue compiling the FatFS demo for 'ARM7-LPC214x-FATFS-GCC'; after extracting the corresponding zip archive in 'ext' and calling 'make' i get the following error(s):
**** Build of configuration Default for project ARM7-LPC214x-FATFS-GCC ****
make
arm-none-eabi-gcc ../../os/ports/GCC/ARM7/crt0.o ../../os/ports/GCC/ARM7/chcoreasm.o ../../os/ports/GCC/ARM7/LPC214x/vectors.o ../../os/ports/GCC/ARM7/chcore.o ../../os/kernel/src/chsys.o ../../os/kernel/src/chdebug.o ../../os/kernel/src/chlists.o ../../os/kernel/src/chvt.o ../../os/kernel/src/chschd.o ../../os/kernel/src/chthreads.o ../../os/kernel/src/chregistry.o ../../os/kernel/src/chsem.o ../../os/kernel/src/chmtx.o ../../os/kernel/src/chcond.o ../../os/kernel/src/chevents.o ../../os/kernel/src/chmsg.o ../../os/kernel/src/chmboxes.o ../../os/kernel/src/chqueues.o ../../os/kernel/src/chmemcore.o ../../os/kernel/src/chheap.o ../../os/kernel/src/chmempools.o ../../test/test.o ../../test/testthd.o ../../test/testsem.o ../../test/testmtx.o ../../test/testmsg.o ../../test/testmbox.o ../../test/testevt.o ../../test/testheap.o ../../test/testpools.o ../../test/testdyn.o ../../test/testqueues.o ../../test/testbmk.o ../../os/hal/src/hal.o ../../os/hal/src/adc.o ../../os/hal/src/can.o ../../os/hal/src/mac.o ../../os/hal/src/pal.o ../../os/hal/src/pwm.o ../../os/hal/src/serial.o ../../os/hal/src/spi.o ../../os/hal/src/mmc_spi.o ../../os/hal/platforms/LPC214x/hal_lld.o ../../os/hal/platforms/LPC214x/pal_lld.o ../../os/hal/platforms/LPC214x/serial_lld.o ../../os/hal/platforms/LPC214x/spi_lld.o ../../os/hal/platforms/LPC214x/vic.o ../../ext/fatfs/src/diskio.o ../../ext/fatfs/src/ff.o ../../ext/fatfs/src/option/syncobj.o ../../boards/OLIMEX_LPC_P2148//board.o ../../boards/OLIMEX_LPC_P2148//buzzer.o ../../os/various/evtimer.o ../../os/various/syscalls.o main.o -mcpu=arm7tdmi -nostartfiles -Tch.ld -Wl,-Map=./ch.map,--cref,--no-warn-mismatch,--gc-sections -mno-thumb-interwork -o ch.elf
../../ext/fatfs/src/diskio.o: In function `disk_write':
/temp/ChibiOS_2.0.8/demos/ARM7-LPC214x-FATFS-GCC/../../ext/fatfs/src/diskio.c:118: undefined reference to `mmcStartSequentialWrite'
/temp/ChibiOS_2.0.8/demos/ARM7-LPC214x-FATFS-GCC/../../ext/fatfs/src/diskio.c:121: undefined reference to `mmcSequentialWrite'
/temp/ChibiOS_2.0.8/demos/ARM7-LPC214x-FATFS-GCC/../../ext/fatfs/src/diskio.c:126: undefined reference to `mmcStopSequentialWrite'
[...]
collect2: ld returned 1 exit status
make: *** [ch.elf] Error 1
Had a look at the relevant makefiles and 'halconf.h' but couldn't find any obvious errors.
Tried the 'ARMCM3-STM32F103-FATFS-GCC' demo as well - basically the same.
I'm using ChibiOS 2.0.8 with Codesourcery's G++ Lite Edition (2010.09-51) on Ubuntu 10.10, target is an Olimex LPC-P2148 board.
Best regards & a Happy New Year btw.,
Steffen Elste
FatFS Demo not compiling
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: FatFS Demo not compiling
Hi Steffen,
Thanks for appreciation and happy new year to you too.
I just downloaded and built the demo under Ubuntu 10.10 using that same CodeSourcery release but I am unable to reproduce the problem. It is strange, could mmc_spi.c have been inadvertently modified somehow? Try to extract the OS from the archive again.
Giovanni
Thanks for appreciation and happy new year to you too.
I just downloaded and built the demo under Ubuntu 10.10 using that same CodeSourcery release but I am unable to reproduce the problem. It is strange, could mmc_spi.c have been inadvertently modified somehow? Try to extract the OS from the archive again.
Giovanni
Re: FatFS Demo not compiling
Hi Giovanni,
thanks for the hint - re-extracted the archive(s) and did another build ... successful this time!
Strange though, a quick comparison of the two 'hal'-directories didn't show any differences regarding the source files.
Well, it works - no need to worry too much about it
Cheers,
Steffen
thanks for the hint - re-extracted the archive(s) and did another build ... successful this time!
Strange though, a quick comparison of the two 'hal'-directories didn't show any differences regarding the source files.
Well, it works - no need to worry too much about it
Cheers,
Steffen