How to build a firmware with _thread module?
-
- Posts: 363
- Joined: Sun Apr 17, 2016 1:55 pm
How to build a firmware with _thread module?
PYB has firmware with thread module, but how to build a custom firmware with _thread module?
-
- Posts: 1
- Joined: Sat Oct 14, 2017 2:25 pm
Re: How to build a firmware with _thread module?
1. cd stmhal
2. rm -rf build-PYBV10
3. modify stmhal/mpconfigport.h file
#define MICROPY_PY_THREAD (1)
4. make BOARD=PYBV10 V=1
2. rm -rf build-PYBV10
3. modify stmhal/mpconfigport.h file
#define MICROPY_PY_THREAD (1)
4. make BOARD=PYBV10 V=1
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: How to build a firmware with _thread module?
The preferred option for step 2 is
Code: Select all
make BOARD=PYBV10 clean
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: How to build a firmware with _thread module?
@ pythoncoder ,I had modified the py/mpconfig.h file
and ports/stm32/mpconfigport.h file
But when build
show as error information
Code: Select all
#ifndef MICROPY_PY_THREAD
#define MICROPY_PY_THREAD (1)
#endif
Code: Select all
#ifndef MICROPY_PY_THREAD
#define MICROPY_PY_THREAD (1)
#endif
Code: Select all
make BOARD=PYBLITEV10 V=1
How to solve this issue.Thanks advance!In file included from ../py/mpstate.h:32:0,
from ../py/mpstate.c:27:
../py/mpthread.h:36:26: fatal error: mpthreadport.h: No such file or directory
compilation terminated.
../py/mkrules.mk:47: recipe for target 'build/py/mpstate.o' failed
make[1]: *** [build/py/mpstate.o] Error 1
make[1]: Leaving directory '/home/phonelink/micropython/mpy-cross'
../../py/mkrules.mk:104: recipe for target '../../mpy-cross/mpy-cross' failed
make: *** [../../mpy-cross/mpy-cross] Error 2