Stm32 mat target UART example USART_3_Receive_Send, difficulty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-18 2:23 PM
I have generated MDK-ARM project from the USART_3_Receive_Send example from stm32 mat target example, I have successfully compiled all and burned to stm32f103 board, when connected to terminal it finds, it is sending unknown chartacters to terminal
I have attached the project files with this message, kindly someone check
Solved! Go to Solution.
- Labels:
-
UART-USART
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-04 11:38 AM
I made this working by making the constant 10 and type unit8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-18 2:57 PM
What STM32 board?
USART1 PA9 / PA10
Perhaps test the USART functionality outside all the buffering, then debug the rest of it.
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
‎2019-10-18 10:49 PM
Custom STM32 board, I am using
USART1 connected to PA9 PA10
Will test the USART functionality outside buffering and update here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-19 11:11 AM
I have tried with USART_3_Receive example, still the result is same
I have used Rx and Tx pins, any other pin needs to be used?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-19 11:31 AM
Async serial on USART1 would just need the PA9(TX) and PA10(RX)
If the hardware hasn't otherwise been validated, you might want to sit in a loop transmitting 'U' characters, and scope the signals. PA9 would have the signal, it will be at CMOS levels, and not directly compatible with RS232 levels.
Not familiar with your design.
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
‎2019-10-20 2:09 AM
I have connected PA9(TX) STM32 to FT232 (RX) and PA10(RX) STM32 to FT232 (TX) (No level shifting is done) (Baud-rate 115200)
This setup worked with some programs compiled with mikroC..
I have attached my terminal output..
I will check with the 'U' loop as you advised..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-20 1:15 PM
I have tried another character loop in UART
Model that I used to send the character is attached, is it correct?
I intended to send 'U"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-20 2:36 PM
Try just coding a simple app, in C, without involving STM32-MAT
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
‎2019-10-20 2:39 PM
Sure seems like a protocol issue. Same baud rate, parity, and stop but settings in your code and in the terminal? If you have a parity bit, you need to set 9 data bits in the code instead of 8.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-21 7:23 AM
Yes, it same baud rate 115200, no parity, 1 stop bit
I have changed the data bit 8 and 9 checked, no improvement
