home » HC12/HCS12 resources » AN2548 serial monitor

Freescale AN2548 serial monitor for HCS12 MCU - port for GNU tools

Description

This is source code for HCS12 MCUs serial monitor, see Freescale's Application Note AN2548 for description.

In original form, accompanying software from AN2548 from Freescale comes as whole project for Metrowerks CodeWarrior environment. No S-record files are available for different MCUs, only source code ready to compile using CodeWarrior.

This following code was taken straight from this application note accompanying software set and translated into GNU assembler compatible source code, to enable compilation for different target MCUs with different configurations (oscillator frequency, load/run switch connection) using GNU toolchain for HCS12 MCUs.

There's also small bug fix applied: in procedure EraseEECmd there was mistakenly FSTAT register used instead of ESTAT.

Download

an2548-gnu.tar.gz - complete source code (Makefile included) ready to be compiled with GNU tools (strictly speaking gcc is not required, just binutils alone will suffice).

GNU toolchain for HCS12 MCUs is available here: http://www.gnu-m68hc11.org.