Can someone help with this please.
I have a Panda 2 running 4.1. I’m using VS2015 with GHI’s ver4.1 installed.
I reference GHIElectronics.NETMF.Hardware and FEZPanda_II_GHIElectronics.NETMF.FEZ.
The input and output ports work fine, but when I introduce the Analogue port the software builds, but crashes when deployed to the Panda 2.
using GHIElectronics.NETMF.FEZ;
using GHIElectronics.NETMF.Hardware;
static OutputPort MyLED = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.Di13, true);
static InputPort MySwitch = new InputPort((Cpu.Pin)FEZ_Pin.Digital.Di12, false, Port.ResistorMode.PullUp);
static AnalogIn MyVolt = new AnalogIn((AnalogIn.Pin.Ain0));
Debug.Print("Voltage = " + MyVolt.Read().ToString());
The debug error message is below.
Attaching deployed file.
Assembly: GHIElectronics.NETMF.System (4.1.8.0) (488 RAM - 2496 ROM - 1465 METADATA)
AssemblyRef = 12 bytes ( 3 elements)
TypeRef = 48 bytes ( 12 elements)
FieldRef = 0 bytes ( 0 elements)
MethodRef = 56 bytes ( 14 elements)
TypeDef = 80 bytes ( 10 elements)
FieldDef = 28 bytes ( 14 elements)
MethodDef = 84 bytes ( 41 elements)
Attributes = 0 bytes ( 0 elements)
TypeSpec = 0 bytes ( 0 elements)
Resources = 0 bytes ( 0 elements)
Resources Files = 0 bytes ( 0 elements)
Resources Data = 0 bytes
Strings = 549 bytes
Signatures = 213 bytes
ByteCode = 349 bytes
Invalid native checksum: GHIElectronics.NETMF.System 0xC032A004!=0x74F83809
Thanks