2024-02-19 6:11 AM
Hello everyone,
I am currently working on the SMT32H747i_DISCO board and I was wondering if it is possible to use the Segger J-Link debugger on the Board. There is a j-tag pin out connected to the Dev board which suggests that it should be possible. I didn't have any luck so far. Are there additional ports necessary? Am I missing something. I can't find any documentation to the purpose of the connection. Thanks for any help.
Regards Maikel
2024-02-19 6:17 AM - edited 2024-02-19 6:20 AM
See the Segger documentation for supported microcontrollers, but the J-Link's big claim to fame is that it works with pretty much every ARM Cortex-M there is.
The board says it has an On-board STLINK-V3E debugger/programmer - are you sure you have disabled/disconnected that before trying to use the J-Link?
@Heisenberg wrote:I didn't have any luck so far. Are there additional ports necessary? Am I missing something. I can't find any documentation to the purpose of the connection. Thanks for any help.
Regards Maikel
So what, exactly, did you try?
What, exactly, was/were the problem(s) you experienced?
Segger has a page on how to debug connection problems:
https://wiki.segger.com/J-Link_cannot_connect_to_the_CPU
2024-02-19 6:27 AM
>> Am I missing something.
Hard to say, not party to anything you wired or tested.
SWO/TDO (PB3) would be generally helpful for the debug communications channel.
Not sure what you need JTAG for, you'll need the full complement if you want to boundary scan or daisy chain.
Should be able to wire the standard ARM 10-pin connector if you need that, and can spare the pins.
2024-02-19 6:35 AM - edited 2024-02-19 6:37 AM
@Heisenberg wrote:I can't find any documentation to the purpose of the connection. Thanks for any help.
It's in the User Manual - UM2411:
So it's a TAG-Connect 10-pin footprint.
This is a 10-pin TAG-Connect:
https://www.tag-connect.com/product/tc2050-idc-nl-10-pin-no-legs-cable-with-ribbon-connector
Details relating to J-Link:
https://www.tag-connect.com/debugger-cable-selection-installation-instructions/segger-j-link
https://www.segger.com/products/debug-probes/j-link/accessories/adapters/10-pin-needle-adapter/
"DAP" is the Debug Access Port
The "TAG Connector" is here:
The pinout is here:
2024-02-19 6:59 AM
So I flashed a Zephyr example blinky application via west flash to the board (Using the st-link connection). The led blinks. Connected the Segger J-Link debugger to the development board via the 10 PIN STDC connector CN13. I didn't change any power sources. The J-Link debugger gets detected and a attempt is made to flash the code via Ozone to the board. A error appears with connection failed. The reason why I want to use J-Link is because it has Zephyrs RTOS awareness, a feature that is widely missing with ST-Link.
Regards Maikel
2024-02-19 7:16 AM
So, again, have you disabled/disconnected the onboard ST-Link before trying to use the J-Link?
2024-02-19 7:42 AM
@Heisenberg wrote:reason why I want to use J-Link is because it has Zephyrs RTOS awareness, a feature that is widely missing with ST-Link.
Segger have updates to convert (some of) the on-board ST-Links to J-Link - you could look into that?
2024-02-19 8:24 AM
Hi Andrew,
Yes I looked into that. This board isn't supported however. Unfortunately. Thanks for the input tough.
Regards
2024-02-19 8:26 AM
I didn't find any instructions on how to achieve that. I used the j-link debugger on other boards and there wasn't a need for any disable or disconnect operations.
regards
2024-02-19 8:42 AM
I don't think any of this is related to using JTAG vs SWD.. The extended standards do allow for a multi-drop SWD connection to multiple cores.
It likely disconnects from a host of other reasons. The pin configurations get changed, or disabled. Or the part is put into a power down situation where all the pin drivers and scan chains are turned OFF, and further communications then become improbable. Check DBGMCU settings.
Look at these types of things first.