Page 1 of 4

Questions and wish list about Pyboard D

Posted: Thu Feb 07, 2019 8:21 pm
by rcolistete
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:

Re: Questions and wish list about Pyboard D

Posted: Fri Feb 08, 2019 6:05 am
by andreo
>>> import gc
>>> gc.collect()
>>> gc.mem_free()
178880

RAM, native, viper and assembler

Posted: Fri Feb 08, 2019 6:46 am
by pythoncoder
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.

Re: RAM, native, viper and assembler

Posted: Fri Feb 08, 2019 10:14 am
by rcolistete
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 ???

Re: Questions and wish list about Pyboard D

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

Re: RAM, native, viper and assembler

Posted: Fri Feb 08, 2019 11:12 am
by pythoncoder
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.

Re: RAM, native, viper and assembler

Posted: Fri Feb 08, 2019 11:33 am
by rcolistete
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 ?

Re: Questions and wish list about Pyboard D

Posted: Fri Feb 08, 2019 1:20 pm
by pythoncoder
The relatively "lite" version has a label with "SF2W" on a blue background. The "full fat" one has "SF6W" on a red background.

Re: RAM, native, viper and assembler

Posted: Fri Feb 08, 2019 9:21 pm
by rcolistete
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.

Re: Questions and wish list about Pyboard D

Posted: Fri Feb 08, 2019 9:51 pm
by mathieu
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?