Selecting an ESP32 Port

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
koswolf
Posts: 1
Joined: Sun Feb 19, 2017 9:22 pm

Selecting an ESP32 Port

Post by koswolf » Tue Mar 07, 2017 4:54 am

I'm working on a project that has a strict requirement for MIT licensing, and we are working with ESP32 modules on a custom PCB.

I've been able to build and load the existing ESP32 port from https://github.com/micropython/micropython-esp32, but it seems to be missing some core features. I haven't been able to find documentation supporting the use of the UART peripheral, and it seems it's only implemented for the REPL.

Is this true? I know that the pycom port on GitHub has the UART hardware peripherals implemented, but their licensing means I'm not able to make use of their work.

Am I overlooking something, or is there a different fork of the port I should be looking at?

User avatar
marfis
Posts: 215
Joined: Fri Oct 31, 2014 10:29 am
Location: Zurich / Switzerland

Re: Selecting an ESP32 Port

Post by marfis » Wed Mar 08, 2017 5:47 am

The pycom esp32 port should be merged soon into the main uPy repository (there was an announcement by damien on this forum a couple of weeks ago).

So I guess you need to be patient...

miltmobley
Posts: 30
Joined: Mon Mar 07, 2016 11:44 pm

Re: Selecting an ESP32 Port

Post by miltmobley » Thu Apr 13, 2017 4:15 am

Have you seen this?

https://forum.pycom.io/topic/550/pycom- ... -the-esp32

It mentions three pull requests to esp-idf repo to meet their requirements, and two to micropython-esp32 repo.
As of today, the support for multiple boards pr is not in m*-esp32.

There is also platformio, a multi board embedded development system, which has several frameworks, e.g. framework-pumbaa.
This framework supports the nano32 board (also esp32 based), and has uart code and mit license.
The uart code is in the simba source subtree. Simba is an rtos by the same author.
The code does the same kind of register flogging seen in stmhal and other hal type products,
so you may be able to adapt it while waiting for micropython/esp/pycom to sort out their differences.

eerimoq
Posts: 9
Joined: Mon Sep 26, 2016 5:44 pm

Re: Selecting an ESP32 Port

Post by eerimoq » Tue Apr 25, 2017 4:51 pm

Hello,

I'm the author of Pumbaa (and Simba). The UART driver should work on the ESP32. If there is a problem or if you have any questions, just let me know and I can help out. =)

Here is an example of how to use the Uart peripheral on an ESP32 based board:

http://pumbaa.readthedocs.io/en/latest/ ... ivers.Uart

All code I've written in both Pumbaa and Simba in licensed under the MIT License. However, the FAT16 library is LGPL, and Espressif is Apache 2.0 if I'm not mistaken. The FAT16 library can easily be removed from your application, so don't worry about that.

BR / Erik

Post Reply