This is a bit of a long shot, but could you try this edit and see if it helps?
Look in C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM
and edit 32F401RC.fcdx
At line 537 change the '1' to '2'
enable='HAL_NVIC_SetPriority(USART2_IRQn, 0, 2);
Re-load the project (or restart Flowcode)
Search found 394 matches
- Mon Jan 22, 2024 1:26 pm
- Forum: General
- Topic: STM32F401 UART
- Replies: 28
- Views: 3137
- Sun Jan 21, 2024 5:05 pm
- Forum: General
- Topic: STM32F401 UART
- Replies: 28
- Views: 3137
Re: STM32F401 UART
Uart_1 is receiving data every 500ms on a baud rate of 1200 That should leave plenty of processing time to do other tasks. As long as the interrupt code is just reading the UART char and storing in a buffer, then immediately returning from the interrupt routine. The buffer/array can be as big as yo...
- Sun Jan 21, 2024 11:10 am
- Forum: General
- Topic: STM32F401 UART
- Replies: 28
- Views: 3137
Re: STM32F401 UART
Hi, What you are requesting there is the equivalent of using the Flowcode circular buffer component, which is the best way of handling UART reception. Interrupt handlers always need to be as short as possible, therefore best to save the received character into a buffer and then process later in the ...
- Wed Jan 03, 2024 9:33 am
- Forum: General
- Topic: STM32 RTC calibration
- Replies: 5
- Views: 1013
Re: STM32 RTC calibration
What is your target device?
- Tue Jan 02, 2024 5:05 pm
- Forum: General
- Topic: STM32 RTC calibration
- Replies: 5
- Views: 1013
Re: STM32 RTC calibration
Just to add to Steve's comment, there is some C code in this post, I've not tested it though,
https://community.st.com/t5/stm32-mcus- ... d-p/188501
https://community.st.com/t5/stm32-mcus- ... d-p/188501
- Thu Dec 28, 2023 3:48 pm
- Forum: General
- Topic: ESP32: IDF-5.1 recommended version?
- Replies: 29
- Views: 15551
Re: ESP32: IDF-5.1 recommended version?
Followed the instructions given but this failed during install, attempting to fetch components. This appears to be attributed to timeouts when trying to fetch components, possibly the latency associated with cellular networks is contriibuting as the Evil Lab only has cellular connectivity. That's a...
- Sat Dec 09, 2023 6:59 pm
- Forum: General
- Topic: ESP IDF Installation issues
- Replies: 5
- Views: 6140
Re: ESP IDF Installation issues
I agree with kersing, according to the log, the space in the username does seem to be causing problems
- Wed Dec 06, 2023 10:33 am
- Forum: Bug Reports
- Topic: STM32F401 UART
- Replies: 8
- Views: 9151
Re: STM32F401 UART
Code: Select all
MX_UART_NUMBER_1.Init.WordLength = UART_WORDLENGTH_9B;
// OR
MX_UART_NUMBER_1.Init.WordLength = UART_WORDLENGTH_8B;
- Tue Dec 05, 2023 4:59 pm
- Forum: Bug Reports
- Topic: STM32F401 UART
- Replies: 8
- Views: 9151
Re: STM32F401 UART
Yes, it should.
And to change the baud rate add this before HAL_UART_Init()
And to change the baud rate add this before HAL_UART_Init()
Code: Select all
MX_UART_NUMBER_1.Init.BaudRate = 600;
- Tue Dec 05, 2023 3:09 pm
- Forum: Bug Reports
- Topic: STM32F401 UART
- Replies: 8
- Views: 9151
Re: STM32F401 UART
The problem here is clocks again
To get a baud rate that low you will need to lower the APB2 clock.
Try changing the APB2 prescaler to /4
To get a baud rate that low you will need to lower the APB2 clock.
Try changing the APB2 prescaler to /4