Change interrupt vector table address

249 views
Skip to first unread message

Ananda R

unread,
Jun 7, 2017, 1:13:28 AM6/7/17
to inside...@googlegroups.com
Hi all, 
 I am using arm cortex-M0 32 bit  processor with gcc compiler and as per i know  IVT is produced by the compiler. 

Need help on below questions. 
1. Is it possible to change the address of interrupt address table. If yes how to do this.
2. In case if my interrupt service routine exceeds the size defined, how to handle this?

Regards, 
Anand 
9663046128 

Mogasati Gopikrishna

unread,
Jun 7, 2017, 1:59:33 AM6/7/17
to inside...@googlegroups.com
Hi . .afaik , interrupt vector table is a predefined location the processor jumps to.

If ur handler needs more memory, use a jump instruction .

@Gopikrishna

--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Litan Parida

unread,
Jun 7, 2017, 2:49:50 AM6/7/17
to inside...@googlegroups.com
Dear Anand,
                  Please check Vector Table Offset Register(VTOR). From datasheet make sure it has this facility or not.

 For Cortex M0 has a memory remap feature on its memory system and it is not a part of the processor to allow Vector Table Access to be Optionally redirected to the SRAM.

In the case of Cortex M3/4, there is a Vector Table Offset Register to Relocate the Vector Table to CODE or SRAM memory.

For most ARM cores (ex: ARM9, ARM10)  including 8051, the vector table can be located at either address 0x0000 or 0xFFFF0000.Which is used is controlled by a Reset Signal and then by CP15 Control Register after RESET.
POINT TO BE NOTED: This is Virtual address 0x0000 or 0xFFFF0000  

Cores that Support Trust Zone(ex: Cortex A-Series)  can override the vector table location, and use any ADDRESS and controlled by CP15 Control Register, So for Reset itself, we are still limited to the 2 locations.


Try Vector Table Remapping from the below link,

Thanks & Regards,
Litan Parida,
Cell: 91-9035368088.
Reply all
Reply to author
Forward
0 new messages