I found that enabling CH_DBG_ENABLE_ASSERTS requires the CH_CFG_USE_DYNAMIC, else the system fails at link time with the following error:
Code: Select all
/tmp/ccTdgNWN.ltrans2.ltrans.o: In function `chThdCreate':
/home/emifre/Git/nrf_test/../ChibiOS/os/rt/src/chthreads.c:284: undefined reference to `chRegFindThreadByWorkingArea'
/tmp/ccTdgNWN.ltrans0.ltrans.o: In function `chThdCreateStatic':
/home/emifre/Git/nrf_test/../ChibiOS/os/rt/src/chthreads.c:333: undefined reference to `chRegFindThreadByWorkingArea'
collect2: error: ld returned 1 exit status
It seems like it is not the intended result perhaps as there is no dependency stated?
Best
Emil