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

Heardle commitment to player satisfaction is evident in its regular updates and new challenges. The game evolves, offering a constant source of excitement for its dedicated community.

I will be grateful to you for your post; I have been hunting for an article like this for a considerable amount of time, and I finally found it today. This piece offers me a wonderful deal of guidance, and I find that it is of great assistance to me. globle game

Setting up a development environment on Ubuntu 16.04 and

Geometry Dash Breeze later LTS releases involves several steps, depending on the specific development needs and tools required.

As players delve deeper into the enchanting world of Infinite Craft, they uncover not only the potential of their creations but also the profound impact of their imagination. Every interaction within the game is an invitation to explore the depths of creativity and discover the magic that lies within.

Five Nights at Freddy's is one of the most famous and highly praised video game horror series for its creativity and ability to create tension. Developed by Scott Cawthon, FNAF stands out with its complex storyline and simple yet tense gameplay. It has succeeded in creating an engaging horror space where players feel like they are immersed in the story and have to face terrifying and unexpected situations. In addition, the development of this series is also highly appreciated for the use of sound and images to enhance the appeal and reality of the game.

Among Us is a social deduction game developed by InnerSloth that gained immense popularity in 2020.

Get high-quality work done as per the requirements with the reference to genuine sources for achieving higher grades. We are experts in meeting academics deadlines. So, feel free to contact us and become tension free   Online dissertation writer uk

Monkey Mart has bright, vivid and very eye-catching graphics. The colorful and cute images not only make the game more interesting but also create a comfortable and fun feeling every time you play.

Morne-hurez's picture

Setting up your development environment for android game development is essential for smooth progress. Utilize user-friendly tools like Android Studio and Unity to simplify your workflow. By configuring these platforms properly, you'll ensure seamless coding, testing, and optimization, paving the way for successful game creation.

This guide shows how to set up a Django development environment on Ubuntu 16.04 and subsequent LTS editions. It involves installing Python 3, pip 3, Django, and virtualenv to offer you all the tools you need to create web applications with Django. basketball stars

As a student aspiring to become a game developer, I focus on honing my skills through practice and learning. While seeking assistance, I've found that relying on the best assignment writing service ensures high-quality support tailored to my needs. This allows me to excel in both my coursework and my passion for game development.

Hey folks! Setting up your dev environment on Ubuntu 16.04 or later? Easy peasy! Just update your system, install necessary packages like build-essential, openocd, git, libudev-dev, and qt-sdk. Don't forget gcc-arm-embedded toolchain - add the repo, update, and install. Lastly, grab those udev rules for STLink V2. Voila! All set! Check out more tips like this on SavvyTipsGuru, perfect for business and course and jobs. Happy coding!

Hey there, community!

Are you on the lookout for skilled WooCommerce developers for hire to level up your e-commerce game? Look no further! Whether you're starting a new online store or revamping an existing one, finding the right developers is key to success.

If you need talented WooCommerce experts, you're in luck. This forum is teeming with seasoned professionals ready to tackle your projects with precision and finesse. Share your requirements, discuss your vision, and let's connect you with the perfect developers to bring your e-commerce dreams to life.

Don't hesitate to reach out and start the conversation! 🛒💻

The Custom Airline Software Development Guide by Attract Group is a comprehensive resource for aviation companies looking to elevate their operations. It delves expertly into the nuances of developing tailored software solutions, ensuring airlines can optimize processes, enhance customer experience, and stay competitive in a dynamic industry. Highly informative for stakeholders!

I really like the word game waffle. Not the same as the daily one. You can play the "unlimited" version of Waffle until you get tired of it. The figures in the box tell you what to do. Move the characters around so that all of the rows, both vertical and horizontal, line up with each other to make words. You can move 15 times. The game will end after 15 tries if it can't move the characters to the right place.
 

adrianadarby01's picture

Global Assignment Help is a leading platform offering comprehensive academic assistance to students worldwide. With a team of experienced professionals and subject matter experts, they provide top-notch assignment writing, editing, and proofreading services across various disciplines. Their commitment to quality, timely delivery, and customer satisfaction sets them apart. Whether it's essays, research papers, case studies, or dissertations, Global Assignment Help ensures thorough research, original content, and adherence to academic standards.

AdrianaDarby

Hello! Recently, I was in a minor car accident, and my neck got injured. I needed some practical advice on how to handle the pain. That’s when I found https://ways2well.com/health/chronic-injury. This website is a great resource! It’s full of practical tips and info on managing chronic injuries. What I appreciated the most is how easy it was to use on my phone. Whether I was lying down or sitting in a waiting room, I could access all the information I needed. The site is very user-friendly, and I quickly found the tips that helped. Thanks to this site, my neck pain has eased, and I can go about my day more comfortably. Definitely give it a try if you need similar advice.

Instead of following the standard business and not striving for more, go for something different and out-of-the-box strategies. This will help you attract the attention of many marketers, businessmen, and consumers. For example   writing services UAE

dino game is a basic running game in which you control a T-Rex and attempt to dodge obstacles for as long as possible. This Dino Game was first included into Google Chrome in 2014 and could be played without an internet connection.
 

cookie clicker is an addictive clicking game in which players click on a large cookie to earn cookies, then use the collected cookies to purchase upgrades and tools to automate and Speed ​​up the process of earning cookies, thereby building a giant cookie empire.

This blog post is a fantastic resource for setting up Ubuntu 16.04! As someone who manages IT tasks at Atlas Door Repair's commercial door repair chicago, I found your guide incredibly helpful. The step-by-step instructions for installation, configuration, and optimizing the system are clear and easy to follow. Your tips on partitioning and securing the installation have been particularly useful for ensuring our systems run smoothly and securely. Thank you for providing such detailed and practical advice. This post has made the setup process much simpler and more efficient for us! 

I found your article to be both informative and thought-provoking, a rare Io Games combination indeed.

 

wow, great post. it gave me a lot of useful information. I look forward to your next posts. 

Connections NYT

Monkey Mart is a standout in the world of online gaming, offering a captivating and immersive shopping simulation experience. Its vibrant graphics and intuitive gameplay mechanics make it a joy to play, appealing to both casual gamers and simulation enthusiasts alike.

You have clear goals in all of our papa's games. You might be putting money aside for a new car or a park ticket. You can only reach your goal by making money and helping other people. At the order desk, you will first take orders. Then, get the right items together and get them ready at the grill, mix, or build station. The last steps are different for each place. Help people in the neighborhood and at baseball games!

One of the standout features of Geometry Dash unblocked is the astonishing creativity exhibited by its players in level design. The game’s level editor provides a wide array of tools and assets, allowing creators to craft intricate patterns, visually stunning environments, and complex obstacle courses. Players often push the boundaries of what’s possible, incorporating unique elements like custom backgrounds, animated sequences, and complex triggers that alter game play in innovative ways. This creativity is a major driving force behind the game’s longevity and appeal, as players are constantly discovering new, imaginative levels that showcase the diverse talents within the Geometry Dash community.

One of Pokerogue is strengths lies in its roguelike elements, where death is not the end but a part of the learning process. Each run offers opportunities to unlock new cards, abilities, and strategies, empowering players to approach subsequent playthroughs with enhanced skills and knowledge.

Setting up a development environment on Ubuntu 16.04 and later LTS releases involves several key steps to ensure a smooth and efficient workflow.

  1. Update System: Begin by updating your system. Open a terminal and run

sudo apt update
sudo apt upgrade

Install Essential Packages: Install build-essential and other essential tools

sudo apt install build-essential git curl

IDE/Editor: Choose an IDE or text editor. For example, install VS Code:

sudo snap install --classic code

Database Setup: If your project requires a database, install one like PostgreSQL:

sudo apt install postgresql postgresql-contrib

Set Up Version Control: For version control, install Git:

sudo apt install git

  1. Additional Tools: Depending on your project, you might need Docker, Kubernetes, or other tools. Install them as needed.

Programming Languages: Install the programming languages you need. For Python:

sudo apt install python3 python3-pip

By following these steps, you'll have a robust development environment ready for coding and project management on Ubuntu 16.04 and later LTS releases.

If you need assistance with setting up your environment or troubleshooting, consider seeking Assignment help online to get expert guidance and support for your programming and development tasks.
 

<p>At MyAssignment Live, we redefine academic success, offering unparalleled services in online essays, writing, and assignments. Committed to excellence, I ensure every task is meticulously crafted, meeting the highest academic standards.

Pages