Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Porting Python to an embedded system

Tags:

I am working with an ARM Cortex M3 on which I need to port Python (without operating system). What would be my best approach? I just need the core Python and basic I/O.

like image 738
Randomblue Avatar asked Mar 01 '12 15:03

Randomblue


People also ask

Can I use Python for embedded systems?

Python can also be used to receive embedded system data that can be stored for analysis. Programmers can then use Python to develop parameters and other methods of analyzing that data.

What is embeddable Python?

It can be used to build Python packages or run scripts, but is not updateable and has no user interface tools. The embeddable package is a minimal package of Python suitable for embedding into a larger application.


2 Answers

Golly, that's kind of a tall order. There are so many services of a kernel that Python depends upon, and that you'd have to provide yourself. I'd think you'd be far better off looking for a lightweight OS -- maybe Minix 3? -- to put on your embedded processor.

Failing that, I'd be horribly tempted to think about hand-translating to C and building the essentials on that.

like image 126
Charlie Martin Avatar answered Sep 18 '22 05:09

Charlie Martin


You should definitely look at eLua:

http://www.eluaproject.net

"Embedded power, driven by Lua Quickly prototype and develop embedded software applications with the power of Lua and run them on a wide range of microcontroller architectures"

like image 25
fsantanna Avatar answered Sep 19 '22 05:09

fsantanna