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

Hi

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

Exception System.InvalidOperationException - CLR_E_INVALID_OPERATION (12)

Message:

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

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

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

MikeLab.AntServer.Ant_Drivers.GOT_Driver.Interfaces.GOTSerialInterface::PrepareReadAsMaster

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

EDIT:

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: