You are here

Ubuntu Setup

6 posts / 0 new
Last post
mystamo
Offline
Last seen: 1 month 3 weeks ago
VESC Free
Joined: 2020-07-11 02:45
Posts: 16
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 week 5 days ago
Joined: 2018-04-26 12:18
Posts: 102

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: 1 month 3 weeks ago
VESC Free
Joined: 2020-07-11 02:45
Posts: 16

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: 3 hours 38 min ago
Joined: 2017-09-22 01:27
Posts: 500

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 week 5 days ago
Joined: 2018-04-26 12:18
Posts: 102

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: 1 month 3 weeks ago
VESC Free
Joined: 2020-07-11 02:45
Posts: 16

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