The STM32 HAL library serial port cannot receive and receive at the same time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-18 8:05 AM
The problem appears in the serial port receiving interrupt function, the serial port is locked, but the latter sentence has been unlocked, but why is it still locked?
I have consulted the manual of the STM32HAL library. The manual says that the serial port is dual-locked for sending and receiving data, which makes it impossible to send and receive data through the serial port at the same time. Friends, how should I solve this problem so that the serial port of the HAL library can send and receive data at the same time
- Labels:
-
STM32Cube MCU Packages
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-18 9:11 AM
There's no problem here. An interrupt cannot pre-empt itself, so it'll be unlocked the next time the interrupt runs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-18 9:42 AM
If you find the HAL UART code to be bloated and dysfunctional you can always replace it..
Here it just locks ownership while multiple related values need to be changed together
Up vote any posts that you find helpful, it shows what's working..
