2020-09-13 07:44 PM
Hi, I recently migrated from CMSIS_V1 to CMSIS_V2 ( in STM32Cube_FW_H7_V1.7.0). That came with a significant increase in the number of defined thread priorities ~ around 56 priorities. However, CubeMX sets the FreeRTOS MAX_PRIORITIES parameter to 32. The setting is also disabled if CMSIS_V2 is enabled so it can't be changed. Even the CubeMX comment says it should be set to 56.
The consequence of this defect is that setting any thread priority above 32 they will all be truncated to same setting of (32 -1).
To workaround the issue, I undefined configMAX_PRIORITIES and reset it to 56.
Can ST please confirm this is a defect and fix it if required. Or does anyone know a better way to fix it?
Cheers
David
Solved! Go to Solution.
2020-09-14 03:04 AM
Hi @DOsbo
Thanks for the feedback, issue reported to the tool development team that will plan the correction.
Best regards,
Nesrine
2020-09-14 01:25 AM
Hello @DOsbo
I could not reproduce the issue (by using the last STM32CubeMX version) . Could you please tell me which MCU do you use or share your ioc file to check the problem.
Best regards,
Nesrine
2020-09-14 01:46 AM
2020-09-14 01:50 AM
Another strange thing is I just downloaded the same ioc that I sent you. However, when I opened it said it was set to CMSIS_V1 (not v2). When I switch that file to CMSIS_V2, it still does not set the max priorities to 56.
2020-09-14 03:04 AM
Hi @DOsbo
Thanks for the feedback, issue reported to the tool development team that will plan the correction.
Best regards,
Nesrine
2020-09-14 03:07 AM
Awesome. Thank you for looking into it for me.
Cheers
David