|
|||||||||||
Technical Support Support Resources
Product Information |
MON390: Redirecting Interrupt VectorsInformation in this article applies to:
QUESTIONI'm using the Maxim (formerly Dallas Maxim) 390 in Contiguous Mode, and I have installed the Monitor-390 on my target hardware at address 0. Now, I need to configure my target program to work with the monitor. What must I do? ANSWERThe MON390 target monitor switches the MCU into the Contiguous Mode and, when installed starting at address 0000h, redirects all interrupts as specified by the INT_ADR_OFF definition in the INSTALL.A51 file. When you debug your target program using MON390, you must modify the startup code (START390.A51) for the target program, and you may need to set an interrupt vector offset. In the startup code, the initial LJMP instruction must be replaced with an AJMP instruction. For example:
Since the monitor switches the CPU into Contiguous Mode the AJMP instruction may be used to jump anywhere in the 64KB CODE memory space. Other modifications to the startup code depend on the redirection address. If the monitor redirects interrupts you must enter that starting address under Project - Options for Target - Target - Off-Chip Code memory. For example, if the monitor redirects interrupts to a different 64KB segment with an offset of 0000h (for example C:0x010000), you would enter
The µVision IDE converts this into an LX51 Linker CLASSES directive that contains a CODE memory class starting at C:0x10000. If the monitor redirects interrupts to a non-zero page offset (for example, C:0x008000 or C:0x018000), you must also change the ?C_CPURESET?0 segment in START390.A51 as follows:
MORE INFORMATION
SEE ALSO
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.