You are here

Setting up a development environment on Ubuntu 16.04 and later LTS releases

Submitted by benjamin on Wed, 2018-01-24 10:16

This guide describes how to set up a development environment on Ubuntu 16.04 and later for working with the VESC firmware and VESC Tool. Open a terminal and follow along...

Start by updating the system and installing some required packages:

sudo apt update
sudo apt upgrade
sudo apt install build-essential openocd git libudev-dev qt-sdk

Now install the gcc-arm-embedded toolchain (see this page for more details)

sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa

press Y, enter, then

sudo apt update
sudo apt install gcc-arm-embedded

now add udev rules to use the stlink v2 programmer without beeing root

wget vedder.se/Temp/49-stlinkv2.rules
sudo mv 49-stlinkv2.rules /etc/udev/rules.d/
sudo udevadm trigger

At this point you should be able to clone the firmware from github, build it and upload it. Let's give it a try

git clone https://github.com/vedderb/bldc.git vesc_firmware
cd vesc_firmware
make

by default this will build firmware for hardware version 6. To change the hardware version, open conf_general.h and change it to use the hardware version that you have. For example, for HW 4.12 it should look like this

/*
 * Select only one hardware version
 */
#if !defined(HW_VERSION_40) && !defined(HW_VERSION_45) && !defined(HW_VERSION_46) && \
	!defined(HW_VERSION_48) && !defined(HW_VERSION_49) && !defined(HW_VERSION_410) && \
	!defined(HW_VERSION_60) && !defined(HW_VERSION_R2) && !defined(HW_VERSION_VICTOR_R1A) && \
	!defined(HW_VERSION_DAS_RS) && !defined(HW_VERSION_PALTA) && !defined(HW_VERSION_RH) && \
	!defined(HW_VERSION_TP)
//#define HW_VERSION_40
//#define HW_VERSION_45
//#define HW_VERSION_46 // Also for 4.7
//#define HW_VERSION_48
//#define HW_VERSION_49
#define HW_VERSION_410 // Also for 4.11 and 4.12
//#define HW_VERSION_60
//#define HW_VERSION_R2
//#define HW_VERSION_VICTOR_R1A
//#define HW_VERSION_DAS_RS
//#define HW_VERSION_PALTA
//#define HW_VERSION_RH
//#define HW_VERSION_TP
#endif

there are also many other options that can be changed in conf_general.h. To rebuild the firmware after the changes, run

make

now connect the stlink v2 programmer, connect power from a lab power supply and try to upload the firmware

make upload

It should say verified ok towards the end if everything went well.

VESC Tool

In order to build VESC Tool you need a recent version of the Qt SDK. Go to https://www.qt.io/download and get Qt Open Source. You should get a file called something like qt-unified-linux-x64-3.0.2-online.run. Set the executable flag of the file and install it as root to get a system-wide installation

cd Downloads
chmod +x qt-unified-linux-x64-3.0.2-online.run
sudo ./qt-unified-linux-x64-3.0.2-online.run

follow the instructions to finish the installation. You might also need the following packages:

sudo apt install mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev

At this point you should be able to clone the source code for VESC Tool and build it.

git clone https://github.com/vedderb/vesc_tool.git vesc_tool

It is recommended to open the project file from Qt Creator (which you should have after the previous step) and build the project from there. Instructions for building the android version will be added later.

Comments

Order an essay is a smart way to manage academic pressure and ensure high-quality results. By choosing a reputable service, you can receive a custom-written, plagiarism-free essay tailored to your specific requirements and deadlines. This not only helps you save time but also enhances your chances of achieving better grades. Whether you're facing a tight deadline or a challenging topic, ordering an essay can be a reliable and effective solution.

there are also many other options that can be changed in conf_general.h. To rebuild the firmware after the changes, run make now connect the stlink v2 programmer fnaf 2,connect power from a lab power supply and try to upload the firmware

Balancing a busy schedule with multiple assignments can be overwhelming. Getting support from https://myhomeworkdone.com/assignment-writing-service.html helped ease the pressure. The assistance provided was thorough and well-structured, making complex topics more understandable. However, I found it important to review the completed work carefully and add my own insights to ensure it aligned with my personal academic goals and my professor's expectations. This service has been a helpful resource in managing my workload, especially during particularly demanding weeks.

Balancing a busy schedule with multiple assignments can be overwhelming. Getting support from https://myhomeworkdone.com/assignment-writing-service.html helped ease the pressure. The assistance provided was thorough and well-structured, making complex topics more understandable. However, I found it important to review the completed work carefully and add my own insights to ensure it aligned with my personal academic goals and my professor's expectations. This service has been a helpful resource in managing my workload, especially during particularly demanding weeks.

For those struggling with essay writing, I’ve found an amazing website that provides exceptional writing services. Their professional writers are experienced in various academic fields and can produce essays that are both engaging and well-researched. This 99 papers.com service ensures that your essays are delivered on time and meet all your academic requirements. It’s a fantastic resource for students seeking reliable writing assistance.

However, standing out in a saturated market requires more than just creating great music. I found a service that could be a game-changer for those looking to make an impact on Beatport. https://promosoundgroup.net offers a specialized Beatport Top 100 promotion service that is tailored to elevate your track's visibility. Their approach combines targeted promotion with industry insights, ensuring your music reaches the right audience. By leveraging their services, you can increase your chances of making it into the coveted Top 100 and gaining the recognition you deserve.

Dive into the world of Unblocked Games 76 where every game is a new journey. Experience the luxury of premium gameplay, whether you’re playing with family, classmates, or on your own. Unblocked Games 76 transforms your free time into exhilarating adventures, combining passion and class in every session. Discover excitement like never before with Unblocked Games 76!

Here are many extremely attractive adventure and horror game titles that have been loved by many people around the world such as Skribbl io or five nights at freddy's. Coming to this version this time you will continue the adventure full of attraction and no less adventurous, you have to overcome great challenges.

To set up a development environment on Ubuntu 16.04 and later for VESC firmware, begin by updating your system and installing required packages using the command: sudo apt update. This guide provides a clear path for developers interested in enhancing projects like Monkey Mart.

To change the current user password, enter the new password in both field

This article has completely changed my perspective on the topic. I'm grateful for the insights it has provided. cartel4d

Enter a world of fantasy and magic with this enchanting blog. Journey to far-off lands and embark on epic quests with cartel4d

Yes. Don’t forget to configure your SSH keys for secure access to repositories. Finally, consider using Docker for containerization, which can simplify dependencies and deployment across different environments. This setup will provide a solid foundation for various development tasks!

Best,

Mrs. Lou - Kitchens Parramatta

Great tips.. Using a version manager, such as `nvm` for Node.js or `pyenv` for Python, can help manage different versions effortlessly. Don’t forget to set up a good code editor; Visual Studio Code and Atom are popular choices that offer great support for various languages. Lastly, leverage tools like Docker for containerization to simplify deployment across different environments. Overall, the process is quite user-friendly and gives you a robust platform for development.

Anne., small business coach sydney

Thanks! Setting up a development environment on Ubuntu 16.04 and later LTS releases is a great way to ensure you have all the necessary tools at your fingertips for coding and development work. First, it's essential to update your package list to ensure you're working with the latest software versions. You can do this by running `sudo apt update` in the terminal. Next, consider installing build-essential, which includes the GCC compiler and libraries needed for compiling software. You can install it using `sudo apt install build-essential`.

Mr. Salvador,. Sydney construction company

You now have a basic development environment set up on Ubuntu 16.04 and later LTS

Sprunki releases. Depending on your specific development needs, you can customize this setup further by installing other tools or libraries.

For additional support, consider checking out forums or documentation related to VESC development, as they can provide valuable insights and troubleshooting tips.

Lea J.@Sydney Dance School

Since I already use Microsoft tools, ASP.NET’s integration has made my workflow more efficient. It’s so convenient to work within one ecosystem, saving time and effort. This compatibility has allowed me to streamline processes and improve productivity. More about you can find here 

https://www.abtosoftware.com/services/asp-dot-net-web-applications-development

Setting up a development environment on Ubuntu 16.04+ involves installing essential tools like Git, Node.js, and Python, configuring IDEs, and setting up Docker or virtual environments. directv provider These steps ensure a flexible, robust setup for coding and software development.

Setting up a development environment on Ubuntu can be a rewarding challenge. As you dive into firmware development, consider checking out the Pokerogue and Pokerogue Dex game for a unique twist on Pokémon. Explore coding, unleash your creativity, and perhaps even build your own Pokémon-inspired projects. Follow the steps outlined to start your journey and unlock new capabilities in the coding world!

Don't miss the chance to become a part of the Tap Road community—visit the website taproad.io and start playing today!

I think this post is beneficial and full of useful information. So, I'd like to thank you for all the hard work you put into writing this article fnaf
 

Pages