Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32l4 tty reconfigures uart periphery without disabling DMA channel #1142

Open
xvuko opened this issue May 17, 2024 · 1 comment
Open

stm32l4 tty reconfigures uart periphery without disabling DMA channel #1142

xvuko opened this issue May 17, 2024 · 1 comment

Comments

@xvuko
Copy link
Contributor

xvuko commented May 17, 2024

RM0351 Reference manual Rev 10
40.8.1 USART control register 1 (USART_CR1)

The DMA requests are also reset when UE = 0 so the DMA channel must be disabled
before resetting the UE bit

Currently set_baudrate callback called from libtty ioctl hander temporarily disables UE without any synchronization. This needs to be investigated as it can lead to race conditions even when DMA is not used.

@xvuko
Copy link
Contributor Author

xvuko commented May 17, 2024

For libuart this was addressed in phoenix-rtos/phoenix-rtos-devices@d1fd028

@Darchiv Darchiv transferred this issue from phoenix-rtos/phoenix-rtos-devices Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant