Skip to main content

Micropython Compatibility Guide

caution

Cocket Nova CH552 is not supported by MicroPython

This guide provides step-by-step instructions for firmware installation and board setup to use the DualMCU-ONE/DualMCU (RP2040 + ESP32) development boards with Micropython. These instructions will help you get started with MicroPython on your board and explore its features.

Micropython is a lightweight implementation of Python 3 optimized for microcontrollers and embedded systems. It provides an interactive prompt, allowing users to run Python code directly on the board, making it an excellent choice for rapid prototyping and development.

How to install MicroPython on the DualMCU-ONE/DualMCU board:

Prerequisites

Before proceeding, ensure you have the following tools installed:

Additional Resources:

Quick Installation

  1. Download the Micropython Firmware for the ESP32 and RP2040 from the official Micropython website.

  2. Connect the DualMCU-ONE/DualMCU board to your computer via USB.

  3. Flash the ESP32 firmware using the following command:

esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x1000 esp32.bin
  1. Flash the RP2040 UF2 firmware using the following steps:
  • Press and hold the BOOT button on the RP2040.
  • Connect the DualMCU-ONE/DualMCU board to your computer via USB.
  • Release the BOOT button.
  • Drag and drop the RP2040 UF2 firmware file onto the RP2040 drive.
  1. Once the firmware is flashed, the DualMCU-ONE/DualMCU board is ready to run Micropython.

Running Micropython

  1. Open a terminal window and connect to the ESP32 using the following command:
picocom /dev/ttyUSB0 -b115200
  1. Connect to the RP2040 using the following command:MicroPython
picocom /dev/ttyACM0 -b115200
  1. You can now run Python code directly on the board using the interactive prompt.