2023-06-29 12:47 AM - edited 2023-06-29 12:49 AM
The goal: Debug the NUCLEO-H743ZI2 with Tracealyzer.
To do it I have to connect the board with my computer via jlink. I found the tool STLinkReflash, that can emulates the jlink in the stlink. The problem I found is that it does not work for the stlink V3.
On the other hand, I have another nucleo board, NUCLEO-L746RG that has stlink V2-1, with which I got success emulating the Jlink and debugging with Tracealyzer.
I am trying to connect the STlink that is in the NUCLEO-L746RG with my development board NUCLEO-H743ZI2, but I do not get success.
I also tried to connect a comercial STlink V2 device with the NUCLEO-H743ZI2, just connecting the jumper JP1 and connecting the STlink to the CN5, but I get these errors: "Error: target voltage may be too low for reliable debugging" "Error: init mode failed (unable to connect to the target)".
Please, could you show me how do I have to do the connection to debug the nucleo H743ZI2 with an external tool?
Thanks in advance.
2023-06-30 07:12 AM
Hello @Manu Gr,
Supported ST-Link versions are detailed here: ST-LINK On-Board (segger.com)
I suggest checking connections to the Nucleo H743. Try connecting under reset also to CubeProgrammer using SWD.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-06-30 10:44 AM
Are you sure that tracealyzer cannot use ST-LINK? Their documentation suggests that they need ITM trace, and ST-LINK supports it. ST-LINKv3 should yield good performance.
2023-07-02 10:42 PM - edited 2023-07-02 11:34 PM
Thanks for your answer.
I found a tutorial where they debug the Nucleo-H743 with the STLink. They use tracealyzer as plugin of STM32Cube. The problem for me is that I don't use STM32Cube, I use VSCode with PlatformIO and then I have to configurate manually the following fields:
Programming and the basic debugger in platformIO work for me, so the connections are not the problem. But now I am interested in using some more powerful tools for debugging.
Additional information: I am not using HAL libraries, just CMSIS.