MicroPython on Amazon Dash?

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
User avatar
mcauser
Posts: 507
Joined: Mon Jun 15, 2015 8:03 am

MicroPython on Amazon Dash?

Post by mcauser » Fri Sep 23, 2016 1:03 am

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

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: MicroPython on Amazon Dash?

Post by dhylands » Fri Sep 23, 2016 1:55 am

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.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: MicroPython on Amazon Dash?

Post by Roberthh » Fri Sep 23, 2016 4:51 am

Wasn't the F2 support just removed from the stmhal source tree (build 1f69b16 stmhal: Remove STM32CubeF2 HAL files, they are unused/unsupported)?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: MicroPython on Amazon Dash?

Post by dhylands » Fri Sep 23, 2016 5:33 am

They're easy enough to add back, if a port actually uses them.

profra
Posts: 39
Joined: Sat Jan 03, 2015 12:23 am

Re: MicroPython on Amazon Dash?

Post by profra » Wed Sep 28, 2016 7:31 am

@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

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: MicroPython on Amazon Dash?

Post by deshipu » Wed Sep 28, 2016 11:42 am


profra
Posts: 39
Joined: Sat Jan 03, 2015 12:23 am

Re: MicroPython on Amazon Dash?

Post by profra » Wed Sep 28, 2016 2:33 pm

@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 7591 times

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: MicroPython on Amazon Dash?

Post by dhylands » Wed Sep 28, 2016 8:11 pm

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.

profra
Posts: 39
Joined: Sat Jan 03, 2015 12:23 am

Re: MicroPython on Amazon Dash?

Post by profra » Wed Sep 28, 2016 9:56 pm

@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

Post Reply