For our project we use the XE167FH controller. I notice that the ILLOPA trap is triggered when the MCU is rather busy.

The information from the datasheet is quite limited regarding this issue:

Illegal Word Operand Access Trap (B): Whenever a word operand read or write
access (including Flash commands!) is attempted to an odd byte address, the
ILLOPA flag in register TFR is set and the CPU enters the illegal word operand
access trap routine.

What may trigger this trap and shouldn't the compiler generate clean code in order this not to happen? And how do I exit the trap function in a decent way, so that my program can continue? Because right now, it just seems to get stuck, even if I have my own defined trap routine.

Thanks in advance,
Daan