diff --git a/lib/vf6xx/vector_chipset.c b/lib/vf6xx/vector_chipset.c index c5e395c1..3a4f4070 100644 --- a/lib/vf6xx/vector_chipset.c +++ b/lib/vf6xx/vector_chipset.c @@ -19,6 +19,8 @@ #include +extern vector_table_t vector_table; + static inline void pre_main(void) { /* @@ -28,4 +30,7 @@ static inline void pre_main(void) asm ( \ "ldr sp,=_stack;" \ ); + + /* Set Vector Table Offset to our memory based vector table */ + SCB_VTOR = (uint32_t)&vector_table; }