Linux debug configuration

Discussions and support about ChibiStudio, the free development environment for ARM.
steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: Linux debug configuration

Postby steved » Sun Apr 09, 2023 8:47 am

Giovanni wrote:Hi,
Yes, the current setup is to have one workspace for each version. You could mix projects but then you could not rely on the workspace variable CHIBIOS in project virtual folders (board, os, test, etc).
Giovanni

Thanks.

Another question, I'm afraid. When running openOCD, do you run it as root? Or have you set up some udev rules?

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Linux debug configuration

Postby Giovanni » Sun Apr 09, 2023 9:05 am

Hi,

There are udev rules in the openocd folder, just place them like this:

Screenshot from 2023-04-09 10-04-30.png


You also need to add the group "dialout" to your user if I remember well.

Giovanni

steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: Linux debug configuration

Postby steved » Sun Apr 09, 2023 10:40 pm

Sorry, but no sign of a directory with udev rules in it.

And some of the tools for launching OpenOCD mention version 12 (binary name openocd_12); that doesn't appear to be present either.

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Linux debug configuration

Postby Giovanni » Mon Apr 10, 2023 7:27 am

Sorry, my mistake, most of those are in the STM32 Cube Programmer under:

/STMicroelectronics/STM32Cube/STM32CubeProgrammer/Drivers/rules

A big rules file is in OpenOCD under, it should include everything:

/ChibiStudio/tools/openocd/contrib/libdcc60-openocd.rules

Probably you only really need this one.

Giovanni

steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: Linux debug configuration

Postby steved » Mon Apr 10, 2023 10:47 am

Thanks that worked. Probably my remaining niggles are due to the age and type of the Nucleo board I'm using (not sure that serial over USB should work with the L031).

I've generated some notes on the process, which you're welcome to incorporate.
Attachments
ChibiStudio_Linux_Install.7z
(1.46 KiB) Downloaded 133 times


Return to “ChibiStudio”

Who is online

Users browsing this forum: No registered users and 7 guests