element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
microbit
  • Learn
  • Learning Center
  • STEM Academy
  • microbit
  • More
  • Cancel
microbit
micro:bit Blog Microflash - micro:bit flashing tool for Ubuntu / Linux
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
microbit requires membership for participation - click to join
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: rancell
  • Date Created: 7 Nov 2018 9:32 AM Date Created
  • Views 3046 views
  • Likes 2 likes
  • Comments 0 comments
  • micro:bit education giveaway
Related
Recommended

Microflash - micro:bit flashing tool for Ubuntu / Linux

rancell
rancell
7 Nov 2018

TL;DR

 

I wrote a tool to make it even easier to download programs to the micro:bit. It's called Microflash and it means when you activate a .hex file you can download that to a micro:bit with just one more click.

image

 

To install on an Ubuntu 18.04 LTS machine enter the following in a terminal:

 

$ sudo apt-add-repository ppa:robert-ancell/microflash-stable

$ sudo apt install microflash

 

It's open source (GPL-3) and you can contribute on the GitHub page.

You can also help translate it into your language.

I've packaged it for Ubuntu, but you should be able to compile / package it for other Linux distributions.

 

Why?

 

If it's so easy why make a tool? Well, there's easy and then there's easy. There's two main reasons:

  1. The more complex something is the more likely learners are likely to make a mistake and get disillusioned.
  2. The more complex something is the less likely you are to test your code and develop faster.

 

There's actually quite a number of steps the operating system makes you go through before you get the file to the micro:bit. This is on Ubuntu but it's pretty similar on ChromeOS / Apple / PCs.

 

Once you have your program ready, you click the big "Download" button in the bottom left.

image

 

This downloads to your computer and shows up in the bottom bar in Chrome (similar in Firefox). You need to find the file on your computer, which is most easily down by clicking the small up arrow beside it (quite a small click target).

image

 

Select "Show in folder" from the menu.

image

 

This opens your file browser, and from there you drag it into the MICROBIT folder.

image

 

It's four clicks in total which is not too bad, but still a bit of a chore if you do it a lot or you're not super experienced in all these operations. With Microflash you just click twice - once on the Download button and the the Flash button in Microflash. And if you've forgotten to connect the micro:bit that's shown too.

image

 

Microflash avoids another problem too - flashing an older version by accident. Each time you download the program it has the same filename. The browser adds a number the end when it saves it but it's quite hard to work out which was the most recently downloaded version. When presented with the following I've observed people dragging the wrong version onto their micro:bit.

image

 

I hope you find this tool useful!

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube