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

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: barthess, RoccoMarco, utzig, lbednarz, tfAteba

wdouglass
Posts: 7
Joined: Wed Oct 29, 2014 8:00 pm

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

Postby wdouglass » Wed Jul 11, 2018 8:18 pm

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

User avatar
Giovanni
Site Admin
Posts: 11156
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 392 times
Been thanked: 323 times
Contact:

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

Postby Giovanni » Wed Jul 11, 2018 8:24 pm

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

wdouglass
Posts: 7
Joined: Wed Oct 29, 2014 8:00 pm

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

Postby wdouglass » Wed Jul 11, 2018 8:36 pm

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"

User avatar
Giovanni
Site Admin
Posts: 11156
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 392 times
Been thanked: 323 times
Contact:

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

Postby Giovanni » Wed Jul 11, 2018 8:43 pm

The archives must be unpacked exactly under /ext, no extra subdirectories, check paths in makefiles, must match.

Giovanni

wdouglass
Posts: 7
Joined: Wed Oct 29, 2014 8:00 pm

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

Postby wdouglass » Wed Jul 11, 2018 8:49 pm

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!


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 3 guests