pyboard frozen modules folder

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
User avatar
devnull
Posts: 473
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall
Contact:

pyboard frozen modules folder

Post by devnull » Mon May 07, 2018 1:03 pm

Reading old posts it seems that you used to create a modules folder in stmhal, but now that there is a ports folder, where exactly are frozen modules located for the pyboard ?

User avatar
devnull
Posts: 473
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall
Contact:

Re: pyboard frozen modules folder

Post by devnull » Mon May 07, 2018 2:07 pm

OK, figured it out, use the stm32 folder.

But how do I enable the _threads module ?

I have tried enabling in these files, but it does not appear to work:

/ports/stm32/mpconfigport.mk
/ports/stm32/boards/pvbv11/mpconfigboard.h

Code: Select all

## enable _threads
MICROPY_PY_THREAD = 1

jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

Re: pyboard frozen modules folder

Post by jickster » Mon May 07, 2018 10:51 pm

devnull wrote:OK, figured it out, use the stm32 folder.

But how do I enable the _threads module ?

I have tried enabling in these files, but it does not appear to work:

/ports/stm32/mpconfigport.mk
/ports/stm32/boards/pvbv11/mpconfigboard.h

Code: Select all

## enable _threads
MICROPY_PY_THREAD = 1
You have to have a threading library implemented on whatever micro+OS combination you’re using.


Sent from my iPhone using Tapatalk

Post Reply