Page 1 of 1

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

Posted: Fri Mar 26, 2021 11:33 pm
by stapelberg
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!

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

Posted: Sat Mar 27, 2021 12:15 am
by psyco
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.

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

Posted: Sat Mar 27, 2021 2:26 am
by mobyfab
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.