Skip to content
Discussion options

You must be logged in to vote

This is a little write-up about custom-building MicroPython firmware.
This is how I do it on a Linux Mint PC. It may not be the right or best way to do it, but it works for me.

  1. $ cd micropython/
    Create a new directory to store your modules
    $ mkdir extra
  2. $ cd micropython/ports/esp32/board/
    Create a new board
    $ cp -r ESP32_GENERIC ESP32
    Edits:
    1. mpconfigboard.cmake
    2. mpconfigboard.h
    3. sdkconfig.board
    4. manifest.py
  3. $ cd micropython/ports/esp32/
    Customise your build. Save original and edited files:
    1. $ cp mpconfigport.h mpconfigport.h-ORIG
    2. $ cp mpconfigport.h mpconfigport.h-STD
    3. $ vi mpconfigport.h-STD
    4. $ cp esp32_common.cmake esp32_common.ORIG
    5. $ cp esp32_common.cmake esp32_common.STD
    6. $ vi esp32_com…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sir-user
Comment options

Answer selected by sir-user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
3 participants