Did the CodeWarrior/HCS12 Demo ever work? I don’t see how possible.
I have been using experimental ports for GCC/HCS12 for my own stuff, and now I’m getting serious about finishing the full Demo “HCS12_GCC_banked”. It is derived from the official “HCS12_CodeWarrior_banked”.
It was hard getting started with a normal debuger, but I’ve finally found the first problem why my demo is crashing when I vAltStartComTestTasks. In “Demo/Common/comtest.c” the demos use this global:
static xComPortHandle xPort = NULL;
The problem seems to be that xSerialPortInitMinimal() returns NULL, and even if it did return the xComPortHandle as was probably intended, the global xPort is never initialized! Somebody please let me know if you have got this demo to work in CodeWarrior.
I don’t have a CW setup, but I am going to try to resolve the bug to get my GCC/HCS12 demo working. I’ll drop a line when it works.
gcc version 3.0.4 m68hc1x-20030430 (that is m68hc1x patch release 3.0.1)