InterruptPort/Events slow the first time

Hi guys,
I’ve got some sensors that I’ve written drivers for which use InterruptPort to notify whenever something happens.

The problem is that the very first time the event triggers it takes one or two seconds to fire. All subsequent events are raised instantly.

I assume that this has to do with the way .NETMF runs code, so I’m not sure if there is any way around it. I’ve tried to manually call the eventhandlers after my board has booted, just to warm up all the bits, but the first time the event is raised it is still very slow.

Is anyone else seeing the same? Is there anything to do about it?

hi Scalpel78

can you show us an example that does this - forget your drivers for your modules and just use a button or other simple interrupt pin connection to demonstrate it.

My initial impression is that this is your code not netmf…