2020-09-18 08: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
2020-09-18 09:11 AM
There's no problem here. An interrupt cannot pre-empt itself, so it'll be unlocked the next time the interrupt runs.
2020-09-18 09: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