How can I set Interrupt priority with STM32CubeMX 6.0.1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-24 7:36 AM
If I natigate to "Pinout & Configuration > System Core > NVIC" I get a table of interrupts. This table shows those which have been enabled, their preemption priority and subpriority. Some of the priority entries have a note "Managed by RTOS". Yes I am using FreeRTOS Middleware.
On the whole I am inpressed how integrated things are but to my dismay I cannot alter the Priorities from "0". This means there will be a failue if any FreeRTOS function is called during an interrupt such as giving a semaphore "xSemaphoreGiveFromISR()". FreeRTOS checks the priority of interrupt and if a higher priority than a set level will apply an assert.
I can manually set the priority but that has to be done every time I run STM32CubeMX and not desirable.
How can I enter the correct priority and more's the point why is it set to 0, when MX has already decided the highest allowed?
One thing to note is that this project has been upgraded from earlier versions and I'm wondering if this is an associated issue?
Solved! Go to Solution.
- Labels:
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-04 6:43 PM
I'm not sure what I was doing wrong, but after s restart of the PC I can now change this field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-04 6:43 PM
I'm not sure what I was doing wrong, but after s restart of the PC I can now change this field.
