STM32F429B JTAG Works, SWD not!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-06-04 1:30 AM
Hello dear engineers,
I have made a custom header board based on the STM32f429BIT6. The board can be programmed with the JTAG interface. AS SWD and JTAG share the same connection, (JTAG needs more connection), I assumed that it would be possible to change the programming type from JTAG to SWD in software. but it doesn't work. the pull-up and pull-down resistors are established and have not been forgotten. Is there anything I might have neglected so that I wasn't able to use SWD Interface? I use Jlink V8.
Your help would be appreciated.
- Labels:
-
DEBUG
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-06-07 7:20 AM
Hello Vahid Ajalluian,
According to reference manual RM0090 the external resistors should not even be necessary. By default, the JTAG-Debug Port is active. If the debugger host wants to switch to the SW-DP, it must provide a dedicated JTAG sequence on TMS/TCK (respectively mapped to SWDIO and SWCLK) which disables the JTAG-DP and enables the SW-DP. More about this sequence could be also found in the mentioned reference manual more specifically chapter 38.3.1 on page 1685.
I do not know much about segger Jlink V8, but I would definitely try to check all the connections and I would maybe recommend you to try contact segger directly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-06-13 10:16 AM
Dear @Petr DAVID
So far I saw that while the chip can be programmed via UART, it is not able to be programmed with the JTAG port while external resistors are not soldered. No matter it is J-link or ST-link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-06-13 11:49 AM
Post salient portion of schematics. Used F2/F4 with JTAG and SWD interchangeably here
Doing something strange
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-06-17 8:58 AM
Dear @Community member
Sorry for the late reply.
Attached is the schematic and PCB of the board. Nothing special is in, since the board is about to be a core board. What I meant about soldering pull-up and pull-down resistors was about to solder them on air! :grinning_face_with_sweat:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-06-17 10:58 AM
Can you attach as a PDF, thanks.
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-06-17 10:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-06-18 12:08 PM
Looks reasonable enough, non-standard header, doesn't match ARM's or MIKROE's
Make sure NJRST isn't used or mixed with NRST on SWD use case.
Here I've used the ARM 10-pin Cortex Debug Header, and that connects via SWD or JTAG
Up vote any posts that you find helpful, it shows what's working..
