2024-11-04 04:30 AM - last edited on 2024-11-04 05:51 AM by SofLit
Hello,
I would like to know How to configure the J-LINK Segger to work with STM32CubeIDE, after a little searching I found this video : https://www.youtube.com/watch?v=Rf-NKOoPYUc
But at 12:11 I can see this configuration in the video
But I don't have an Application directory :
In this case, do you have an idea how to do it ? Thank you for your helps.
Regards
Solved! Go to Solution.
2024-11-05 01:32 AM
@Andrew Neil wrote:So what's changed?
If you go back to what you had before, does the connection work again?
It's not the same, at the beginning I converted to J-LINK so I don't know if it's the same configuration :
Now I have an folder and no errors when compiling.
Now my errors is at the end to validate the operation. Now I try to connect
Now when I go into DEBUG mode there is an error, for me it is actually a hardware problem now since when compiling, I compile well with the J-LINK tool.
So do you have any idea now ?
2024-11-05 01:37 AM - edited 2024-11-05 01:45 AM
@Andrew Neil wrote:This error message:
tells you that it's the basic SWD hardware connection that's failing - it hasn't got as far as anything to do with RTT at that point!
Yes you're right but I have already configured the tool now I will check again to see what it gives. After checking nothing is works
that I try to connect via SWD or JTAG nothing works, so it is normal that STM32CubeMX cannot communicate with the J-LINK
2024-11-05 01:55 AM - edited 2024-11-05 01:56 AM
@DYann.1 wrote:Yes you're right but I have already configured the tool
So this is not about the tool configuration - it is a basic hardware problem:
Are you also going to complain to Segger about giving you "useless" (sic) links?
@DYann.1 wrote:
so it is normal that STM32CubeMX cannot communicate with the J-LINK
When the basic hardware connection is not working, nothing which needs to use that connection can work!
2024-11-05 02:07 AM
@Andrew Neil wrote:Your video is about how to set up RTT
The only part of that video which has anything to do with the J-Link itself (the basic hardware connection) is the 28 seconds from 17:18-46 https://www.youtube.com/watch?v=Rf-NKOoPYUc&t=1038s
The rest is all about RTT.
2024-11-05 04:31 AM
I don't see your video link but one thing what I am certain is that the connector is compatible with the evaluation card. When I connect with J-LINK and USB_STLK :
Now when I need to only with J-LINK for program and Debug (without USB_STLK) I have this picture :
2024-11-05 04:39 AM - edited 2024-11-05 04:52 AM
Hi, thank you every body now I can work with my J-LINK . In fact in any case I
I still have to connect USB_STLK even if I don't use ST-LINK (from what I understand).
operation is correct
2024-11-05 04:47 AM - edited 2024-11-05 04:48 AM
@DYann.1 wrote:I still have to connect USB_STLK even if I don't use ST-LINK (from what I understand).
I'm not clear what you mean by that?
What do you mean by "USB_STLK" here?
You can only have one debug probe attached at a time.
Is this on the EV board, or your custom board?
Show diagrams.
2024-11-05 04:54 AM
On my EV board first after I can switch to my real board. "USB_STLK" look on the evaluation card where the connector is located "USB_STLK"
2024-11-05 05:16 AM
OK, so that's CN22 - the micro-USB for the on-board ST-Link.
and you're connecting your JLink-EDU to the CN10 JTAG connector:
Yes?
So you're using CN22 to power the board: