Netduino home hardware projects downloads community

Jump to content


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

MartinK

Member Since 07 Aug 2012
Offline Last Active Jun 06 2013 04:24 PM
-----

Topics I've Started

Netduino Plus 2 problems (InterruptPort & I2C)

20 December 2012 - 02:55 PM

Hi, I am using the Netduino Plus in my application before and I just tried switching to the Netduino Plus 2. I have encountered two problems so far: 1) When I try to create instances of the InterruptPorts, the debug session crashes and I have to reflash the netduino to redeploy the binaries. The code that crashs the board is one of the following lines: new InterruptPort(Pins.GPIO_PIN_D4, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth) new InterruptPort(Pins.GPIO_PIN_D5, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth) new InterruptPort(Pins.GPIO_PIN_D6, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth) new InterruptPort(Pins.GPIO_PIN_D7, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth) new InterruptPort(Pins.GPIO_PIN_D8, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth) new InterruptPort(Pins.GPIO_PIN_D9, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth) new InterruptPort(Pins.GPIO_PIN_D10, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth) new InterruptPort(Pins.GPIO_PIN_D11, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth) I will try narrowing it down as soon as I have the time. Did something change with the ports that I should be aware of? 2) I am writing data to an EEPROM using i2c. After writing some data, I read the data again for verification purposes. On the netduino plus 2 the read data does not match the written data when the code is running. When I set a breakpoint between the writing and the reading, the data verification succeeds, which leads me to believe that some arbitrary delay between the writing and reading operation is needed now. Do you have any pointers on the reliability of the i2c communication? fyi: both problems do not exist on the Netduino Plus 1. Thank you, Martin [Edit: grammar]

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.