NXP HCS12 Port

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
Fmozingo
Posts: 2
Joined: Tue Mar 30, 2021 12:21 pm

NXP HCS12 Port

Post by Fmozingo » Wed Mar 31, 2021 9:00 pm

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

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: NXP HCS12 Port

Post by mattyt » Thu Apr 01, 2021 12:16 pm

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!)

Fmozingo
Posts: 2
Joined: Tue Mar 30, 2021 12:21 pm

Re: NXP HCS12 Port

Post by Fmozingo » Thu Apr 01, 2021 1:25 pm

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

Post Reply