Simon

Introduction to developing MicroPython #2 — Environment Setup

Posted on October 28, 2020

Environment Setup for Devs.

To build a MicroPython firmware using provided SDK successfully, the key to to get all necessary software and set them up correctly.

 

Here list the most important software that are used in making the firmware,

  1. Cygwin: This is the first software you need to install, and we recommand using 32-bit version even for a 64-bit machine. During cygwin installation, there are 2 things you need to pick as well, they are GNU make under Devel category and bc under Math category
  2. Python3 : We need python3 to process some python script invoked during the making process, so this is needed. When installing, make sure to choose to add python3 to your system’s evironmental variable PATH so that cygwin knows where to look for the python3 executable file
  3. Toolchain : This is the most important part of the SDK and luckily toolchain is provided in the SDK and will be automatically installed during the first time compilation
  4. Teraterm : Teraterm is an free serial COM software that allow users to interact with MicroPython through REPL (Read Evaluate Print and Loop) prompt. Of course there are other options for serial COM, you may choose the ones you like, but make sure to set baud rate to 115200 in order to talk to REPL
  5. Text editor : To develop efficiently, you need a powerful text editor to help you better understand the code and provide necessary help using its built-in code hinting and deifinition checking features. There are too many options out there, the most common ones are Visual Studio Code, Sublime, Notepad++ and etc.

Good news is all above mentioned software come free of charge so make sure to download and install them beforehand.

 


 

That’s all for now, stay tuned and happy coding 😉

Share with:

FacebookTwitterLinkedIn


Leave a Reply

Your email address will not be published. Required fields are marked *