- 找这个定义 configMAX_SYSCALL_INTERRUPT_PRIORITY
再找 configPRIO_BITS
再找 __NVIC_PRIO_BITS
发现定为4U , 去掉U改成4就可以了
一般在 Drivers\CMSIS\Device\ST\STM32FXxx\Include\stm32xxx.h
如下图
或者
- 在__asm void xPortPendSVHandler( void )之前加上
#undef configPRIO_BITS
#define configPRIO_BITS 4
如下图
文章参考连接http://www.stm32cube.com/question/716