MicroPython on Pebble

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
The Compiler
Posts: 1
Joined: Tue Mar 10, 2015 11:16 am

MicroPython on Pebble

Post by The Compiler » Tue Mar 10, 2015 11:24 am

Hi!

I'm currently looking into the possibility of porting MicroPython to the Pebble Time smartwatch so people could write Pebble apps in Python.

Ideally of course MicroPython would run on top of the existing OS (a customized FreeRTOS) there. But currently Pebble enforces a maximal code+heap limit of 64k (plus 256k ressources). This seems to be too little for MicroPython, right? :(

If I compile the bare-arm port with the default -Os, I get a binary with around 74kB text. So is the idea of getting MicroPython in under 64k completely crazy and unreasonable?

Florian

Damien
Site Admin
Posts: 614
Joined: Mon Dec 09, 2013 5:02 pm

Re: MicroPython on Pebble

Post by Damien » Tue Mar 10, 2015 11:48 pm

64k for both code and data/heap is not possible, not unless you really want to start stripping out large chunks of the Python standard types/methods (eg cut back string methods, dict methods, no generators).

You could get just the code within 64k ROM without too much trouble.

Post Reply