I'm trying to run the FNET code as found in AN4367 on my MK60FN1M0VMD120 processor. The code hangs and from what I can see it's because it's not servicing the interrupts properly. The code uses a single function called fnet_cpu_isr() for all interrupts which extracts a vector number and then calls a specific handler. The code to extract the interrupt vector is:
|fnet_uint8 vector_number = (*(volatile fnet_uint8*)(0xE000ED04));|
My problem is that I can find no documentation for any register at 0xE000ED04 or any way of extracting the vector number from the NVIC.
Can anyone explain how this is supposed to work?