Keil Logo Arm Logo

MON166: STRANGE PROBLEMS USING INTERRUPTS


Information in this article applies to:

  • C166 Version 3.12
  • C166 Version 4.03

QUESTION

Help! We're using MON166 to debug our target program and we are experiencing strange program crashes. The program runs OK in the simulator but not with the monitor.

ANSWER

Make sure you reserve the traps that the monitor uses. If you don't reserve the memory space for these, your program will surely trounce on them and crash the monitor.

The traps used by MON166 are: NMI trap (for breakpoints) and one Serial trap. To reserve these memory areas, specify the following reserve command on the linker command line:

RESERVE ( 08h - 0Bh , 0ACh - 0AFh , 0B8h - 0BBh )

Last Reviewed: Thursday, May 20, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings