Netduino home hardware projects downloads community

Jump to content

The Netduino forums have been replaced by new forums at This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.


Member Since 08 Aug 2011
Offline Last Active Jun 14 2016 06:54 PM

Posts I've Made

In Topic: ND3 cannot seem to create an interrupt handler

14 June 2016 - 06:56 PM

OK, finally found the issue.


Despite that intellisense wants me to populate "new InterruptPort(Cpu.Pin" it appears the Cpu.Pin types do not work the same as the Pins type.


So this works;

button = new InterruptPort(Pins.GPIO_PIN_D1, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeLow);

but this does not;

button = new InterruptPort(Cpu.Pin.GPIO_Pin1, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeLow);

In Topic: ND3 cannot seem to create an interrupt handler

14 June 2016 - 05:46 PM

OK, I found the issue with the exception.


This does not work;

new InterruptPort(Cpu.Pin.GPIO_Pin0, false, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeLevelHigh);

But this does;

new InterruptPort(Cpu.Pin.GPIO_Pin0, false, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeHigh);

Notice the different Port.InterruptMode. Not sure what the issue with the InterruptEdgeLevelHigh is.


But what I cannot understand is why now the Interrrupt seems to create ok but it still will not trigger. Despite the fact that if I manually read the button I can see the state change.

In Topic: "An unhandled exception of type 'System.Exception' occurred in Mi...

14 June 2016 - 03:25 PM

I have the exact same issue with the NetDuino3 Ethernet. Did we get anywhere with this?

In Topic: ND3 cannot seem to create an interrupt handler

14 June 2016 - 02:43 PM

Sorry Nevyn, replacing my code with exactly what you suggested still gives the same issue. Even tried a number of little tweaks and changes to your code and still the same result. 


It seems like so many of the libraries and methods for ND3 have changed so much that it is really hard to get back to a working project. And there are very few examples for all these new libraries.

In Topic: 2 projects, 1 works, 1 gives hardware error

13 June 2016 - 10:16 PM

They do.

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.