I followed the instructions here for setting up the environment:
https://github.com/pfalcon/esp-open-sdk
I then cloned micropython
Ran:
Code: Select all
git submodule update --init
Code: Select all
make -C mpy-cross
Code: Select all
cd ports/esp8266
Code: Select all
make axtls
Ran:
Code: Select all
make
However the whole purpose of building this was to load my own modules to hopefully fix the memory errors I was getting. So after loading my modules into the modules sub-directory and running make I got the following error which I'm not really sure how to resolve.
Code: Select all
GEN build/frozen_mpy.c
CC build/frozen_mpy.c
build/frozen_mpy.c:280:5: error: redeclaration of enumerator 'MP_QSTR_NULL'
MP_QSTR_NULL,
^
In file included from ../../py/obj.h:31:0,
from ../../py/objint.h:30,
from build/frozen_mpy.c:2:
build/genhdr/qstrdefs.generated.h:3:6: note: previous definition of 'MP_QSTR_NULL' was here
QDEF(MP_QSTR_NULL, (const byte*)"\x00\x00\x00" "")
^
../../py/qstr.h:41:23: note: in definition of macro 'QDEF'
#define QDEF(id, str) id,
^
make: *** [../../py/mkrules.mk:47: build/build/frozen_mpy.o] Error 1
Thanks