it is not a good idea to use the vector space for normal code.
the RETI protect you so that unwanted interrupts are still handled correctly without causing problems.
i have always understood (since 8051) that his was the best way to deal with interrupts.
for xmega it is indeed a waste of space. especial with the new $bootvector that will use IVSEL to put the IVR in boot area.
so maybe i need to have a new look at it as things might have changed. it is relatively simple to change. i am just not sure if this will result in a safe program. on the other hand when normal code is called unexpectedly, i guess the user will have a clue.
i will do a small test and when it works i will add a special directive so it is an option.
↧