- in OpenOCD on ST-Link V2-1 (prompts for .cfg target configuration) and others in this external tools configuration need to change arguments
from
-c "telnet_port 4444" -s "E:\ChibiStudio\tools\openocd\scripts" -f "interface/stlink-v2-1.cfg" -f "${file_prompt}"
to
-c "telnet_port 4444" -s "<Drive>:\ChibiStudio\tools\openocd\scripts" -f "interface/stlink-v2-1.cfg" -f "${file_prompt}"
steved
Thanks a lot!!!
I've created a file predebug.bat
Code: Select all
SET OPENOCD=E:\ChibiStudio\tools\openocd
%OPENOCD%\bin\openocd.exe -s %OPENOCD%\scripts -f %OPENOCD%\scripts\board\st_nucleo_l1.cfg -f rtos.cfgand put it to the my project directory.
rtos.cfg is the same
After these changes I was able to run debugger.
Now I'm half happy
Even if I can't make SW4STM32 working as I would like to, in the office I can create a new drive "E:" with subst command and have the same ChibiStudio environment in both my places. Need to clean it, though, because I don't need so many evaluation boards configurations. Besides, need to learn, how to make a custom configuration.
Giovanni
May be you could use all this information to be able ChibiStudio to work on any disk?
I believe there are many people who have SSD for C: and/or also prefer not to have their working environment on system drive/partition...
In batch file you can get the current directory by using %~dp0 variable.
In this case your start_gccxxx.bat could have the following set of command
Code: Select all
@echo off
set PATH=%~dp0\tools\gnutools\bin;%PATH%
set PATH=%~dp0\tools\openocd\bin;%PATH%
set PATH=%~dp0\tools\GNU Tools ARM Embedded\4.9 2015q3\arm-none-eabi\bin;%PATH%
set PATH=%~dp0\tools\GNU Tools ARM Embedded\4.9 2015q3\bin;%PATH%
cd eclipse
start eclipse.exe
I just changed it on my computer - works fine