Posted 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]