G400 COM2 Microsoft.SPOT.Hardware.Port::ReservePin [IP: 0000]


I got a problem, if I use COM2 G400 throw:

Exception System.InvalidOperationException - CLR_E_INVALID_OPERATION (12)


Microsoft.SPOT.Hardware.Port::ReservePin [IP: 0000]

System.IO.Ports.SerialPort::HandlePinReservations [IP: 003a]

System.IO.Ports.SerialPort::Open [IP: 001d]


I dont think Im using PA0 PA1 PA2 and PA3 pins in another part of code… so do you have some tips? :slight_smile:


I got it! in another place I was using PA0 for RS485 read write management :frowning: sorry

Start a new project and test those pins only.

It works great, I was only sending a dummy RS485 read-write pin as PA0 a pin of COM2 on the G400… :slight_smile: