Question: Problem 1 ( 6 marks ) : The interrupt vector table can be relocated. Write an assembly language function conforming to the ARM Architecture Procedure
Problem marks: The interrupt vector table can be relocated. Write an
assembly language function conforming to the ARM Architecture Procedure Call
Standard AAPCS named "NVICVTableRelocate" that relocates the NVIC Vector
Table within SRAM. One bit address must be accepted as a function argument
containing an SRAM address. The function will return true if the table
relocation was successful, or false indicating the table could not be
relocated.
The function must be complete the only requirement of a programmer to
call this function is the function argument. You must ensure that the SRAM
address conforms to the requirements of the NVIC verify alignmentboundary
of the argument before relocating the table and does not overlap the stack.
You may assume the stack occupies the range xxFFF and you
will require bit locations for your vector table.
Please read section in your TMCGHPM datasheet to help write your
function.
All original vector addresses must be transfered from the existing table
in Flash memory currently at offset to the new SRAM location before
updating the vector table offset in the NVIC.
Note that not all of the bit locations in the SRAM block will be used.
What advantage is there in relocating an interrupt vector table from Flash
memory to SRAM?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
