cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMx Bugs - ADC, USART, NVIC

levak
Associate II
Posted on January 27, 2015 at 13:39

STM32CubeMx v4.6.0

STM32F4 v1.4.0

1. After close and open CubeMx project (create for STM32F4DISCOVERY), i see ADC1 config error (in the previous version of the same here):

0690X00000605SRQAY.png

2. I set USART speed 57600, it work on 115200 (in the previous version to work correctly):

0690X00000605fcQAA.png

3. After check and uncheck FreeRTOS checkbox, NVIC Sub priority becomes not available:

0690X00000605b9QAA.png

0690X00000605HvQAI.png

#nvic #adc #usart
5 REPLIES 5
stm32cube-t
Senior III
Posted on February 04, 2015 at 19:31

Hello,

Can you please share your .ioc file.

Can you confirm the procedure: did you load an MX 4.5 based project with MX 4.6? Or did you start this as a new project in MX 4.6.

Thank you

stm32cube-t
Senior III
Posted on February 05, 2015 at 20:11

Please note:

freeRTOSConfig.h defines (MAX_SYSCALL_INTERRUPT_PRIORITY) put some constraints on NVIC settings: interrupts that could potentially calling interrupt sage freeRTOS API functions must have a lower priority.

Moreover, the priority group is defined with 4 bit for preemption and 0 for sub-priority. So when freeRTOS is enabled, your subpriorites should be set to zero.

When freeRTOS is disabled, you can work with sub-priority 15 but in this case change the priority group to be 0 bit for pre-emption and 4 bits for subpriority.

levak
Associate II
levak
Associate II
Posted on February 19, 2015 at 09:33

When freeRTOS is disabled, i can not even choose sub priority, if freeRTOS is enabled/disabled.

stm32cube-t
Senior III
Posted on March 18, 2015 at 11:30

When freeRTOS is disabled, you need to change the priority group to be able to choose sub priority > 0.