Page 1 of 1

Selecting an ESP32 Port

Posted: Tue Mar 07, 2017 4:54 am
by koswolf
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?

Re: Selecting an ESP32 Port

Posted: Wed Mar 08, 2017 5:47 am
by marfis
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...

Re: Selecting an ESP32 Port

Posted: Thu Apr 13, 2017 4:15 am
by miltmobley
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.

Re: Selecting an ESP32 Port

Posted: Tue Apr 25, 2017 4:51 pm
by eerimoq
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