Python and JAL

21 views
Skip to first unread message

zet....@gmail.com

unread,
Nov 16, 2021, 5:48:15 PM11/16/21
to jallib
Hi
Does someone knows how to change a Python program into .hex so Pickit3 can use it ?
Thanks.
Zet Weeh

Oliver Seitz

unread,
Nov 17, 2021, 1:40:36 AM11/17/21
to jal...@googlegroups.com
Hi Zet!

Python is cross-platform, it runs on Windows, Mac-OS, Linux, Android and on lesser known operating systems. None of them runs on PIC controllers. 

.hex is as much hardware dependent as it gets. A hex file created for PIC16F877 *might* run on PIC16F877A, but there's also a chance that a certain .hex-file doesn't run on certain revisions of the very same chip.

So, the true answer to your question is: To make a python program run on a microcontroller, you have to re-write it for the specific controller you want to use in a suitable language.

Unless there's a microcontroller-targeted python dialect I'm not aware of. But, usually python is an interpreted language, which is very uncommon on microcontrollers for various reasons.

Greets,
Kiste

Am Dienstag, 16. November 2021, 23:54:28 MEZ hat zet....@gmail.com <zet....@gmail.com> Folgendes geschrieben:


--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/b990c2b5-0ba5-4434-9782-1b9802021273n%40googlegroups.com.

Emil Johnsen

unread,
Nov 17, 2021, 2:57:02 AM11/17/21
to jal...@googlegroups.com

MicroPython runs on STM32, ESP8266, ESP32 microcontrollers and some others. No interpreter for PIC or any 8-bit targets that I'm aware of..

zet....@gmail.com

unread,
Nov 17, 2021, 5:49:44 PM11/17/21
to jallib
Hi
I see a lot of beautiful programs for the Raspberry and in the beginning I thought: make a hex with a converter. But when I compared the  hex file with the hex of JAL I saw that this does not work.
Of course I had searched on Internet some hours for another solution. I was already afraid I got the answers above.
I'm already started learning Python so I can re-write it for JAL like Kiste wrote.
Thanks Zet
Op woensdag 17 november 2021 om 08:57:02 UTC+1 schreef Emil Johnsen:
Reply all
Reply to author
Forward
0 new messages