bool fg_chg=GHIElectronics.NETMF.Hardware.Configuration.LCD.Set(Configuration.LCD.HeadlessConfig); // to use the LCD reserved IOs, return true if config has changed false otherwise.
the Output of VSC# 2010 Express is:
[quote] #### Exception System.Exception - 0xffffffff (1) ####
#### Message:
#### GHIElectronics.NETMF.Hardware.Configuration+LCD::Set [IP: 0000] ####
#### GHIElectronics.NETMF.Hardware.Configuration+LCD::Set [IP: 003f] ####
#### ProjetBBX.LED::.ctor [IP: 0034] ####
#### ProjetBBX.ProjetBBX::Main [IP: 02d7] ####
Une exception de première chance de type ‘System.Exception’ s’est produite dans GHIElectronics.NETMF.Hardware.dll[/quote]
Whereas this instruction works properly when the board is not prepared for IFU.
I have created a dummy code that I can’t run on the board when EMX has been partitionned.
If anyone can run this example (it aims to deactivate LCD config to reuse pins), this would be great.
using System;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.Hardware;
namespace EMX_Application1
{
public class Program
{
public static void Main()
{
Debug.Print(
Resources.GetString(Resources.StringResources.String1));
bool cfg_chg=Configuration.LCD.Set(Configuration.LCD.HeadlessConfig);
if (cfg_chg)
{
Debug.Print("Config LCD has been updated");
Debug.Print("Reboot the platform");
Microsoft.SPOT.Hardware.PowerState.RebootDevice(false); //hard reboot
}
}
}
}
The fact is that in the library, they mention that:
Therefore this configuration have to be done in the app.hex.
However, I discovered that I was not copying the “Config.HEX” file during systemCompleUpdate. I though it was the problem. But my first attempt did not succeed. The board start copying from SD the hex file to the flash, the board restart, but nothing happens. No message in MFDeploy…
I go on the investigation and thanks for the ideas, It helps me to double check all this stuff.