ARMCMx removal breaks ChibiOS-Contrib targets (e.g. Teensy 3.6)

Report here problems in any of ChibiOS components. This forum is NOT for support.
stapelberg
Posts: 10
Joined: Wed Jun 03, 2020 9:17 pm
Has thanked: 4 times
Been thanked: 3 times

ARMCMx removal breaks ChibiOS-Contrib targets (e.g. Teensy 3.6)

Postby stapelberg » Fri Mar 26, 2021 11:33 pm

Hey,

When upgrading my working copy of ChibiOS, I noticed that my targets no longer compile.

I tracked it down to commit https://github.com/ChibiOS/ChibiOS/comm ... 176d568839, which removes file os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk (among others).

These files are currently in use by ChibiOS-Contrib, see e.g. https://github.com/ChibiOS/ChibiOS-Cont ... efile#L102

Would it be possible to revert the commit to keep the targets working, and find a solution that migrates the ChibiOS-Contrib code first?

Thanks!

psyco
Posts: 10
Joined: Fri May 22, 2020 1:40 am
Been thanked: 7 times

Re: ARMCMx removal breaks ChibiOS-Contrib targets (e.g. Teensy 3.6)

Postby psyco » Sat Mar 27, 2021 12:15 am

The solution is to change the port line to:

Code: Select all

include $(CHIBIOS)/os/common/ports/ARMv7-M/compilers/GCC/mk/port.mk


You will also need to update the chconf.h file using ChibiOS/tools/updater/update_chconf_rt.sh.

mobyfab
Posts: 471
Joined: Sat Nov 19, 2011 6:47 pm
Location: Versailles, France
Has thanked: 20 times
Been thanked: 28 times

Re: ARMCMx removal breaks ChibiOS-Contrib targets (e.g. Teensy 3.6)

Postby mobyfab » Sat Mar 27, 2021 2:26 am

Hello,

Contrib repo always targets the latest stable branch, so if it's on master don't expect it to work 100%.

Please open a github issue about this, it's easier for us to track.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests