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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,854 Views
Manolo
Contributor I
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?
Labels (1)
0 Kudos
3 Replies

281 Views
J2MEJediMaster
Specialist I
That does not seem like proper behavior. As a sanity check, are you sure you're using the correct HC08 derivative in the simulator? The derivative value should be displayed at the bottom the simulator window, as part of the window's scroll bar.

---Tom

0 Kudos

281 Views
Manolo
Contributor I
Yes, the Simulator is simulating the HC908EY16, as my Hardware is...
0 Kudos

281 Views
J2MEJediMaster
Specialist I
Might be a bug. Please file a service request on this problem.

---Tom

0 Kudos