Can't build a module to micropython on esp32 port
Posted: Thu Nov 28, 2019 5:29 pm
Hi!
I was following the docs from this new guide (https://micropython-usermod.readthedocs ... index.html) to create modules and build the micropython firmware and I was trying to build the simplefunction.c example to the esp32.
So I placed the simplefunction.c in the working directory (in my case /ports/esp32), added the to the mpconfigport.h and run the makefile on the terminal only using make without no arguments, because as the code is in the same directory I don't need to specify a path and the others constants such as board and compiler because they are already defined on makefile.
The result: So It built with no error, when I gave a make deploy and tried to import the module on my esp32 I got the following message from the REPL:
So, I think there's something missing... Can someone help me figure out?
One more information: while the make was running it printed out a message "QSTR not updated ", in somehow I think maybe it has something to do with it.
I am using:
OS: Ubuntu 18.04
IDF version: v3
port: esp32
micropython version: 1.11
Thanks in advance
I was following the docs from this new guide (https://micropython-usermod.readthedocs ... index.html) to create modules and build the micropython firmware and I was trying to build the simplefunction.c example to the esp32.
So I placed the simplefunction.c in the working directory (in my case /ports/esp32), added the
Code: Select all
#define MODULE_SIMPLEFUNCTION_ENABLED (1)
The result: So It built with no error, when I gave a make deploy and tried to import the module on my esp32 I got the following message from the REPL:
Code: Select all
ImportError: no module named 'simplefunction'.
One more information: while the make was running it printed out a message "QSTR not updated ", in somehow I think maybe it has something to do with it.
I am using:
OS: Ubuntu 18.04
IDF version: v3
port: esp32
micropython version: 1.11
Thanks in advance