EmbeddedRelated.com
Forums

Help with PK-HCS12C32 Starter Kit

Started by johnatjands November 11, 2006
I'm having trouble getting the Softec
PK-HCS12C32 Starter Kit to accept a test program written in
assembly.

To avoid introducing errors, I decided to try a minimal program,
making no changes to the "stationery" code.

I opened a new project in CodeWarrior and used the wizard to
create an assembly project. Selected absolute
(non-relocatable). Selected 9S12C32 and PK-HCS12 target.

The main.asm file has enough "stationery" code that it should
execute as is, so I compiled it.

Click debug in simultor mode, and the simulator runs it.

Change to Softec target mode, then connect the kit to the pc.
Click debug, True-Time simulator says communication error.

Tried uninstall/reinstall of Softec USB driver to no avail. PC's
Device Manager shows the driver is working properly, and
recognizes when you pull the plug, then reconnect.

Still no communication with stationery code.

Close True-time, open CodeWarrior, open Softec example
ADC.mcp. This is a short C program that reads a pot, then
outputs that value to LEDs connected to PTB.

Compile, click debug, Softec example loads and executes on
starter kit. No communication errors.

Is there a file that I need to add or create?

I'm porting 1600 bytes of HC11 assembly code. Continuing to
port, but not emulate.

Thanks for any help.
Found the problem. Compared the Debugger files named
SofTec.ini

They were different, so I replaced the nonworking one with the
working example.

I posted a detailed explanation on the Softec forum:

http://www.softecmicro.com/forum/showthread.php?s=&postid1471#post1471