Page 1 of 1

Improvements in ChibiStudio

Posted: Sun May 13, 2018 10:41 am
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
__________________________________________________________________________________

Re: Improvements in ChibiStudio

Posted: Sun Oct 21, 2018 5:15 am
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

Re: Improvements in ChibiStudio

Posted: Sun Jan 27, 2019 5:35 pm
by RoccoMarco
Ciao,
I will look into it before to prepare ChibiStudio Preview 21