Hi There,
How could I load a ISR routine to a specific address to enable interrupt? I am using Am3703. From the spec, It seems I need to write an small ARM assembly code into a fixed address (IRQ/FIQ entry PC, 0x00000018 for IRQ). How could I load this compiled ARM assembly to that particular address in Code Composer? Is this the right way to implement hardware interrupt? Thanks for your attention.
Frank
Presume your ISR assembly source code is in a file named isr.asm, and the section is named .text. Then this line, in the SECTIONS directive of the link command file, will do it:
for_irq { isr.obj(.text) } > 0x18
That line says create an output section named for_irq, it is made up of one input section, which is .text from isr.obj, and place for_irq at the address 0x18.
I don't know whether this is typical of how other ARM users configure interrupts.
Thanks and regards,
-George
TI C/C++ Compiler Forum ModeratorPlease click Verify Answer on the best reply to your question.The Compiler Wiki answers most common questions.Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.
Thanks. This is very helpful.