OK I’m a little embarrassed to reach out so soon, but since I’ve flashed netmf many times on other vendors’ boards, I don’t think I am completely in the dark on the process. Yet I am unable to flash my new cerb40ii, nor able to deploy and run built code.
OK, I will write a short story, and then a long story. Short story:
- flashed firmware for netmf 4.2 with some difficulty, and still cannot deploy and run with devstudio
- flashing difficulty with mfdeploy, complaining about signature of firmware.hex
- circumvented mfdeploy my making a dfu and flashing with STM tools
- firmware behaves little oddly from a mfdeploy ‘ping’ standpoint, and others
- and either way cannot connect with debugger in DS2010 to deploy and run
- DS2010(ultimate if it matters)
- installed ‘GHI NETMF v4.2 and .NET Gadgeteer Package (04-30-2013).zip’
- ran ‘Setup.exe’
- proceeded through it all
- because I’m weird, I also sucked off a DFU from the board of its factory state so I could revirginate it if I needed. And needed I did!
OK, it appeared the boards ship with no CLR installed, only a TinyBooter. So, I researched and did as suggested by using MFDeploy (yes, I could ping the board and see ‘TinyBooter’), and selected files:
- in dir:
“C:\Program Files (x86)\GHI Electronics\GHI OSHW NETMF v4.2 SDK\FEZ Cerb Family\Firmware\Non Ethernet”
This process failed with a ‘signature check’ error. Hmm. OK, so I revirginated my board by erasing and using the DFU I created earlier and validated and tried again, a little differently this time:
- I deployed just Config.hex. This worked, and passed the signature check.
- I deployed just Firmware.hex. This proceeded until ‘Deployment Status, Checking Signature…’ reached 100% and boy howdy it did stay there so long that I thought it was hung (like 15 min or so) so I tapped ‘cancel’. Who needs signatures anyway?
But I did cycle power on the board, and tried to ping. After an unusually long delay, I got:
Pinging… I Electronics, LLCTinyCLR
I Electronics, LLC
Hmm, looks kooky! I try ‘Target, Device Capabilities…’ and after another long delay get:
I Electronics, LLCHalSystemInfo.halVersion:
SolutionReleaseInfo.solutionVendorInfo: Copyright © GHI Electronics, LLC
SoftwareVersion.BuildDate: Apr 25 2013
OK, the first line looks bad, but the rest seems sane. The very long delay before response is disturbing.
I try making a project in DS2010. I use ‘New Project, C#, Gadgeteer, NetMF 4.2’, and select a project name and do nothing other than change the text in the Debug.Print() to utterly clear that it is my code that is running. Compile, run…
No deployment. Eventually I get some error spew:
------ Deploy started: Project: CerbyNumNum, Configuration: Debug Any CPU ------
An error has occurred: please check your hardware.
at Microsoft.SPOT.Debugger.Engine.Request.Wait() in c:\depot\current\CLIENT_V4_2\Framework\Debugger\Engine.cs:line 761
at Microsoft.SPOT.Debugger.Engine.SyncRequest(OutgoingMessage msg, Int32 retries, Int32 timeout) in c:\depot\current\CLIENT_V4_2\Framework\Debugger\Engine.cs:line 1963
at Microsoft.SPOT.Debugger.Engine.ResolveAllAssemblies() in c:\depot\current\CLIENT_V4_2\Framework\Debugger\Engine.cs:line 2941
at Microsoft.SPOT.Debugger.VsProjectFlavorCfg.Deploy() in c:\depot\current\CLIENT_V4_2\Framework\CorDebug\VsProjectFlavorCfg.cs:line 869
at Microsoft.SPOT.Debugger.VsProjectFlavorCfg.<Microsoft.VisualStudio.Shell.Interop.IVsDeployableProjectCfg.StartDeploy>b__0() in c:\depot\current\CLIENT_V4_2\Framework\CorDebug\VsProjectFlavorCfg.cs:line 634
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
I think the board is perfectly fine, but something is awry with either the firmware I am flashing, or maybe the process by which I flash, etc.
And so my story ends: a sad and sorrowful tale, alas; of a fateful fail of a fraughtful flash.
Any advice appreciated!