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.
User avatar
psavr
Posts: 11
Joined: Thu Feb 08, 2018 8:38 am
Location: Switzerland
Been thanked: 1 time

Improvements in ChibiStudio

Postby psavr » Sun May 13, 2018 10:41 am

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: 10823
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 318 times
Been thanked: 268 times
Contact:

Re: Improvements in ChibiStudio

Postby Giovanni » Tue May 15, 2018 6:07 pm

Hi,

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

Giovanni


Return to “Small Change Requests”

Who is online

Users browsing this forum: No registered users and 2 guests