|
|||||||||||
Technical Support Support Resources
Product Information |
MCB520: Program Crashes When Loaded Below 100HInformation in this article applies to:
SYMPTOMSHelp. 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? CAUSEThe 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. RESOLUTIONThere are 2 ways you can resolve this problem.
MORE INFORMATIONRefer 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: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.