Hello evreone! I try to port my stm32f4 project to APM34F4 and maybe finded error in apm32f4xx_misc.h. Trouble in NVIC_PRIORITY_GROUP_T. It’s defined like NVIC_PRIORITY_GROUP_0 = 0×700 and etc. But priority group can be 0 to 7… Of cause when i call NVIC_SetPriorityGrouping original define of NVIC_PRIORITY_GROUP don’t work and after this, all calls of NVIC_EnableIRQRequest set all enterupt priority to 0. A it’s “nice”, that configASSERT( x ) blocked in FreeRTOS example, but all calls FreeRTOS function xxxfromISR finich by HARD_FALUL, case priority of all interuprt in system is 0. And now i have question is how many priority bits realy in APM32F405? Cose if i use original FreeRTOSConfig from 1.0.4 pack, when
#define configPRIO_BITS 4, it’s catch by configASSERT. But i look to Keil’s FreeRTOS config from APM32F4 pack and see that configPRIO_BITS = 3. And it seems, than it’s works.