Page 2 of 2
Re: Linux debug configuration
Posted: Sun Apr 09, 2023 8:47 am
by steved
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?
Re: Linux debug configuration
Posted: Sun Apr 09, 2023 9:05 am
by Giovanni
Hi,
There are udev rules in the openocd folder, just place them like this:
You also need to add the group "dialout" to your user if I remember well.
Giovanni
Re: Linux debug configuration
Posted: Sun Apr 09, 2023 10:40 pm
by steved
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.
Re: Linux debug configuration
Posted: Mon Apr 10, 2023 7:27 am
by Giovanni
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
Re: Linux debug configuration
Posted: Mon Apr 10, 2023 10:47 am
by steved
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.