Page 1 of 1

NXP HCS12 Port

Posted: Wed Mar 31, 2021 9:00 pm
by Fmozingo
Just wanted to get a feel on if it would be possible to port Micropython to run on NXP MC9S12DG256 (HCS12 core) and if it is how difficult? I ask because I have a Dragon12 Light board that I used in school and thought it would be a cool project to work on.

Many Thanks!
Frank

Re: NXP HCS12 Port

Posted: Thu Apr 01, 2021 12:16 pm
by mattyt
It seems that chip has just 12KB of RAM; that'll be the biggest stumbling block. Technically it may be possible to get MicroPython running on that hardware - but it will take a lot of effort and require significant compromise (drop the compiler, REPL etc). The smaller micros that run MicroPython use 32KB RAM.

I really want to encourage you to go for it!, but my gut says it'll be too difficult and/or impractical.

(I would give you different hardware if you're really going to give a port a go!)

Re: NXP HCS12 Port

Posted: Thu Apr 01, 2021 1:25 pm
by Fmozingo
Thanks for the response! Being pretty green with hardware programming I will leave it for now then. I just saw this fancy dev board sitting here doing nothing and thought hey, maybe??

Image

Thanks again!
Frank