Page 1 of 1

Building the RT-STM32-LWIP-FATFS-USB demo

Posted: Wed Jul 11, 2018 8:18 pm
by wdouglass
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

Re: Building the RT-STM32-LWIP-FATFS-USB demo

Posted: Wed Jul 11, 2018 8:24 pm
by Giovanni
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

Re: Building the RT-STM32-LWIP-FATFS-USB demo

Posted: Wed Jul 11, 2018 8:36 pm
by wdouglass
very strange. Here's my exact sequence of commands (from some arbitrary empty directory)

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"

Re: Building the RT-STM32-LWIP-FATFS-USB demo

Posted: Wed Jul 11, 2018 8:43 pm
by Giovanni
The archives must be unpacked exactly under /ext, no extra subdirectories, check paths in makefiles, must match.

Giovanni

Re: Building the RT-STM32-LWIP-FATFS-USB demo

Posted: Wed Jul 11, 2018 8:49 pm
by wdouglass
I figured it out -- i was invoking 7z wrong. i needed

Code: Select all

7z x
instead of

Code: Select all

7z e


Thanks for the nudge!