Hey!
I’m using the In-Field-Update code form your website for my Cobra II and after some changes everything works fine. But I have two questions:
-
It takes a very long time to create an application development for my update with MFDeploy. Is it possible to create an .hex file for the In-Field-Update with Microsoft Visual Studio?
-
After updating the system reboot with the new Software, but the display isn’t calibrated. So I used the Reset Display Code:
static void ResetDisplay()
{
Configuration.LCD.Configurations lcdConfig = new Configuration.LCD.Configurations();
lcdConfig.Width = 320;
lcdConfig.Height = 240;
// Only use if needed, see documentation.
//lcdConfig.PriorityEnable = false;
lcdConfig.OutputEnableIsFixed = true;
lcdConfig.OutputEnablePolarity = true;
lcdConfig.HorizontalSyncPolarity = false;
lcdConfig.VerticalSyncPolarity = false;
lcdConfig.PixelPolarity = true;
lcdConfig.HorizontalSyncPulseWidth = 41;
lcdConfig.HorizontalBackPorch = 27;
lcdConfig.HorizontalFrontPorch = 51;
lcdConfig.VerticalSyncPulseWidth = 10;
lcdConfig.VerticalBackPorch = 8;
lcdConfig.VerticalFrontPorch = 16;
lcdConfig.PixelClockRateKHz = 10;
bool bNeedReset = Configuration.LCD.Set(lcdConfig);
System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
}
and after ResetDisplay I reboot my System with Microsoft.SPOT.Hardware.PowerState.RebootDevice(true);
if (SystemMetrics.ScreenHeight == 0 || SystemMetrics.ScreenWidth == 0)
{
ResetDisplay();
Microsoft.SPOT.Hardware.PowerState.RebootDevice(true);
}
But the hardware reboot doesn’t work and I have to reboot extern with the reset button.
Then everything works fine.
Can anybody help me?
Thank you.
Stefan