How to enabling SWD/SWO printf() like debugging feature for stm32-f429 discovery kit?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-28 12:03 PM
I'm totally new to stm32 and arm development, recently got my stm32-f429(ZIT6) discovery kit . I just following some tutorials, but couldn't properly enable SWO printf() like feature, i followed some ITM register enabling codes and nothing works at all.
Please someone provide me some codes , FPU settings and guides which i need to do to trace the printf result from ITM FIFO properly. Im using cube mx latest version( 1.6.0 ) IDE.
Thank you.
Solved! Go to Solution.
- Labels:
-
DEBUG
-
STM32F4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-28 01:41 PM
You need to bridge SB9
The debugger needs to know what speed the core's running, a mismatch in settings/reality results in "not working"
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
‎2021-03-28 12:07 PM
Make sure that any Solder Bridges (SB) that provide for connectivity for SWO/PB3 pin are actually make. (SB9)
You also need to make sure both ends understand how fast the processor is running, vs the SWCLK, otherwise the baud rate setting will be wrong and you'll get no data.
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
‎2021-03-28 12:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-28 12:38 PM
I don't think that solder at SB9 could joint them together properly. Should I have to short them maually?
and for baud rate and system clock did u mean to keep both frequency at same level (MCU and St link)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-28 01:41 PM
You need to bridge SB9
The debugger needs to know what speed the core's running, a mismatch in settings/reality results in "not working"
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
‎2021-03-28 09:31 PM
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-21 03:04 PM
merhaba, probleminizi çözdünüz mü? Çözdüysen lehim köprüsü ne anlama geliyor ve nasıl yaptın, lütfen bana açıklar mısın? SB9 pininin ortası boş, oraya biraz lehim mi uygulayalım?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-21 03:05 PM
hello, did you solve your problem? If you solved it, what does the solder bridge mean and how did you do it, could you please explain to me? The middle of the sb9 pin is empty, do we just apply a little solder there?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-21 03:08 PM
If it's not bridged it surely won't work..
Bridge SB9 with a blob of solder, small wire, or zero-ohm "resistor"
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-09-16 08:09 AM
YA works