[INFO] Installed Linux Mint

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome.
User avatar
psavr
Posts: 11
Joined: Thu Feb 08, 2018 8:38 am
Location: Switzerland
Been thanked: 1 time

Re: [INFO] Installed Linux Mint

Postby psavr » Mon Mar 19, 2018 1:40 pm

Up to date OpenOCD binaries for Linux can be downloaded here: https://github.com/gnu-mcu-eclipse/openocd/releases
=> Linux-32 Bit: gnu-mcu-eclipse-openocd-0.10.0-7-20180123-1217-centos32.tgz
=> Linux-64 Bit: gnu-mcu-eclipse-openocd-0.10.0-7-20180123-1217-centos64.tgz

I simply extracted the archive to $HOME\Projects\Chibios\tools\OpenOCD... and adjusted the path for OpenOCD in the ChibiStudio start scrip accordingly. This seems to work for OpenOCD.

Nevertheless, I still can't debug, but I think there is a further problem, something like "no target defined"... I'll keep on trying

User avatar
psavr
Posts: 11
Joined: Thu Feb 08, 2018 8:38 am
Location: Switzerland
Been thanked: 1 time

Re: [INFO] Installed Linux Mint

Postby psavr » Wed Mar 21, 2018 9:23 pm

Finally I got everything to work:

An uptodate ST-Link-Driver for Linux is available within the AC6-SystemWorkbench package for Linux:
http://www.st.com/en/development-tools/sw4stm32.html
=> After registration, the download of the STM32-SystemWorkbench is free
=> An installation-Script is located at: /home/User/Ac6/SystemWorkbench/stlinkserver/stlinkserver_install.sh
________________________________________________________________________________________________________

Up-to-date and compiled OpenOCD Binaries can be found here:
https://github.com/gnu-mcu-eclipse/openocd/releases

Linux32 => gnu-mcu-eclipse-openocd-0.10.0-7-20180123-1217-centos32.tgz
Linux64 => gnu-mcu-eclipse-openocd-0.10.0-7-20180123-1217-centos64.tgz (I'm using this for my Linux-Mint 64Bit)

Note: I recommend to update OpenOCD also for the actual Windows version of ChibiStudio, there are updated and additional *.cfg files for several chips and boards.

Win32 => gnu-mcu-eclipse-openocd-0.10.0-7-20180123-1217-win32.zip (I'm using this for my ChibiStudio on Windows10 64Bit)
Win64 => gnu-mcu-eclipse-openocd-0.10.0-7-20180123-1217-win64.zip (maybe better? I havn't tried.)

For OpenOCD no installation is required, just replace (or put) the whole directory tree into: ChibiStudio\tools\openocd\...
=> Do not merge any files with the prior version(s)
=> I propose to remove the version subdirectory and keep the same paths as for the original ChibiStudio directories:
by changing the archive-path: "gnu-mcu-eclipse/openocd/0.10.0-7-20180123-1217/..." to "ChibiStudio/tools/openocd/..."
________________________________________________________________________________________________________

On Giovannis provided Linux repository there is actually no External-Tool launcher for the OpenOCD configured, you have to add it manually:
[Run]=>[External Tools]=>[External Tools Configurations...]

[Main]-Tab
[Name:] OpenOCD on ST-Link (promts for .cfg target configuration) (=> just write what ever you like...)
[Location:] /home/User/Projects/ChibiStudio/tools/openocd/bin/openocd
[Working Dir:] /home/User/Projects/ChibiStudio/tools/openocd/bin/
[Arguments:] -c "telnet_port 4444" -s "/home/User/Projects/ChibiStudio/tools/openocd/scripts" -f "interface/stlink.cfg" -f "${file_prompt}"

[Build]-Tab (check what ever you prefer, I'm using)
(x) Build before launch
(o) The project containing the selected resource
(x) Include referenced project

[Common]-Tab
(o) Local file
Display in favorites menu
(x) External Tools

Note: For all other settings I kept the defaults
Note: "stlink-v2-1.cfg" is deprecated => using now just "stlink.cfg"
Note: If anybody knows how to use relative paths instead of absolute paths, please let me know and post it here.
________________________________________________________________________________________________________

Then you are ready to work, have fun! :P

Note: Under Linux-Mint the whole toolchain (especially compiling) is running about 10x faster as on my new business notebook
(HP ProBook G4 i7-7500U, 8GB RAM 500GB SSD), this is really stunning!
Last edited by psavr on Wed Mar 21, 2018 9:53 pm, edited 3 times in total.

User avatar
Giovanni
Site Admin
Posts: 11148
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 391 times
Been thanked: 321 times
Contact:

Re: [INFO] Installed Linux Mint

Postby Giovanni » Wed Mar 21, 2018 9:32 pm

Hi,

Linux driver? I have not installed anything like that, just OpenOCD.

I also experienced much faster compile time compared to windows, stunning difference really, the hard part is when you have to go back to win.

Giovanni

User avatar
psavr
Posts: 11
Joined: Thu Feb 08, 2018 8:38 am
Location: Switzerland
Been thanked: 1 time

Re: [INFO] Installed Linux Mint

Postby psavr » Wed Mar 21, 2018 9:52 pm

You say for Linux there is no ST-Link driver required?

Ok, maybe the St-Link-Server is not necessary t all, maybe there are additional functionality like
redirecting Semihosting to Eclipse-console while debugging? I don't know...

User avatar
wurstnase
Posts: 64
Joined: Tue Oct 17, 2017 2:24 pm
Has thanked: 24 times
Been thanked: 9 times
Contact:

Re: [INFO] Installed Linux Mint

Postby wurstnase » Wed Mar 28, 2018 3:01 pm

I found the issue on my side.
The folder should be /home/giovanni.

e.g. in /home/giovanni/Projects/ChibiStudio/workspace_18.2.x/.metadata/.plugins/org.eclipse.core.resources/.projects/ChibiOS (whole tree)/.location

Code: Select all

00000000:  40b1 8b81 23bc 0014 1a25 96e7 a393 be1e 0043 5552 492f 2f66  :@...#....%.......CURI//f
00000018:  696c 653a 2f68 6f6d 652f 6769 6f76 616e 6e69 2f50 726f 6a65  :ile:/home/giovanni/Proje
00000030:  6374 732f 4368 6962 6953 7475 6469 6f2f 6368 6962 696f 735f  :cts/ChibiStudio/chibios_
00000048:  7374 6162 6c65 2d31 382e 322e 7800 0000 0000 0000 0000 0000  :stable-18.2.x...........
00000060:  0000 00c0 58fb f323 bc00 141a 51f3 8c7b bb77 c6              :....X..#....Q..{.w.


Also other files has this dependencies.
Finally I make a new folder giovanni in home. Change ower to myself. Make the Projects-folder. And it works.
\o/ Nico

User avatar
psavr
Posts: 11
Joined: Thu Feb 08, 2018 8:38 am
Location: Switzerland
Been thanked: 1 time

Re: [INFO] Installed Linux Mint

Postby psavr » Fri Mar 30, 2018 9:36 am

@Nico
Create a new workspace folder (e.g. \ChibiStudio\MyWorkspace\) then start Eclipse and select the created folder as new workspace.
This worked fine for me...


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 4 guests