Using usart code made with stm32f4 with stm32f302 register level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-10 3:31 AM - edited ‎2023-11-20 5:51 AM
hi, i want to use the code from controllertech site with stm32f302r8. how should i set the registers.
https://controllerstech.com/ring-buffer-using-head-and-tail-in-stm32/
the part where i get the error is how do i do the register parts.
- Labels:
-
STM32F3 Series
-
STM32F4 Series
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-10 3:42 AM
Compare the registers from both reference manuals, bit by bit.
Compare the register and bit definition files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-10 3:57 AM
Newer parts use ISR not SR, and DR has distinctive RDR and TDR for receive and transmit.
Watch also for how errors are cleared, ie parity, framing, noise. Not cleared by reading DR, but by explicitly writing a bit to clear.
Look at Library source for understanding, you don't have to use it, its available as a secondary reference / perspective.
And RTFM..
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-10 4:03 AM
MY PROBLEM IS SOLVED THANK YOU
