Project - G120HDR Gadgeteer Mainboard

@ MikeCormier
Excuse me to disturbe you.
I use the G120HDR mainboard with a WifiRS21 module and a USB DP module with success with MF4.2 but I want to migrate to MF4.3 and I have some problem.

Your G120HDR project is not compilated with the current MF 4.3 version.
On my computer, the DLL of the Microframework 4.3 are in version 4.3.1.0 and your G120HDR need version 4.3.0.0.
When I launch the debug I have the following error:

Found debugger!

Create TS.

Loading start at a0e68e2c, end a0e982c0

Assembly: mscorlib (4.3.1.0) Assembly: Microsoft.SPOT.Native (4.3.1.0) Assembly: Microsoft.SPOT.Security.PKCS11 (4.3
.1.0) Assembly: System.Security (4.3.1.0) Assembly: Microsoft.SPOT.Hardware (4.3.1.0)
Assembly: Microsoft.SPOT.Graphics (4.3.1.0) Assembly: Microsoft.SPOT.TinyCore (4.3.1.0)
Assembly: Microsoft.SPOT.IO (4.3.1.0) Assembly: System.IO (4.3.1.0) Assembly: Microsoft.SPOT.Hardware.Usb (4.3.1.0)
Assembly: Microsoft.SPOT.Hardware.SerialPort (4.3.1.0) Assembly: Microsoft.SPOT.Touch (4.3.1.0)
Assembly: Microsoft.SPOT.Ink (4.3.1.0) Assembly: Microsoft.SPOT.Hardware.PWM (4.3.1.0)
Loading Deployment Assemblies.

Attaching deployed file.

Assembly: Gadgeteer (2.43.1.0) Attaching deployed file.

Assembly: Gadgeteer.WebClient (2.43.1.0) Attaching deployed file.

Assembly: GHI.Hardware (4.3.6.0) Attaching deployed file.

Assembly: Gadgeteer.WebServer (2.43.1.0) Attaching deployed file.

Assembly: System.Http (4.3.1.0) Attaching deployed file.

Assembly: Gadgeteer.SPI (2.43.1.0) Attaching deployed file.

Assembly: System (4.3.1.0) Attaching deployed file.

Assembly: Microsoft.SPOT.Net (4.3.1.0) Attaching deployed file.

Assembly: GTM.GHIElectronics.USBClientDP (4.3.6.0) Attaching deployed file.

Assembly: Gadgeteer.DaisyLink (2.43.1.0) Attaching deployed file.

Assembly: GTM.GHIElectronics.WiFiRS21 (4.3.6.0) Attaching deployed file.

Assembly: System.Net.Security (4.3.1.0) Attaching deployed file.

Assembly: KapitenG120MF43 (1.0.0.0) Attaching deployed file.

Assembly: Microsoft.SPOT.Net.Security (4.3.1.0) Attaching deployed file.

Assembly: MCORMIER.Gadgeteer.G120HDR (1.0.0.0) Attaching deployed file.

Assembly: GHI.Networking (4.3.6.0) Resolving.

Link failure: some assembly references cannot be resolved!!

Assembly: KapitenG120MF43 (1.0.0.0) needs assembly ‘MCORMIER.Gadgeteer.G120HDR’ (1.0.0.0)

Assembly: MCORMIER.Gadgeteer.G120HDR (1.0.0.0) needs assembly ‘Microsoft.SPOT.Hardware’ (4.3.0.0)

Assembly: MCORMIER.Gadgeteer.G120HDR (1.0.0.0) needs assembly ‘Microsoft.SPOT.Graphics’ (4.3.0.0)

Assembly: MCORMIER.Gadgeteer.G120HDR (1.0.0.0) needs assembly ‘mscorlib’ (4.3.0.0)

Assembly: MCORMIER.Gadgeteer.G120HDR (1.0.0.0) needs assembly ‘Microsoft.SPOT.Native’ (4.3.0.0)

Error: a3000000

Waiting for debug commands


Le programme ‘[1] Micro Framework application: Managé’ s’est arrĂȘtĂ© avec le code 0 (0x0).


I have recompilated your program on my computer with success but there is a warning “Avertissement 2 Le projet ‘
\G120HDR_43\G120HDR_43.csproj’ ne peut pas ĂȘtre rĂ©fĂ©rencĂ©. Le projet rĂ©fĂ©rencĂ© cible une famille de framework diffĂ©rente (.NETMicroFramework) G120HDR”
Translated in english is like this: The projet “G120HDR_43.csproj” cannot be referenced because it target a different familly of framework.

I have uninstalled your G120HDR driver and installed mine driver.
Now I can launch the debug, I have not link error but this error message:

Une exception non gĂ©rĂ©e du type ‘Gadgeteer.Socket.PinMissingException’ s’est produite dans Gadgeteer.dll
Informations supplémentaires :
Pin 3 on socket 5 is not connected to a valid CPU pin.

Complete trace:
Found debugger!

Create TS.

Loading start at a0e68e2c, end a0e982c0

Assembly: mscorlib (4.3.1.0) Assembly: Microsoft.SPOT.Native (4.3.1.0) Assembly: Microsoft.SPOT.Security.PKCS11 (4.3
.1.0) Assembly: System.Security (4.3.1.0) Assembly: Microsoft.SPOT.Hardware (4.3.1.0)
Assembly: Microsoft.SPOT.Graphics (4.3.1.0) Assembly: Microsoft.SPOT.TinyCore (4.3.1.0)
Assembly: Microsoft.SPOT.IO (4.3.1.0) Assembly: System.IO (4.3.1.0) Assembly: Microsoft.SPOT.Hardware.Usb (4.3.1.0)
Assembly: Microsoft.SPOT.Hardware.SerialPort (4.3.1.0) Assembly: Microsoft.SPOT.Touch (4.3.1.0)
Assembly: Microsoft.SPOT.Ink (4.3.1.0) Assembly: Microsoft.SPOT.Hardware.PWM (4.3.1.0)
Loading Deployment Assemblies.

Attaching deployed file.

Assembly: Gadgeteer (2.43.1.0) Attaching deployed file.

Assembly: Gadgeteer.WebClient (2.43.1.0) Attaching deployed file.

Assembly: GHI.Hardware (4.3.6.0) Attaching deployed file.

Assembly: Gadgeteer.WebServer (2.43.1.0) Attaching deployed file.

Assembly: System.Http (4.3.1.0) Attaching deployed file.

Assembly: Gadgeteer.SPI (2.43.1.0) Attaching deployed file.

Assembly: System (4.3.1.0) Attaching deployed file.

Assembly: Microsoft.SPOT.Net (4.3.1.0) Attaching deployed file.

Assembly: GTM.GHIElectronics.USBClientDP (4.3.6.0) Attaching deployed file.

Assembly: Gadgeteer.DaisyLink (2.43.1.0) Attaching deployed file.

Assembly: GTM.GHIElectronics.WiFiRS21 (4.3.6.0) Attaching deployed file.

Assembly: System.Net.Security (4.3.1.0) Attaching deployed file.

Assembly: KapitenG120MF43 (1.0.0.0) Attaching deployed file.

Assembly: Microsoft.SPOT.Net.Security (4.3.1.0) Attaching deployed file.

Assembly: MCORMIER.Gadgeteer.G120HDR (1.0.0.0) Attaching deployed file.

Assembly: GHI.Networking (4.3.6.0) Resolving.

GC: 1msec 488376 bytes used, 6851292 bytes available

Type 0F (STRING ): 24 bytes

Type 15 (FREEBLOCK ): 6851292 bytes

Type 17 (ASSEMBLY ): 39396 bytes

Type 1E (BINARY_BLOB_HEAD ): 448884 bytes

Type 34 (APPDOMAIN_HEAD ): 72 bytes

GC: performing heap compaction


The debugging target runtime is loading the application assemblies and starting execution.
Ready.

‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\mscorlib.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Native.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Hardware.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Security.PKCS11.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\System.Security.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Graphics.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.TinyCore.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.IO.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\System.IO.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Hardware.Usb.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Hardware.SerialPort.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Touch.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Ink.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Hardware.PWM.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Net.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Gadgeteer\Core\Assemblies.NET Micro Framework 4.3\le\Gadgeteer.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\System.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\Microsoft.SPOT.Net.Security.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\System.Net.Security.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.3\Assemblies\le\System.Http.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Gadgeteer\Core\Assemblies.NET Micro Framework 4.3\le\Gadgeteer.WebClient.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\GHI Electronics\GHI NETMF v4.3 SDK\Libraries\le\GHI.Hardware.dll’ chargĂ©
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Gadgeteer\Core\Assemblies.NET Micro Framework 4.3\le\Gadgeteer.WebServer.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Gadgeteer\Core\Assemblies.NET Micro Framework 4.3\le\Gadgeteer.SPI.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\GHI Electronics\GHI .NET Gadgeteer SDK\Modules\USBClientDP\NETMF 4.3\le\GTM.GHIElectronics.USBClientDP.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\Microsoft .NET Gadgeteer\Core\Assemblies.NET Micro Framework 4.3\le\Gadgeteer.DaisyLink.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\GHI Electronics\GHI NETMF v4.3 SDK\Libraries\le\GHI.Networking.dll’ chargĂ©
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\GHI Electronics\GHI .NET Gadgeteer SDK\Modules\WiFiRS21\NETMF 4.3\le\GTM.GHIElectronics.WiFiRS21.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Program Files (x86)\GHI Electronics\Microsoft .NET Gadgeteer\Mainboards\G120HDR\NETMF 4.3\le\MCORMIER.Gadgeteer.G120HDR.dll’ chargĂ©, symboles chargĂ©s.
‘Microsoft.SPOT.Debugger.CorDebug.dll’ (ManagĂ©) : ‘C:\Users\OCBO5422\Documents\Visual Studio 2012\Projects\Microframework_4.3\KapitenG120\KapitenG120MF43\KapitenG120MF43\bin\Debug\le\KapitenG120MF43.exe’ chargĂ©, symboles chargĂ©s.
Le thread ‘’ (0x2) s’est arrĂȘtĂ© avec le code 0 (0x0).
Warning: socket 5 is not compliant with Gadgeteer : Cpu pin 3 must be specified for socket of type D
Warning: socket 5 is not compliant with Gadgeteer : Cpu pin 6 must be specified for socket of type D
Warning: socket 5 is not compliant with Gadgeteer : Cpu pin 7 must be specified for socket of type D
Using mainboard MCormier G120HDR version 1.0
#### Exception Gadgeteer.Socket+PinMissingException - 0x00000000 (1) ####
#### Message:
Pin 3 on socket 5 is not connected to a valid CPU pin.
#### Gadgeteer.Socket::ReservePin [IP: 0019] ####
#### Gadgeteer.Modules.GHIElectronics.USBClientDP::.ctor [IP: 0019] ####
#### KapitenG120MF43.Program::InitializeModules [IP: 000e] ####
Une exception de premiùre chance de type ‘Gadgeteer.Socket.PinMissingException’ s’est produite dans Gadgeteer.dll
Une exception non gĂ©rĂ©e du type ‘Gadgeteer.Socket.PinMissingException’ s’est produite dans Gadgeteer.dll
Informations supplémentaires :
Pin 3 on socket 5 is not connected to a valid CPU pin.
WARN: Total initialization time exceeds 10 seconds.
: ProgramStarted is blocking execution, which means events and timers will not run properly.
: Make sure not to use blocking code such as while(true) - use a GT.Timer instead.
Uncaught exception
Le thread ‘’ (0x1) s’est arrĂȘtĂ© avec le code 0 (0x0).

@ MikeCormier - All is OK.
I found my mistake. I did not remember that we should not connect the socket of the USB Client DP module graphically.
Without connecting the USB Client DP in the designer and recompiling G120HDR code for DLL 4.3.1.0 everything works fine.
Thank you.

glad it is working

Hi MikeCormier

I’m using SDK 4.3.6 and i’m getting Error: a3000000 with your code.
What is the minimum SDK version to run it? The older available 4.3 SDK is 2014 R2 (4.3.3)

Regards

@ geologic - You have the same error that I have explain above.
To solve the problem, you must get the last MikeCormier source code on CodeShare and compile it on your computer. For this you must have WIX 3.8 installed.
Then you uninstall previous G120HDR template and install the new compiled.
I have made this job and it is OK with last SDK 2014-R5 (4.3.6).

@ ChristianJack: not sure if i understand the whole process
 Can you just send me the compiled G120HDR template? :smiley:

Regards

@ geologic. I don’t know how to send you the installer.
But you can do it yourself, I have made this and it is very easy.

You download the source on Codeshare (get the version 5).
You must have the WIX software installed on your computer to compile the downloaded solution and obtain an installer (file msi).
If you don’t have this software you can download it here https://wix.codeplex.com/releases/view/136891 . Close your VS2012 and install the software.

After this open the C# solution in your VS2012 and compile it.
You obtain a new installer G120HDR.msi.
You must uninstall previous G120HDR template and install the new.

1 Like

I tried wix, i created the msi installer, installed it (i can see it on the windows control panel) but when create a new project the G120HDR board doesn’t show with the other boards.

I’ve sent you a message with my email, hope you can send me your msi.