EmbeddedRelated.com
Forums

hcs12mem 1.4.1

Started by Michal Konieczny December 12, 2007
hcs12mem 1.4.1 is available.

http://cml.mfk.net.pl/hcs12mem/

Previously known as hc12mem, now renamed to hcs12mem, due to some
confusion which MCU family it supports: hc12mem name suggested that's
HC12 family, but in reality it currently works only with S12 chips.

hcs12mem is a tool for S12 MCUs, allowing for reading/writing internal
memories (FLASH/EEPROM), protecting/unprotecting the chip, downloading
code via LRAE.
IT supports several target connections:
- PODEX (BDM)
- TBDML (BDM)
- BDM12 (BDM)
- LRAE (bootloader)
- AN2548 serial monitor.

hcs12mem is free and open source, released under GPL license.

What's new:
- name change
- allowing mixed addresses (banked and non-banked) in banked S-record files
- improved detection of chip security states
- buffer overflow fix in TBDML support code, the bug caused stack mashups
- few other fixes and improvements

--
Michal Konieczny
m...@cml.mfk.net.pl
--- In 6..., Michal Konieczny <0xmk@...> wrote:
>
> hcs12mem 1.4.1 is available.
>
> http://cml.mfk.net.pl/hcs12mem/
>

This is an awesome open source project for the hcs12!

A quick question: many students use a development board containing a
DP256 chip with a bootloader and the d-bug12 monitor. Is this the
AN2546 bootloader, or ??? Will hcs12mem work with that one?

Students need an easy way to program flash on these boards. Of course,
that will overwrite d-bug12 but they should be able to reload that if
they need to.

Eric
> This is an awesome open source project for the hcs12!
>
> A quick question: many students use a development board containing a
> DP256 chip with a bootloader and the d-bug12 monitor. Is this the
> AN2546 bootloader, or ??? Will hcs12mem work with that one?

I don't really know what bootloader these boards use. If it's AN2546,
then it's supported, if some other - then it's probably easy to add
support for it. I don't have any experience with d-bug12, never used it.
Being the monitor, does it coexist with yet another bootloader ? I
thought the monitor is standalone, allowing for code download and
execution, thus acting as bootloader, amongst other functions. But
haven't seen one :)

Best regagds,

--
Michal Konieczny
m...@cml.mfk.net.pl
--- In 6..., Michal Konieczny <0xmk@...> wrote:

> Being the monitor, does it coexist with yet another bootloader ? I
> thought the monitor is standalone, allowing for code download and
> execution, thus acting as bootloader, amongst other functions. But
> haven't seen one :)

In one of the releases they broke it out into a bootloader and a
monitor. D-bug12 is only a RAM monitor, but it can program the flash
of another board in pod mode. But it can't program it's own flash.

The bootloader that now comes with d-bug12 is able to program it's own
flash.

Most of the time you have to overlay d-bug12 if you want to burn a
program into flash using the bootloader, but some homegrown vector
handling routines may allow d-bug12 to stay resident. It's a long
story but I worked it out on paper some time ago.

But most people won't mind clobbering d-bug12 as long as it can be
re-burned later.

These boards are very common in colleges.

Eric