Improvements in ChibiStudio

Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
Post Reply
User avatar
psavr
Posts: 26
Joined: Thu Feb 08, 2018 8:38 am
Been thanked: 3 times

Improvements in ChibiStudio

Post by psavr »

Thank you for providing "ChibiStudio preview 20" viewtopic.php?f=7&t=2119&p=32789#p32789
But have you planned also to provide a Linux package as well, this would be fantastic! :D

While using ChibiOS (18.2.0) and your last ChibiStudio (on Windows and Linux) for some time, I would like to give several feedbacks and proposals.

I prefer to have ChibiOS project directory in the workspace directory. Then you have still the choice to use different workspaces for different ChibiOS versions or to have different ChibiOS versions in the same workspace. Then, you can use the CHIBIOS path variable as relative path according to you current workspace selection:
[File]=>[Properties]=>[Resource]=>[Linked Resources]=>[Name: CHIBIOS]=>[Location: ${WORKSPACE_LOC}/ChibiOS]

For windows I have modified the startup batch file, using the %CD% variable (Current Directory) to be independent from the drive and path of ChibiStudio. The commented section is useful if the path is to difficult for Eclipse (e,g, network-paths), it substitute the current Directory a local drive letter, in this example to Q:\
__________________________________________________________________________________
@echo off
echo\
echo ==============================================
echo Startup batch for ChibiStudio
echo ==============================================
echo\
set QP=%CD%
rem -----------------------------------------------
rem echo Relocating '%CD%'to %QP%\
rem set QP=Q:
rem if "%CD%" NEQ "%QP%" subst Q: /d
rem if "%CD%" NEQ "%QP%" subst Q: "%CD%"
rem -----------------------------------------------
cd /D %QP%
explorer %QP%
set CHIBIROOT=%QP%
set CHIBIOS=%CHIBIROOT%\workspace\ChibiOS
set PATH=%CHIBIROOT%\tools\gnutools\bin;%PATH%
set PATH=%CHIBIROOT%\tools\openocd\bin;%PATH%
set PATH=%CHIBIROOT%\tools\GNU.Tools.ARM.Embedded\6.3.2017q2\arm-none-eabi\bin;%PATH%
set PATH=%CHIBIROOT%\tools\GNU.Tools.ARM.Embedded\6.3.2017q2\bin;%PATH%
echo Starting Eclipse...
cd /D %CHIBIROOT%\eclipse
start eclipse.exe
__________________________________________________________________________________

For Linux I placed ChibiOS in my $HOME Patch and I'm using this start-up script:

__________________________________________________________________________________
#!/bin/bash
# ChibiStudio path,
export CHIBISTUDIO="$HOME/ChibiStudio"
export CHIBIOS="$CHIBISTUDIO/workspace/ChibiOS"
# ARM compiler path.
PATH="$CHIBISTUDIO/tools/GNU.Tools.ARM.Embedded/bin:$PATH"
# Power compiler path.
# PATH="$CHIBISTUDIO/tools/powerpc-eabivle/bin:$PATH"
# OpenOCD executable.
export OPENOCD="$CHIBISTUDIO/tools/openocd/bin/openocd"
# FMPP executable.
export FMPP="$CHIBISTUDIO/tools/fmpp/bin/fmpp"
# Eclipse tooltips workaround.
export SWT_GTK3=0
# Starting Eclipse.
cd $CHIBISTUDIO/eclipse
./eclipse
exit
__________________________________________________________________________________
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Improvements in ChibiStudio

Post by Giovanni »

Hi,

I split the post from the topic and copied in "Small Change Requests", this way it is not lost in the noise.

Giovanni
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: Improvements in ChibiStudio

Post by RoccoMarco »

Ciao,
I will look into it before to prepare ChibiStudio Preview 21
Post Reply