Jump to content
tschak909

How to set up for Firmware Development (under Linux)

Recommended Posts

#Atari8bit This video focuses on setting up #VSCode and #PlatformIO under Linux (as an example), so that you can hack on #FujiNet #ESP32 firmware! (or, just get a head start on builds before they reach production!)

 

  • Like 4

Share this post


Link to post
Share on other sites

Nice! Thx

 

NB: C'est la Vie - happy to make money like this 🙂

 

Share this post


Link to post
Share on other sites

Thanks!

 

The following should install Visual Studio Code, cc65 and fix the dialout issue on Debian 11 (Bullseye), and similar 64-bit Debian/Ubuntu distributions.

 

#!/bin/bash
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential git python3-venv python3-distutils wget apt-transport-https cc65
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
rm -f packages.microsoft.gpg
sudo apt update
sudo apt install code

sudo usermod -aG dialout ${USER}

I cribbed adding the Visual Studio Code repositories from: https://code.visualstudio.com/docs/setup/linux - which also includes steps for other Linux distributions.

 

You still need to do the Platform IO setup inside Visual Studio Code (from about 7 minutes onwards in the video), but the above should automate a reasonable number of steps.

 

You'll need to logout and log back in again for the addition of the "dialout" group to your id to take effect.

 

N.B. I still have to build my FujiNet, so can't do any actual testing of FujiNet coding, but the above will install the tool-chain, as far as I can tell.

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...