Some hints on using the SWD interface to program devices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-23 5:19 AM
I am soon going crazy! I have used 4 different types of USB -> SWD (Cortex M-10 adapter) programmers like STLINK/V2, Segger J-Link etc. I have made PC boards with several different STM32 MCU types, and what happens is that on some boards the Flash programming goes OK, but in most cases I get some error messages like "DEV NO DEV", "Failed to download application", "Missing device ID code" etc. I have tried to fiddle with general settings like speed and other interface things, but if the card first refuses to be programmed there seems to be no cure - except once when speed adjust worked. CAN ANYONE HELP? Rolf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-23 6:02 AM
Perhaps start by looking at board design issues.
Power and reset are primary issues. The JTAG/SWD are usually pretty robust.
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-03-23 6:37 AM
grab a scope, monitor the supply lines if there is an external oscillator check on it, and finally look at the SWD lines, RST AND BOOT0 pin level. I think STLink needs MCU Vdd to checkout its GPIO voltage level too.
