Segger Jlink support in ChibiStudio Topic is solved

Discussions and support about ChibiStudio, the free development environment for ARM.
Post Reply
cipher
Posts: 24
Joined: Tue May 31, 2016 10:05 pm
Has thanked: 2 times
Been thanked: 2 times

Segger Jlink support in ChibiStudio

Post by cipher »

Hi Everyone
Can anyone please provide some hint on how to configure and use the Segger JLINK debugger in ChibiStudio? Im running it all on windows, have jlink drivers installed
Im very new to Eclipse, JLINK is the only probe i have, and really want to get our board running the ChibiOS.
Any help would be very appreciated.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Segger Jlink support in ChibiStudio

Post by Giovanni »

Hi,

It is matter of configuring OpenOCD to use JLink instead of STLink. In the tools menu, where you see the STLink launchers, you can add more entries, duplicate an STLink entry and replace the configuration files with the JLink ones, you need to read the OpenOCD manual for details.

If JLink comes with its own GDB server then you may not need OpenOCD at all, create a configuration that launches the JLink server.

Giovanni
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: Segger Jlink support in ChibiStudio

Post by RoccoMarco »

Hi I am using it currently. I will write soon an article on PLAY Embedded about that, even because now it is possible to flash STLink with a JLink lite firmware.
Ciao,
RM
Ceco
Posts: 40
Joined: Tue Nov 27, 2012 12:16 pm
Been thanked: 3 times

Re: Segger Jlink support in ChibiStudio

Post by Ceco »

Hello Rocco
Do you have some progress with this video (ChibiStudio with J-Link)?
What kind of GDB server you are using - the Segger's one or OpeOCD?
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: Segger Jlink support in ChibiStudio

Post by RoccoMarco »

Hi,
I am currently using jlink with segger gdb cl which works well and is downloadable from segger website.

BTW the problem of Openocd is I have to use Zadig to act on usbdriver and this makes OpenOCD incompatible with SeggerGDBcl.
Ceco
Posts: 40
Joined: Tue Nov 27, 2012 12:16 pm
Been thanked: 3 times

Re: Segger Jlink support in ChibiStudio

Post by Ceco »

Ok. But in this case do you have a working Chibi plugins in ChibiStudio? As I remember corectly it uses an OpenOCD "specific syntax" to collect data and variables from the target ant to show ChibiOS state.

My suggestions are based on this thread:
viewtopic.php?t=1351
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: Segger Jlink support in ChibiStudio

Post by RoccoMarco »

I will test this with a Nucleo later. It could be.
Post Reply