I just got my FEZ Hydra and hooked up a TE35 LCD and a MulticolorLED. I did all the getting started stuff first and have .NET Micro 4.2 QFE 2 and latest firmware on the Hydra.
I then wrote my first simple program. All it does is randomly select values for RGB values every time you touch the screen and change the MulticolorLED to that color as well as print out the RGB values to the screen and debugger.
Anyways, it was running fine and then I went to bed (left it running), in the morning the screen is black with just the text ***** ASSERT ******. Am I doing something wrong?
Here is the code and the text from the debugger. You can see how the program was running fine (printing out RGB values), then all the sudden a bunch of values with byte amounts.
using System;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation.Media;
namespace GadgeteerApp2
{
public partial class Program
{
void ProgramStarted()
{
display_TE35.SimpleGraphics.AutoRedraw = true;
display_TE35.WPFWindow.TouchDown += new Microsoft.SPOT.Input.TouchEventHandler(WPFWindow_TouchDown);
display_TE35.WPFWindow.Invalidate();
}
void WPFWindow_TouchDown(object sender, Microsoft.SPOT.Input.TouchEventArgs e)
{
display_TE35.SimpleGraphics.Clear();
display_TE35.SimpleGraphics.DisplayText("Lazlo v3.0 Started.", Resources.GetFont(Resources.FontResources.NinaB), Colors.Yellow, 0, 0);
Random randomInt = new Random();
int redValue = randomInt.Next(254) + 1;
int greenValue = randomInt.Next(254) + 1;
int blueValue = randomInt.Next(254) + 1;
multicolorLed.SetRedIntensity(redValue);
multicolorLed.SetGreenIntensity(greenValue);
multicolorLed.SetBlueIntensity(blueValue);
string valueText = "Red: " + redValue + ", Blue: " + blueValue + ", Green: " + greenValue;
Debug.Print(valueText);
display_TE35.SimpleGraphics.DisplayText(valueText,
Resources.GetFont(Resources.FontResources.NinaB),
ColorUtility.ColorFromRGB((byte)redValue, (byte)greenValue, (byte)blueValue), 0, 20);
}
}
}
Debug output (couldn’t paste all of it, forum doesn’t allow posts that big, but rest was pretty much a repeat of the portion between the GC lines)…
Found debugger!
Create TS.
Loading start at 20175a40, end 201a2d84
Assembly: mscorlib (4.2.0.0) Assembly: Microsoft.SPOT.Native (4.2.0.0) Assembly: Microsoft.SPOT.Hardware (4.2.0.0)
Assembly: Microsoft.SPOT.Graphics (4.2.0.0) Assembly: Microsoft.SPOT.TinyCore (4.2.0.0)
Assembly: Microsoft.SPOT.IO (4.2.0.0) Assembly: System.IO (4.2.0.0) Assembly: Microsoft.SPOT.Hardware.Usb (4.2.0.0)
Assembly: Microsoft.SPOT.Hardware.SerialPort (4.2.0.0) Assembly: Microsoft.SPOT.Touch (4.2.0.0)
Assembly: Microsoft.SPOT.Ink (4.2.0.0) Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1)
Assembly: Microsoft.SPOT.Hardware.OneWire (4.2.0.0) Assembly: System.Xml (4.2.0.0)
Assembly: Microsoft.SPOT.Time (4.2.0.0) Assembly: Microsoft.SPOT.Net (4.2.0.0)
Assembly: System (4.2.0.0) Assembly: Microsoft.SPOT.Net.Security (4.2.0.0)
Assembly: System.Net.Security (4.2.0.0) Loading Deployment Assemblies.
Attaching deployed file.
Assembly: GHI.OSHW.Hardware (4.2.3.1) Attaching deployed file.
Assembly: Gadgeteer (2.42.0.0) Attaching deployed file.
Assembly: System.Http (4.2.0.0) Attaching deployed file.
Assembly: Gadgeteer.DaisyLink (2.42.0.0) Attaching deployed file.
Assembly: GTM.GHIElectronics.Display_TE35 (1.1.1.0) Attaching deployed file.
Assembly: GadgeteerApp2 (3.0.4793.37773) Attaching deployed file.
Assembly: GHIElectronics.Gadgeteer.FEZHydra (1.1.1.0) Attaching deployed file.
Assembly: GTM.GHIElectronics.MulticolorLed (1.1.1.0) Resolving.
GC: 1msec 408396 bytes used, 5882736 bytes available
Type 0F (STRING ): 24 bytes
Type 15 (FREEBLOCK ): 5882736 bytes
Type 17 (ASSEMBLY ): 31104 bytes
Type 1E (BINARY_BLOB_HEAD ): 377196 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' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\mscorlib.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Native.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Graphics.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.TinyCore.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.IO.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\System.IO.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.Usb.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.SerialPort.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Touch.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Ink.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.PWM.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Hardware.OneWire.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\System.Xml.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Time.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Net.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\System.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\Microsoft.SPOT.Net.Security.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\System.Net.Security.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\GHI Electronics\GHI OSHW NETMF v4.2 SDK\Assemblies\le\GHI.OSHW.Hardware.dll'
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Gadgeteer\Core\Assemblies\.NET Micro Framework 4.2\le\Gadgeteer.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.2\Assemblies\le\System.Http.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\Microsoft .NET Gadgeteer\Core\Assemblies\.NET Micro Framework 4.2\le\Gadgeteer.DaisyLink.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\GHI Electronics\GHI .NET Gadgeteer SDK\Modules\Display_TE35\NETMF 4.2\le\GTM.GHIElectronics.Display_TE35.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\GHI Electronics\GHI .NET Gadgeteer SDK\Modules\MulticolorLed\NETMF 4.2\le\GTM.GHIElectronics.MulticolorLed.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Program Files (x86)\GHI Electronics\GHI .NET Gadgeteer SDK\Mainboards\FEZHydra\NETMF 4.2\le\GHIElectronics.Gadgeteer.FEZHydra.dll', Symbols loaded.
'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:\Users\Hoss\documents\visual studio 2010\Projects\GadgeteerApp2\GadgeteerApp2\bin\Debug\le\GadgeteerApp2.exe', Symbols loaded.
The thread '<No Name>' (0x2) has exited with code 0 (0x0).
Using mainboard GHI Electronics FEZHydra version 1.2
The thread '<No Name>' (0x3) has exited with code 0 (0x0).
Red: 146, Blue: 7, Green: 146
Red: 46, Blue: 121, Green: 95
Red: 67, Blue: 151, Green: 131
Red: 147, Blue: 134, Green: 180
Red: 97, Blue: 14, Green: 231
Red: 118, Blue: 223, Green: 114
Red: 154, Blue: 30, Green: 225
Red: 175, Blue: 89, Green: 251
Red: 224, Blue: 241, Green: 81
Red: 51, Blue: 232, Green: 252
Red: 56, Blue: 180, Green: 210
Red: 143, Blue: 71, Green: 23
Red: 23, Blue: 207, Green: 182
Red: 59, Blue: 248, Green: 165
Red: 110, Blue: 67, Green: 88
Red: 158, Blue: 213, Green: 253
Red: 158, Blue: 52, Green: 46
Red: 56, Blue: 104, Green: 108
Red: 142, Blue: 253, Green: 20
Red: 237, Blue: 56, Green: 198
Red: 218, Blue: 234, Green: 110
Red: 231, Blue: 78, Green: 221
Red: 215, Blue: 42, Green: 243
Red: 46, Blue: 217, Green: 50
Red: 217, Blue: 158, Green: 67
Red: 47, Blue: 23, Green: 21
Red: 22, Blue: 81, Green: 192
Red: 154, Blue: 184, Green: 223
Red: 228, Blue: 218, Green: 64
Red: 36, Blue: 217, Green: 151
Red: 117, Blue: 164, Green: 174
Red: 149, Blue: 198, Green: 184
Red: 30, Blue: 106, Green: 212
Red: 205, Blue: 157, Green: 105
Red: 232, Blue: 220, Green: 179
Red: 133, Blue: 123, Green: 249
Red: 112, Blue: 157, Green: 193
Red: 21, Blue: 76, Green: 8
Red: 212, Blue: 195, Green: 37
Red: 12, Blue: 149, Green: 213
Red: 233, Blue: 176, Green: 181
Red: 150, Blue: 166, Green: 112
Red: 111, Blue: 112, Green: 35
Red: 81, Blue: 37, Green: 64
Red: 221, Blue: 26, Green: 53
Red: 45, Blue: 52, Green: 249
Red: 182, Blue: 186, Green: 27
Red: 148, Blue: 147, Green: 171
Red: 167, Blue: 49, Green: 46
Red: 228, Blue: 128, Green: 163
Red: 253, Blue: 45, Green: 61
Red: 174, Blue: 43, Green: 218
Red: 69, Blue: 3, Green: 55
Red: 209, Blue: 139, Green: 2
Red: 119, Blue: 175, Green: 22
Red: 4, Blue: 225, Green: 119
Red: 171, Blue: 181, Green: 61
Red: 57, Blue: 250, Green: 67
Red: 222, Blue: 225, Green: 8
Red: 24, Blue: 121, Green: 232
Red: 147, Blue: 75, Green: 54
Red: 106, Blue: 80, Green: 218
Red: 121, Blue: 78, Green: 138
Red: 34, Blue: 202, Green: 127
Red: 202, Blue: 61, Green: 109
Red: 216, Blue: 170, Green: 223
Red: 136, Blue: 202, Green: 51
Red: 8, Blue: 155, Green: 21
Red: 144, Blue: 7, Green: 240
Red: 151, Blue: 128, Green: 198
Red: 80, Blue: 195, Green: 245
Red: 71, Blue: 123, Green: 211
Red: 16, Blue: 232, Green: 173
Red: 21, Blue: 30, Green: 194
Red: 18, Blue: 45, Green: 40
Red: 173, Blue: 87, Green: 125
Red: 27, Blue: 89, Green: 13
Red: 249, Blue: 204, Green: 21
Red: 151, Blue: 210, Green: 171
Red: 100, Blue: 37, Green: 6
Red: 91, Blue: 80, Green: 213
Red: 8, Blue: 9, Green: 127
Red: 36, Blue: 69, Green: 109
Red: 80, Blue: 248, Green: 73
Red: 192, Blue: 131, Green: 198
Red: 94, Blue: 44, Green: 31
Red: 114, Blue: 78, Green: 254
Red: 246, Blue: 239, Green: 252
Red: 91, Blue: 53, Green: 138
Red: 9, Blue: 200, Green: 155
Red: 61, Blue: 75, Green: 254
Red: 227, Blue: 135, Green: 61
Red: 35, Blue: 96, Green: 232
Red: 153, Blue: 31, Green: 54
Red: 208, Blue: 241, Green: 81
Red: 141, Blue: 208, Green: 183
Red: 16, Blue: 219, Green: 65
Red: 93, Blue: 79, Green: 253
Red: 104, Blue: 73, Green: 85
Red: 212, Blue: 119, Green: 134
Red: 123, Blue: 24, Green: 166
Red: 230, Blue: 221, Green: 225
Red: 134, Blue: 72, Green: 196
Red: 247, Blue: 171, Green: 198
Red: 220, Blue: 183, Green: 8
Red: 224, Blue: 10, Green: 21
Red: 50, Blue: 88, Green: 222
Red: 28, Blue: 127, Green: 215
Red: 76, Blue: 87, Green: 76
Red: 112, Blue: 79, Green: 248
Red: 176, Blue: 18, Green: 160
Red: 121, Blue: 251, Green: 118
Red: 52, Blue: 67, Green: 189
Red: 67, Blue: 75, Green: 253
Red: 125, Blue: 13, Green: 207
Red: 139, Blue: 104, Green: 200
Red: 251, Blue: 37, Green: 103
Red: 189, Blue: 20, Green: 224
Red: 142, Blue: 18, Green: 29
Red: 162, Blue: 87, Green: 169
Red: 120, Blue: 103, Green: 217
Red: 186, Blue: 40, Green: 68
Red: 253, Blue: 69, Green: 90
Red: 139, Blue: 138, Green: 123
Red: 79, Blue: 84, Green: 68
Red: 190, Blue: 82, Green: 57
Red: 136, Blue: 32, Green: 120
Red: 237, Blue: 216, Green: 250
Red: 201, Blue: 155, Green: 238
Red: 161, Blue: 247, Green: 191
Red: 145, Blue: 212, Green: 144
Red: 169, Blue: 36, Green: 176
Red: 251, Blue: 58, Green: 217
Red: 72, Blue: 85, Green: 242
Red: 36, Blue: 249, Green: 137
Red: 100, Blue: 192, Green: 150
Red: 102, Blue: 26, Green: 219
Red: 180, Blue: 205, Green: 199
Red: 4, Blue: 87, Green: 47
Red: 118, Blue: 131, Green: 168
Red: 161, Blue: 82, Green: 219
Red: 38, Blue: 134, Green: 182
Red: 83, Blue: 119, Green: 251
GC: 28msec 766140 bytes used, 5524992 bytes available
Type 0F (STRING ): 1476 bytes
Type 11 (CLASS ): 18264 bytes
Type 12 (VALUETYPE ): 1548 bytes
Type 13 (SZARRAY ): 6432 bytes
Type 03 (U1 ): 252 bytes
Type 04 (CHAR ): 780 bytes
Type 07 (I4 ): 1044 bytes
Type 0F (STRING ): 60 bytes
Type 11 (CLASS ): 4212 bytes
Type 12 (VALUETYPE ): 84 bytes
Type 15 (FREEBLOCK ): 5524992 bytes
Type 16 (CACHEDBLOCK ): 132 bytes
Type 17 (ASSEMBLY ): 31104 bytes
Type 18 (WEAKCLASS ): 96 bytes
Type 19 (REFLECTION ): 192 bytes
Type 1B (DELEGATE_HEAD ): 1188 bytes
Type 1D (OBJECT_TO_EVENT ): 312 bytes
Type 1E (BINARY_BLOB_HEAD ): 697608 bytes
Type 1F (THREAD ): 1536 bytes
Type 20 (SUBTHREAD ): 144 bytes
Type 21 (STACK_FRAME ): 1644 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 23 (LOCK_HEAD ): 60 bytes
Type 24 (LOCK_OWNER_HEAD ): 24 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 48 bytes
Type 27 (FINALIZER_HEAD ): 144 bytes
Type 31 (IO_PORT ): 216 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 3828 bytes
GC: 24msec 766008 bytes used, 5525124 bytes available
Type 0F (STRING ): 1476 bytes
Type 11 (CLASS ): 18264 bytes
Type 12 (VALUETYPE ): 1548 bytes
Type 13 (SZARRAY ): 6432 bytes
Type 03 (U1 ): 252 bytes
Type 04 (CHAR ): 780 bytes
Type 07 (I4 ): 1044 bytes
Type 0F (STRING ): 60 bytes
Type 11 (CLASS ): 4212 bytes
Type 12 (VALUETYPE ): 84 bytes
Type 15 (FREEBLOCK ): 5525124 bytes
Type 17 (ASSEMBLY ): 31104 bytes
Type 18 (WEAKCLASS ): 96 bytes
Type 19 (REFLECTION ): 192 bytes
Type 1B (DELEGATE_HEAD ): 1188 bytes
Type 1D (OBJECT_TO_EVENT ): 312 bytes
Type 1E (BINARY_BLOB_HEAD ): 697608 bytes
Type 1F (THREAD ): 1536 bytes
Type 20 (SUBTHREAD ): 144 bytes
Type 21 (STACK_FRAME ): 1644 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 23 (LOCK_HEAD ): 60 bytes
Type 24 (LOCK_OWNER_HEAD ): 24 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 48 bytes
Type 27 (FINALIZER_HEAD ): 144 bytes
Type 31 (IO_PORT ): 216 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 3828 bytes