Page 1 of 1

MicroPython on Amazon Dash?

Posted: Fri Sep 23, 2016 1:03 am
by mcauser
The Amazon Dash features a STM32F205RG6 120Mhz ARM Cortex M3 with 128KB ram and 1MB flash rom.
Has anyone tried porting MicroPython to this device?
Is there enough ram/rom to run MicroPython?

https://aws.amazon.com/iot/button/
https://github.com/dekuNukem/Amazon_Dash_Button
https://mpetroff.net/2015/05/amazon-das ... -teardown/
https://learn.adafruit.com/dash-hacking ... g?view=all

Re: MicroPython on Amazon Dash?

Posted: Fri Sep 23, 2016 1:55 am
by dhylands
That seems like lots of flash/RAM for MicroPython.

The Espruino Pico only has 384K flash and 96K RAM, and I run MicroPython on it.

Re: MicroPython on Amazon Dash?

Posted: Fri Sep 23, 2016 4:51 am
by Roberthh
Wasn't the F2 support just removed from the stmhal source tree (build 1f69b16 stmhal: Remove STM32CubeF2 HAL files, they are unused/unsupported)?

Re: MicroPython on Amazon Dash?

Posted: Fri Sep 23, 2016 5:33 am
by dhylands
They're easy enough to add back, if a port actually uses them.

Re: MicroPython on Amazon Dash?

Posted: Wed Sep 28, 2016 7:31 am
by profra
@dhylands I read here that you run MicroPython on Pico. I have 2 Pico boards but I don't know how to transfer MP to this boards. Please can you advise how to do it? Short description of necessary steps... and please let me know also which syntax is used for name of pins... is it in accordance with original PYB board?

Sent from my SM-T325 using Tapatalk

Re: MicroPython on Amazon Dash?

Posted: Wed Sep 28, 2016 11:42 am
by deshipu

Re: MicroPython on Amazon Dash?

Posted: Wed Sep 28, 2016 2:33 pm
by profra
@desiphu Thanks for your advice. I was successful!!! I fought a bit with mix of problems with Linux/W10 versus dfu-util/Dfuse but I managed it. I have MicroPython on Pico finally.
upy_on_pico.png
upy_on_pico.png (26.18 KiB) Viewed 7708 times

Re: MicroPython on Amazon Dash?

Posted: Wed Sep 28, 2016 8:11 pm
by dhylands
To see the pin mapping for a particular board, you can check the pins.csv file in the board directory. For the Espruino Pico, that would be:
https://github.com/micropython/micropyt ... O/pins.csv

The first column contains the board names for the pin, and the second column contains the CPU name.

You can also do:

Code: Select all

>>> dir(pyb.Pins.board)
The board pin names match up with the names used in the Pinout on this page: http://www.espruino.com/Pico
On that page you can hover over the PWM/ADC to get more info about the particular timer/channel or ADC channel.

Re: MicroPython on Amazon Dash?

Posted: Wed Sep 28, 2016 9:56 pm
by profra
@dhylands Thank you for all info which leads me straight to the point... I had to find out those things by experimenting... I must learn better to look at github :D