STM32 USART debugging
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-01-11 3:51 AM
Posted on January 11, 2014 at 12:51
Hello everyone,
I would be very gratefull if you help me with this or give me some idea. I have problem with STM32100RB USART module. It uses Cortex M3 and I am developing in Keil uvision.The USART uses hardware flow control (RTS/CTS). When I start debugging and try to read data in USART registers it is always different scenario. Data deepends on where I put breakpoints!For example, if I put breakpoint just before function that reads data register and after that press RUN to instruction for reading register the data is correct, but if I press RUN immediately after reset and go directly to this instruction data is corrupted....Did anyone had similar problems and can give me some ideas? I tought it is timing problem so I put delays everywhere I could, but it didn't help. Thank you,Nikola #debugging #stm32 #stm32-usart
Labels:
- Labels:
-
DEBUG
-
UART-USART
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-01-11 10:35 AM
Posted on January 11, 2014 at 19:35
Cross-post:
http://www.keil.com/forum/24626/
A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
A complex system designed from scratch never works and cannot be patched up to make it work.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-01-11 5:16 PM
Posted on January 12, 2014 at 02:16
Yes, thank you. I put the same post on both websites...
