lpcware

How do you enable processor exception interrupts?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by amrbekhit on Tue Jan 04 09:10:49 MST 2011
Hello all,

As the question states, how do you enable exception interrupts? I'm trying to enable the bus fault, usage fault and memory management interrupts by using the following code:

NVIC_EnableIRQ(BusFault_IRQn);
NVIC_EnableIRQ(UsageFault_IRQn);
NVIC_EnableIRQ(MemoryManagement_IRQn);


but the processor raises a hard fault when trying to execute the first line, possibly because the IRQ numbers are negative. I'm using an LPC1752.

--Amr

Outcomes