Giovanni wrote:Is there a way to specify that "-rtos ChibiOS" on the command line? that would allow me to do that from the Eclipse launcher instead of having to manually change OOCD files (if not possible, it would be worth suggesting this to the OOCD team).
Yes. You can specify one or more configuration files using -f.
The command required has to include the target name (basically, processor type), so will vary by platform.
I've got into the habit of creating a project-specific batch file to start OpenOCD, and it turns out you can create a little file to enable the rtos functionality.
Create a file add_rtos.cfg:
Code: Select all
$_TARGETNAME configure -rtos ChibiOSMy startup batch file now contains:
Code: Select all
C:
cd \ChibiStudio\workspace30\STM32F407_Download
c:\ChibiStudio\tools\openocd\bin\openocd.exe -f stm32f4discovery.cfg -f add_rtos.cfg
On a quick check, that works.
You can give longer paths for files. Or you can specify an additional search directory using the -s command line option to use Chibi-wide files (the OpenOCD script libraries are already in the search path)