View unanswered posts | View active topics It is currently Wed Sep 20, 2017 1:30 am

Reply to topic  [ 2 posts ] 
Author Message
TO92 - Vaguely active

Joined: Wed May 25, 2016 3:03 am
Posts: 1
Hello! fred!
I wonna consult you about the HCS12MEM command.
I wonna program serial monitor and bootloader to the S12 Chip.
So I build a Tubro BDM Light (TBDML) module.
But the help documentation only for PODEX's LRAE and serial monitor command.
This is the help documentation:


There are some common options that must be specified in most cases: interface type, interface port, target type, target oscillator frequency (if interface requires it and cannot auto-detect). Almost every call requires these, so for clarity they will be stated only once as an example, and omitted in the following examples, substituted by [-ipto] symbol.

Depending on the interface in use, different options are required:
TBDML - interface type and target type are required, no port specification is required (USB bus is assumed), no target frequency is required (TBDML can auto-detect it), but it can be overriden with -o option, if auto-detection fails and TBDML is unable to connect the target.
BDM12, PODEX - required are: interface type, target type, interface connection port and target frequency.
Two examples of these options for TBDML and PODEX follows: first example - interface is PODEX, serial port for PODEX attachment is /dev/uart0, target is MC9S12A64 MCU operating at 16MHz; second example - interface is TBDML (assumed connection via USB), target is MC9S12A64 MCU, operating frequency is auto-detected. hcs12mem call usually requires some more action commands to do something specific, but such call with these options only is convenient for verifying target communication - it initializes the target, displays all the info and quits:

hcs12mem -i podex -p /dev/uart0 -t mc9s12a64 -o 16MHz
hcs12mem -i tbdml -t mc9s12a64

Using LRAE serial bootloader, we specify following common options:
hcs12mem -i lrae -p /dev/uart0 -t mc9s12a64 -o 16MHz

Using serial monitor, we specify following common options (oscillator frequency is not required):
hcs12mem -i sm -p /dev/uart0 -t mc9s12a64

I could connect to the S12 chip whith the TBDML,like this:
hcs12mem -i tbdml -t mc9s12t64

But what command for TBDML? And what port(-p)to use?
hcs12mem -i lrae -p ??? -t mc9s12t64 -o 8MHz

By the way ,I had build the part or driver module PCB for XDP512

VR_LM1815_Bottom.jpg [ 484.02 KiB | Viewed 768 times ]
VR_LM1815.jpg [ 425.54 KiB | Viewed 768 times ]
Dual_Bottom.jpg [ 660.6 KiB | Viewed 768 times ]
Dual_Top.jpg [ 568.63 KiB | Viewed 768 times ]
IMG_0041.JPG [ 2.37 MiB | Viewed 768 times ]
Wed Jul 20, 2016 6:46 pm
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14771
Location: Home sweet home!
I've not used HCS12MEM in years as the SM had a mass erase bug. All more recent loaders do things differently. I can't help you, I'm afraid.

Also, that looks like a pirate M$2 box. It has your email on it, though, so if they really want, they can track you down :-p

_________________ - where Open Source means Open Source, and Free means Freedom - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!

Thu Jul 21, 2016 1:15 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF. ColorizeIt.