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

From my experience, the 

Live Casino API offered here is an absolute game-changer for developers. It's packed with high-quality features and really simplifies the integration process for various gaming platforms. Whether you’re adding new games or optimizing your existing setup, this API streamlines everything. I’ve had a smooth time integrating it, and I’m confident it’ll work wonders for anyone looking to expand their casino offerings.

I can’t tell you how much I appreciate the way your article breaks everything down. The step-by-step explanations and simple bed wars examples make what could be a complicated subject feel manageable. It’s clear that you put a lot of thought into making sure your readers can really understand the topic, and that effort really shines through. This article is a great resource, and I’m sure many people will benefit from your knowledge and clear writing.

Setting up a development environment on Ubuntu 16.04 and later LTS releases can be quite straightforward with proper tools and guides. For anyone working on gaming-related projects like crazygames using Ubuntu ensures a stable and efficient platform to manage dependencies and streamline workflows.

Preparing for the Salesforce Data-Cloud-Consultant certification exam can be a challenging yet rewarding journey. As one of the most sought-after credentials in the Salesforce ecosystem, this certification validates your expertise in managing and implementing Salesforce Data Cloud solutions. To ensure your success, leveraging high-quality exam dumps can be a game-changer. Here’s everything you need to know about Salesforce Data-Cloud-Consultant exam dumps and how they can help you achieve your certification goals. For more info:

Merhaba! Ubuntu 16.04 ve sonraki LTS sürümleri üzerinde geliştirme ortamı kurmak, yazılım geliştirme sürecinin temel bir adımıdır. Bu işlem, doğru araçları ve yazılımları kurarak, verimli bir çalışma alanı oluşturmanıza olanak tanır. Başlangıç için gerekli paketlerin yüklenmesi, programlama dili için uygun ortamın hazırlanması ve veritabanı bağlantılarının yapılandırılması gibi adımlar yer alır. Ayrıca, doğru kütüphaneler ve bağımlılıklar ile çalışan bir sistem, projelerinizin daha stabil ve hızlı bir şekilde geliştirilmesini https://starzbetpromo.com/. Detaylı bilgi ve rehberler için bu linki ziyaret edebilirsiniz.

This article provides a solid foundation for setting up a development environment on Ubuntu for VESC. However, it could be updated for newer Ubuntu versions and associated tools. A section on troubleshooting common errors would also improve the user experience. For those working on macOS, a comparison of configuration differences could be helpful. Additionally, integration with automation tools or project management solutions could streamline workflows. Lastly, better documentation for developers in Europe would be a great addition.

At Yasir Electronics, transform your home with cutting-edge appliances that combine style and functionality. Discover the latest Samsung Washing Machine and Samsung Microwave Oven for effortless living. Elevate your kitchen with premium Hitachi Refrigerator Price in Pakistan and Water Dispenser Price in Pakistan designed for convenience and performance. Experience excellence—shop at Yasir Electronics and redefine your lifestyle today!

yasir electronics

At Ahsan Electronics, we bring you the latest and most reliable home appliances to enhance your lifestyle. Discover energy-efficient Dawlance inverter ac Price in Pakistan, powerful Dawlance 1 ton ac Price in Pakistan, and spacious Dawlance Deep Freezer Price in Pakistan 2024 designed for maximum performance. Upgrade your home with top-quality appliances—shop now at Ahsan Electronics for unbeatable deals!

Discover premium home appliances at Emaan Electronics your trusted destination for top brands. Upgrade your kitchen with a Dawlance Refrigerator Price in Pakistan or a Hitachi Refrigerator Price in Pakistan, and stay cool with a Haier Ac Price in Pakistan or Kenwood Ac Price in Pakistan. Need more space? Explore the Haier Side By Side Refrigerator for modern convenience. Shop now for quality you can trust!

Discover the best home appliances at Qasim Electronics, where quality meets affordability. From the latest lg washing machine price in pakistan to advanced samsung washing machine price in pakistan models, we have it all. Stay cool with a general air conditioner price in pakistan or upgrade your kitchen with a hitachi refrigerator price in pakistan and mitsubishi refrigerator price in pakistan. Shop now for premium appliances!

Experience comfort and hospitality at The Muslim Guest House, your ideal Guest House in Karachi for a peaceful stay. Whether you're traveling for business or leisure, we offer a relaxing environment with modern amenities. Enjoy a home-like atmosphere with top-notch service, ensuring a memorable and comfortable experience in the heart of Karachi.

Nulls Brawls est un jeu mobile amusant où les joueurs se battent en temps réel. Choisissez des personnages avec des pouvoirs spéciaux, jouez avec des amis ou en ligne. Le but est de gagner en battant les adversaires avec stratégie et travail d'équipe.

My buddy and I bet on cricket matches, but I always lose cause I don't know much. This site https://www.cricketfresh.in/, with its focus on Indian cricket, gives you predictions and analysis. They cover everything from team form to pitch conditions. I've learned a lot about what makes a good bet. Now, I'm not just throwing money away; I feel like I'm making smarter choices.

Фарингіт – це дуже неприємне захворювання, яке супроводжується болем у горлі, першінням та загальним дискомфортом. Коли я зіткнувся з цією проблемою, почав шукати ефективні засоби для лікування. На сайті Біотус знайшов не тільки якісні препарати, а й корисні поради щодо швидкого одужання. Великий вибір натуральних засобів, вітамінів та спреїв дійсно допоміг мені впоратися з симптомами. Рекомендую цей сайт усім, хто хоче швидко та безпечно позбутися фарингіту!

Pages