ARM Technical Support Knowledge Articles

RELOCATING RESET AND INTERRUPT VECTORS

Applies to: A51 Macro Assembler

Answer


Information in this article applies to:


QUESTION

I'm using the evaluation version of the uVision2 IDE and I'm creating an assembly program. When I create my program, I can't execute the reset vector or any interrupt vectors. I'm creating the reset vector and interrupt vectors as relocatable segments.

reset   segment code
        rseg    reset
        jmp     main

inter   segment code
        rseg    inter
        jmp     ex0_isr

junk    segment code
        rseg    junk
main:
        nop
        jmp     main

ex0_isr:
        nop
        jmp     ex0_isr

end

How can I create the reset vector and interrupt vectors in the evaluation software?

ANSWER

You must use the CSEG directive to create the reset and interrupt vectors. Then use RSEG to create your code segments. For example:

cseg at 0
        jmp     main

cseg at 3
        jmp     ex0_isr

junk    segment code
        rseg    junk

main:
        nop
        jmp     main

ex0_isr:
        nop
        jmp     ex0_isr

end

SEE ALSO

Article last edited on: 2006-08-21 13:28:40

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential