This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32 Relocating Vector

hi

i need to relocate vector after i start my application at 0x08003000. how i can do that? i'm very new with this relocating. i'm using stm32f103rbt6.
at another thread i saw

void NVIC_SetVectorTable(unsigned long NVIC_VectTab, unsigned long Offset)
        {

        SCB->VTOR = NVIC_VectTab | (Offset & (unsigned int)0x1FFFFF80);
        }


but i dont know where to put it.

thank in advance.

0