Matthias Jacob

Interrupts in Full-Chip-Simulator have an offset to the ones on the real silicon

Discussion created by Matthias Jacob on Oct 28, 2008
Latest reply on Oct 29, 2008 by Tom Thompson
Hello,
 
I am using CW6.2 with a HC908EY16.
 
It took me VERY long to figure out that my interrupt pointers either work on the Full-Chip-Simulator or on the real silicon. The Problem seems to be that the Full-Chip-Simulator does not allocate space for the SWI interrupt vector.
 
Thus, I have to use two different interrupt vector tables in my prm file:

// For Full-Chip Simulator
VECTOR 0 _Startup // Reset vector: this is the default entry point for an application.
// VECTOR -       // SWI vector   <--- This Vector has to be kept as comment!!!
// VECTOR 1    // IRQ vector
// VECTOR 2    // CMIREQ
VECTOR 3 KWTrigger  // TIMA0
// VECTOR 4    // TIMA1
VECTOR 5 KWUeberlauf   // TIMA overflow
// VECTOR 6      // TIMB0 compare
// VECTOR 7    // TIMB1
VECTOR 8 IgniteNow  // TIMB overflow
// VECTOR 9    // ESCI error
VECTOR 10 RXInterrupt   // ESCI receive
VECTOR 11 TXInterrupt   // ESCI transmit
// VECTOR 12   // KBD
// VECTOR 13   // ADC complete
// VECTOR 14   // SPI receive
// VECTOR 15   // SPI transmit
// VECTOR 16   // Time base

// Für HC08
VECTOR 0 _Startup // Reset vector: this is the default entry point for an application.
// VECTOR 1       // SWI vector
// VECTOR 2    // IRQ vector
// VECTOR 3    // CMIREQ
VECTOR 4 KWTrigger  // TIMA0
// VECTOR 5    // TIMA1
VECTOR 6 KWUeberlauf   // TIMA overflow
// VECTOR 7      // TIMB0 compare
// VECTOR 8    // TIMB1
VECTOR 9 IgniteNow  // TIMB overflow
// VECTOR 10    // ESCI error
VECTOR 11 RXInterrupt   // ESCI receive
VECTOR 12 TXInterrupt   // ESCI transmit
// VECTOR 13   // KBD
// VECTOR 14   // ADC complete
// VECTOR 15   // SPI receive
// VECTOR 16   // SPI transmit
// VECTOR 17   // Time base
 
For the FCS, I have to comment out the lower block and for the HC08, I have to comment out the upper block.
 
I suppose this is a bug, isn't it?

Outcomes