MicroPython Build process on Windows

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
licondam
Posts: 1
Joined: Fri Apr 12, 2019 10:51 am

MicroPython Build process on Windows

Post by licondam » Fri Apr 12, 2019 10:53 am

Hello,
I have been using Micropython STM version on Linux OS, I am just curious to know whether can I do build firmware on Windows? If yes, what compilers do I need to install to build a firmware out of the source code?

What is the best way to debug the application code? I am using Python Idle to get the syntax errors before pasting them to Pyboard, are there any better options to find errors or testing the application code?

Thanks

chrismas9
Posts: 94
Joined: Wed Jun 25, 2014 10:07 am

Re: MicroPython Build process on Windows

Post by chrismas9 » Fri Apr 12, 2019 3:52 pm

You can build using MSYS or Cygwin but by far the easiest is WSL (Windows Subsystem for Linux) under recent versions of Windows 10. Just go to Windows Store and install Ubuntu, then install tools listed in MPY readme for Ubuntu.

Launch bash shell (type bash into Cortana or run box). It mounts your Windows C drive. I use editor and Tortoisegit on Windows and just run make in bash shell. Then I use ST's defusedemo to program the STM32 in USB bootloader mode.

Post Reply