AnsweredAssumed Answered

indexing into array placed at fixed address

Question asked by Ryan Lush on Jan 30, 2018
Latest reply on Jan 30, 2018 by Mark Butcher
I have a macro defined like so...
#define RAM_VECTOR_LOCATION 0x20007000

 

and then I would like to do something like this (i know this isn't right)

 

unsigned int vector_table[] = (unsigned int *)RAM_VECTOR_LOCATION;

 

vector_table[UART4_RX_TX_IRQn] = (unsigned int)UART4_IRQHandler;

 

Essentially I would like to index into my vector table to install new handlers but I don't know what the syntax is. This seems like a hazy question but I can't figure out how to articulate it.

Outcomes