MCB520: PROGRAM CRASHES WHEN LOADED BELOW 100H
Information in this article applies to:
Help. I have a very small program that I download and run on the MCB520 board. The opcodes at address 3Bh, 3Ch, and 3Dh (or at 23h, 24h, and 25h) get corrupted and my program crashes. If I relocate my program to start at 100h, everything works fine. What's wrong with this configuration?
The monitor on the MCB520 board uses SIO1 on the 520 to communicate with the PC. It also uses the interrupt vector (interrupt 7 at address 3Bh) to halt program execution when you stop program execution in the debugger. The monitor overwrites this interrupt vector and that is what causes your program corruption.
If you change the monitor to use SIO0, interrupt vector 4 will be used instead of interrupt 7.
There are 2 ways you can resolve this problem.
Refer to the Example Programs section in the MCB520 Evaluation Board User's Manual for more information.
For more information about the MCB520 evaluation board, refer to the following URL: http://www.keil.com/mcb520
Last Reviewed: Saturday, July 9, 2005
of your data.