HC12 Tutorials
This tutorial shows an example of compiling a C program with ImageCraft
C and debugging it, first using a 68HC12 simulator, and then using a ComPOD BDM pod
and an MC9S12DP256.
If you are using a different BDM pod, or a different compiler, or a different
target processor, please bear with us and follow along. Most of the concepts
and many of the details are the same, and we will point out some of the places
where there are variations.
If we missed something, or if we have written something unclearly, please
let us know.
The tutorial is designed so that you can just view the web pages, or you can
follow along with your own copy of NoICE.
Our tutorial has several sections
- Running NoICE for the first time. Here we
will configure NoICE after installation to use the 68HC12 simulator.
Then we will demonstrate some of the available features at the assembly level.
If you don't know 68HC12 assembly lanaguage, don't worry - we will guide you through.
- Connecting to hardware for the first time.
Here we show the steps to connecting and using the ComPOD BDM pod. You can follow
this whether or not you have a ComPOD.
If you use another type of BDM pod, or aren't going to be using the 68HC12 at all,
there will be links to show you the equivalent setup for your target.
- Compiling a program for debugging.
Here we will compile a program only slightly more sophisticated than "Hello World".
Yes, it will have variables called "foo" and "bar".
We will use the ImageCraft C compiler and show you how to configure the build
to generate the debug file. If you use another compiler, we will have links to
show you how to configure them.
- Source-level debugging.
Here we will use the NoICE to debug the C program from the previous stop.
If you have target hardware and a ComPOD, you can repeat this section on
real hardware.
|