Problem: If I set RTOS task priority to value higher than osPriorityNormal causes a Hard Fault when running on STM32F47xx. Has anyone else encountered this?
I'm running CubeMX 5.1 with FW_F4 V1.24.0 and Atollic TrueStudio 9.3.0. I have eleven RTOS tasks defined in CubeMX, but only one is actually invoked with its StartTask routine. As long as the priority on the task is osPriorityNormal(0) or lower, the code runs on my STM32F407 Discovery board. If I assign a higher priority (AboveNormal, High, RealTime), the code halts in the Hard Fault Handler routine. The actual fault is a Bus Fault, precise data access violation. This version of CubeMX/FW_F4 requires the use of CMSIS RTOS.
Has anyone else run into this problem? As a workaround, I'm limiting the tasks to the priority levels of Idle, Low, BelowNormal and Normal.
cjwilde
