Questions and wish list about Pyboard D

The official PYBD running MicroPython, and its accessories.
Target audience: Users with a PYBD
User avatar
rcolistete
Posts: 146
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil

Questions and wish list about Pyboard D

Post by rcolistete » Thu Feb 07, 2019 8:21 pm

Questions and wish list about Pyboard D.

Does anybody know the free RAM of Pyboard D running MicroPython v1.10 ?

Code: Select all

>>> import gc
>>> gc.collect()
>>> gc.mem_free()
Are the MicroPython code emitters (from Pyboard v1.1) already available to Pyboard D :
- native (@micropython.native) ?
- viper (@micropython.viper) ?
- inline assemble (@micropython.asm_thumb) ?

Is it possible to totally turn off WiFi and Bluetooth on Pyboard D, without using light/deep sleep ?

Is "light sleep" (like 'pyb.stop()') already available on Pyboard D ?

Feel free to post more questions, as well as answers :mrgreen:

andreo
Posts: 13
Joined: Fri Mar 02, 2018 6:46 pm
Location: Belgium

Re: Questions and wish list about Pyboard D

Post by andreo » Fri Feb 08, 2019 6:05 am

>>> import gc
>>> gc.collect()
>>> gc.mem_free()
178880

User avatar
pythoncoder
Posts: 3450
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

RAM, native, viper and assembler

Post by pythoncoder » Fri Feb 08, 2019 6:46 am

The free RAM depends on the model. I have one with about 470K free. From a quick test native, viper and inline assembler all work out of the box.

I don't know the answers to the sleep questions but from studying the schematic it looks to have been designed to support low power applications. There is a second 3.3V regulator switched by a GPIO pin. This is presumably to allow peripherals to be shut down under application control. On the Pyboard 1.x this required external circuitry, with more required to prevent power loss through the I2C pullups.
Peter Hinch

User avatar
rcolistete
Posts: 146
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil

Re: RAM, native, viper and assembler

Post by rcolistete » Fri Feb 08, 2019 10:14 am

pythoncoder wrote:
Fri Feb 08, 2019 6:46 am
The free RAM depends on the model. I have one with about 470K free. From a quick test native, viper and inline assembler all work out of the box.
Thanks for the information.
Wow, a lot better than approx. 100KB of Pyboard v1.1.
There are different models of Pyboard D with less/more RAM ???

User avatar
rcolistete
Posts: 146
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil

Re: Questions and wish list about Pyboard D

Post by rcolistete » Fri Feb 08, 2019 10:15 am

andreo wrote:
Fri Feb 08, 2019 6:05 am
>>> import gc
>>> gc.collect()
>>> gc.mem_free()
178880
Thanks for the information.

User avatar
pythoncoder
Posts: 3450
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: RAM, native, viper and assembler

Post by pythoncoder » Fri Feb 08, 2019 11:12 am

rcolistete wrote:
Fri Feb 08, 2019 10:14 am
There are different models of Pyboard D with less/more RAM ???
There are certainly two as I have them. I don't know how many variants are planned.
Peter Hinch

User avatar
rcolistete
Posts: 146
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil

Re: RAM, native, viper and assembler

Post by rcolistete » Fri Feb 08, 2019 11:33 am

pythoncoder wrote:
Fri Feb 08, 2019 11:12 am
rcolistete wrote:
Fri Feb 08, 2019 10:14 am
There are different models of Pyboard D with less/more RAM ???
There are certainly two as I have them. I don't know how many variants are planned.
How can we identify these 2 models ? Different names on top of the microcontroller ?

User avatar
pythoncoder
Posts: 3450
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Questions and wish list about Pyboard D

Post by pythoncoder » Fri Feb 08, 2019 1:20 pm

The relatively "lite" version has a label with "SF2W" on a blue background. The "full fat" one has "SF6W" on a red background.
Peter Hinch

User avatar
rcolistete
Posts: 146
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil

Re: RAM, native, viper and assembler

Post by rcolistete » Fri Feb 08, 2019 9:21 pm

pythoncoder wrote:
Fri Feb 08, 2019 6:46 am
From a quick test native, viper and inline assembler all work out of the box.
IMHO, this is a very strong point of Pyboard D : initial MicroPython release with mature implementation. Only few MicroPython boards support native and viper decorator, less yet assembler decorator.

Counting the days to benchmark Pyboard D, measure power usage, etc.

User avatar
mathieu
Posts: 20
Joined: Fri Nov 10, 2017 9:57 pm

Re: Questions and wish list about Pyboard D

Post by mathieu » Fri Feb 08, 2019 9:51 pm

Questions:
Is there a reasonable chance that the pyboard D would have out-of-the-box support for I2S?
Or, conversely, is there any reason to think this is unlikely?
Further: am I wrong in believing the micropython implementations of I2S only run on ESP32 boards?
If that's correct, is there a technical reason for that?

Post Reply