How to relocate the vector table with osal-osless

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
neums
Posts: 137
Joined: Fri May 08, 2015 1:09 pm
Has thanked: 10 times
Been thanked: 5 times

How to relocate the vector table with osal-osless

Post by neums »

Hi,
i do not use the kernel just the hal with the os-less hal. How i can move the _vector table? If using the rt it is done in chcore_v7m.h with the inline function port_init(void) and the define CORTEX_VTOR_INIT isn't it?

Thanks
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: How to relocate the vector table with osal-osless

Post by Giovanni »

Hi,

You need to write the SCB->VTOR register before calling halInit().

Giovanni
Post Reply