I tried to move my old project from ChibiOS v.17.x to current modern ChibiOS 20.x and have trouble.
MCU is STM32L051, ChibiOS - current trunk, Compiler - KEIL.
Code: Select all
compiling nvic.c...
..\lib\ChibiOS\os\hal\ports\common\ARMCMx\nvic.c(83): error: #20: identifier "SCnSCB" is undefined
uint32_t n = SCnSCB->ICTR;
Code: Select all
file "..\os\hal\ports\common\ARMCMx\nvic.c"
...
76 /**
77 * @brief NVIC clearing and initialization.
78 */
79 void nvicInit(void) {
80 #if defined(__CORE_CM0_H_GENERIC) || defined(__CORE_CM23_H_GENERIC)
81 uint32_t n = 0U;
82 #else
83 uint32_t n = SCnSCB->ICTR;
84 #endif
...