I'm new to ChibiOS and ChibiStudio/eclipse.
I'm using a ST-Link to debug. I want to click the Build/flash/run launcher and have it start OpenOCD. Currently I have to go to the external tools menu to find 'OpenOCD on STLink'. In addition, after clicking that I have to navigate to 'C:\ChibiStudio\tools\openocd\scripts\target\stm32f4x.cfg'. This is rather annoying. Can't the project remember which debugger and config I use?
starting openocd with debug launcher
Moderators: tfAteba, barthess, RoccoMarco, lbednarz, utzig
Re: starting openocd with debug launcher
I just create a small batch file in the project directory which starts up openOCD in a project-specific way, such as:
(The commented out statement adds console output to a log file, rather than displaying it).
Code: Select all
REM starts in the Eclipse directory
cd ..\tools\openocd\
REM bin\openocd -s "scripts" -f board/st_nucleo_f7.cfg -l /Temp/Chibi/oocd.log -f add_rtos.cfg
bin\openocd -s "scripts" -f board/st_nucleo_f7.cfg -c "$_TARGETNAME configure -rtos chibios"
(The commented out statement adds console output to a log file, rather than displaying it).
- Giovanni
- Site Admin
- Posts: 14556
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1106 times
- Been thanked: 937 times
- Contact:
Re: starting openocd with debug launcher
JessicaB wrote:I'm new to ChibiOS and ChibiStudio/eclipse.
I'm using a ST-Link to debug. I want to click the Build/flash/run launcher and have it start OpenOCD. Currently I have to go to the external tools menu to find 'OpenOCD on STLink'. In addition, after clicking that I have to navigate to 'C:\ChibiStudio\tools\openocd\scripts\target\stm32f4x.cfg'. This is rather annoying. Can't the project remember which debugger and config I use?
Hi,
You could "clone" the "OpenOCD on STLink" launcher and replace the prompt with a fixed path to a script.
1) External Tools Configuration... in the tools menu.
2) Select "OpenOCD on STLink" under "Programs".
3) Duplicate button and give the clone a better name.
4) In the arguments box replace "${file_prompt}" with your fixed path.
You can have as many launchers you want.
Giovanni
Re: starting openocd with debug launcher
This made it easier.
Eclipse seems to be very configurable, and I think that makes it a bit confusing for beginners to change how it works from out of the box. I'm starting to get it.
Thanks for help!
Eclipse seems to be very configurable, and I think that makes it a bit confusing for beginners to change how it works from out of the box. I'm starting to get it.
Thanks for help!
- Giovanni
- Site Admin
- Posts: 14556
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1106 times
- Been thanked: 937 times
- Contact:
Re: starting openocd with debug launcher
Hi,
True, Eclipse is confusing initially but then things start to make sense and it becomes very powerful.
Giovanni
True, Eclipse is confusing initially but then things start to make sense and it becomes very powerful.
Giovanni
Who is online
Users browsing this forum: No registered users and 27 guests