Changing the user defined interrupt handler / NVIC002

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Lukas
Employee
Employee
Hi,

is it possible to change the user defined interrupt handler in the main.c file? I want to change the interrupt function within the running program.
It would be really nice, if anybody could help me.

Thanks,
Lukas
0 Likes
1 Reply
AndreasG
Employee
Employee
10 replies posted 5 replies posted Welcome!
A way to switch between different handler routines for the same interrupt node during runtime is by using multiple (Interrupt) Vector Tables. Then your software can switch between the different vector tables with the Vector Table Offset Register (VTOR) in the CPU.
This should give you a hint what to look for, a software expert would have to pick up from here for further details on how to actually do this in DAVE...
0 Likes