You are here

Ubuntu Setup

7 posts / 0 new
Last post
mystamo
Offline
Last seen: 2 years 1 month ago
Joined: 2020-07-11 02:45
Posts: 17
Ubuntu Setup

Hey All,

 

Really hoping for some help here.

 

Trying to setup my ubuntu distro ver 16.04 to run the ARM GCC toolchain but can't get it to install. Tried sudo apt-get install gcc-arm-embedded and get unable to locate package error and I'm pretty damn sure i installed the repository correctly.

 

This issue has now ate my entire day.

 

Help would be awesome.

 

Mo

district9prawn
Offline
Last seen: 1 year 3 months ago
Joined: 2018-04-26 12:18
Posts: 123

I just download the 2018 q2 arm embedded toolchain from the arm website. Then unzip and add it to your environment.

mystamo
Offline
Last seen: 2 years 1 month ago
Joined: 2020-07-11 02:45
Posts: 17

Unzip and add to your environment?  Are you even on ubuntu? Firstly nothing is zipped, its all compressed under some unix standard. Secondly, there isn't exactly an "add this to my environment" button. Hence why i've spent an entire day and an entire restless night trying to figure it out.. Reaching out to the forum is my final straw. 

 

Looking for some commands to try or some screenshots of how it is actually done. 

 

The firmware documentation is all out of date and nothing works or complies as it should anymore. 

 

Mo

TechAUmNu
Offline
Last seen: 1 day 22 hours ago
VESC Free
Joined: 2017-09-22 01:27
Posts: 575

I use the ubuntu subsystem for windows, which lets you run anything you could run on ubuntu. I don't remember it being very difficult to setup for compiling.

These are the instructions I used.

https://vesc-project.com/node/310

district9prawn
Offline
Last seen: 1 year 3 months ago
Joined: 2018-04-26 12:18
Posts: 123

It looks like the repo in Benjamin's guide is no longer there?

Yes my previous post was how I do it on linux.

Download the toolchain here

Extract wherever. To add the bin directory to your environment in terminal you can do

export PATH=$PATH:/your-path/gcc-arm-none-eabi-7-2018-q2-update/bin

 

mystamo
Offline
Last seen: 2 years 1 month ago
Joined: 2020-07-11 02:45
Posts: 17

The sun and the stars have aligned.   Finally got the code to compile and upload via stlink all off my Pi Ubuntu distro. Wooooooo.

@ district9prawn   sorry I was a bit grumpy earlier. I was up all night watching small text scrolling down my screen and repeatedly writing new image files as I would corrupt my Ubuntu image with my experiements.

 

Finally got it to work by manually installing the embedded GCC compiler which is what I was actually missing.

 

Mo

 

 

NATUITION
NATUITION's picture
Offline
Last seen: 1 month 1 week ago
VESC Free
Joined: 2019-09-27 20:56
Posts: 6

Hi all, do you know if it is possible to perform setup motor FOC command from linux bash? Additionaly if we can apply App configuration from file also using linux bash

(UART connection between linux and vesc)

Thanks in advance

Cyril ROUDOT
www.natuition.com