I'm planning on porting a very old ChibiOS application (version 2.5.x) to 18.2.1. When setting up my new version of chibios, the first thing I tried was to compile the RT-STM32-LWIP-FATFS-USB demo. I extracted lwip and fatfs into the ext directory, and ran make. Unfortunately i get this error:
make[1]: *** No rule to make target 'init.c', needed by 'build-stm32f407_olimex/obj/init.o'. Stop.
A lot has changed in Chibios since I used it last; what could be causing this error? i can see init.c in the lwip source tree, did I not expand it in the right place?
Thanks,
Woody Douglass
Building the RT-STM32-LWIP-FATFS-USB demo
Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: Building the RT-STM32-LWIP-FATFS-USB demo
Hi,
Is it compiling here, including init.c, could you try unpacking ChibiOS again? maybe some file got modified somehow.
Note that the demo project has 3 target boards (a new trick) are you compiling one of those or all three?
Giovanni
Is it compiling here, including init.c, could you try unpacking ChibiOS again? maybe some file got modified somehow.
Note that the demo project has 3 target boards (a new trick) are you compiling one of those or all three?
Giovanni
Re: Building the RT-STM32-LWIP-FATFS-USB demo
very strange. Here's my exact sequence of commands (from some arbitrary empty directory)
this causes the error above.
Edit: for more detail, i'm running debian 9, and i'm using the arm binary gcc version "2018-q2"
Code: Select all
unzip ~/Downloads/ChibiOS_18.2.1.zip
7z e -aoa -oChibiOS_18.2.1/ext/lwip/src ChibiOS_18.2.1/ext/lwip-2.0.3-patched.7z
7z e -aoa -oChibiOS_18.2.1/ext/fatfs/src ChibiOS_18.2.1/ext/fatfs-0.13_patched.7z
make -C ChibiOS_18.2.1/demos/STM32/RT-STM32-LWIP-FATFS-USB -f Makefile-stm32f407_olimex
this causes the error above.
Edit: for more detail, i'm running debian 9, and i'm using the arm binary gcc version "2018-q2"
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: Building the RT-STM32-LWIP-FATFS-USB demo
The archives must be unpacked exactly under /ext, no extra subdirectories, check paths in makefiles, must match.
Giovanni
Giovanni
Re: Building the RT-STM32-LWIP-FATFS-USB demo
I figured it out -- i was invoking 7z wrong. i needed
instead of
Thanks for the nudge!
Code: Select all
7z x
Code: Select all
7z e
Thanks for the nudge!
Who is online
Users browsing this forum: No registered users and 25 guests