STM32G473 can't start debugging with incoming data stream on USART1 Rx pin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-17 6:31 AM
On my board i use USART1 and USART3 to connect my device to other by dual RS-485. 485 tranciever connected to MCU throw digital isolator (4 tx, 2 rx SI8662). If 485 line of USART1 not connected ti device i can start debugging in Keil without problem. If i connect 485 line debug session immediately fail. If i connect line before debuging then i can't enter debug. Even ST-Link Utility can't connet to MCU with connected 485 line. I can load programm to MCU, connect 485 line an device will work fine by self. With 485 of USART3 no eny problem.
There is no galvanic connection between MCU and 485 tranciever, no ground connected. Power of both part of device is fine, no any noise.
Boot0 on MCU connected to GND. I use ST-Link v2 and SWD-connection.
Why debugging not work with incoming data stream on USART1?
- Labels:
-
DEBUG
-
STM32G4 Series
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-17 6:49 AM
Short between some of the SWD lines and RxD1?
What's the relationship between 3.3V of the silabs isolator, +5V from the DC/DC and the power supply to STM32?
When the RS485 line is unconnected, is the DC/DC powered down?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-17 6:52 AM
Nope. There is no any short between this lines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-17 6:58 AM
Here is how power is made in device
"When the RS485 line is unconnected, is the DC/DC powered down?" - no, DC/DC powered until device powered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-17 7:12 AM
Then - if there's no problem with power supply, ground, conducted or radiated electromagnetic noise - the only change when the RS485 line is connected is the Rx signal, isn't it? So you problem must be related to it.
Disconnect the Rx signal (cut track, lift pin) and check.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-17 7:21 AM
I cut Rx track an Keil was able to load as much as 10% of the firmware.
Connection errors still here but i I think there are fewer of them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-17 7:49 AM
Well, I don't know then, sorry.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-17 8:58 AM
Make sure the SWD ground is the correct one. Lower SWD clock speed to try to help, but that won't fix the underlying problem. Seems like the problem isn't strictly the RX line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-17 10:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-18 2:05 AM
Check SWD groung - ground is fine.
Try 400 kHz SWD speed - no change.
"Possibly related" - yes, it another my topic about my device.
