I'm trying to open a serial port and I'm getting an exception. I'm using a Netduino 2 with 4.3 firmware and Visual Studio Professional 2012. I'm using a FTDI cable that I picked up from Amazon:
http://amzn.to/1fm5aib
It shows up as COM port 5. I double checked to make sure that I wired the cable to the Netduino correctly:
FTDI cable (pin 1, GND) -> Netduino GND
FTDI cable (pin 4, TXD) -> Netduino pin 0
FTDI cable (pin 5, RXD) -> Netduino pin 1
I'm able to open COM port 5 successfully with HTerm 0.8.1 beta.
When I try to load the code on to the Netduino, I get the following error in a dialog box:
An unhandled exception of type 'System.ArgumentException' occurred in Microsoft.SPOT.Hardware.dll
The code is based on the Serial Communcation via USB Step by Step post that I found on this forum.
http://bit.ly/1cwJq1W
I've cut out the code that doesn't contribute to the problem. I'm not sure what I'm doing wrong...
Does anyone have any ideas?