Download ST20 Embedded Toolset R1.9 User Manual
Transcript
5 Defining target hardware
5.4
Building code for the DCU3
Users must use the chip command before linking and running code on devices with
DCU3 diagnostic controllers. This ensures that the correct DCU type and base
address are used.
For example, to build a program myprog.c for a STi5514, the commands might look
like the following:
proc myboard {
chip STi5514
memory EXTERNAL 0x40000000 0x10000 RAM
stack EXTERNAL
heap EXTERNAL
}
st20cc -T mydemo.cfg -p myboard myprog.c
The set of command file procedures utilized to build and run on a DCU3 part is
different from the command file procedures for a DCU2 part. An existing application
built for a DCU2 part must therefore be linked again to run on a DCU3 part.
ADCS 7143840G
73