compile error: CH_DBG_TRACE_MASK not defined
Posted: Tue Nov 28, 2017 7:03 pm
Hi there,
Since last weekend, when trying to compile one of the AVR test or demo applications in the trunk branch, I get an error similar to the one below;
Aṕparently, this is caused by a change in os/rt/include/chchecks.h, which no longer defines CH_DBG_TRACE_MASK, but throws an error instead if CH_DBG_TRACE_MASK isn't defined.
Checking the chconf.h file in the AVR apps' chconf.h file I see the line
but no line defining CH_DBG_TRACE_MASK, whereas in some STM32 chconf.h file I see
Does this means the AVR files need to be updated? Is the update just the insertion of the line above?
Thanks.
Since last weekend, when trying to compile one of the AVR test or demo applications in the trunk branch, I get an error similar to the one below;
Code: Select all
Compiling chsys.c
In file included from ../../../../os/rt/include/ch.h:91:0,
from ../../../../os/rt/src/chsys.c:36:
../../../../os/rt/include/chchecks.h:212:2: error: #error "CH_DBG_TRACE_MASK not defined in chconf.h"
#error "CH_DBG_TRACE_MASK not defined in chconf.h"
Aṕparently, this is caused by a change in os/rt/include/chchecks.h, which no longer defines CH_DBG_TRACE_MASK, but throws an error instead if CH_DBG_TRACE_MASK isn't defined.
Checking the chconf.h file in the AVR apps' chconf.h file I see the line
Code: Select all
#define CH_DBG_ENABLE_TRACE CH_DBG_TRACE_MASK_DISABLEDbut no line defining CH_DBG_TRACE_MASK, whereas in some STM32 chconf.h file I see
Code: Select all
#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLEDoes this means the AVR files need to be updated? Is the update just the insertion of the line above?
Thanks.