I’m having trouble with a .Net MF 4.2 project running on the FEZ Cerberus. In order to debug the problem I have swapped to a very simple .Net Gadgeteer project. In Visual Studio 2012 I make a new .Net Gadgeteer project targeting the .Net MF 4.2, add the FEZ Cerberus mainboard, and run the project. What I expect to see in the output window is a bunch of diagnostic messages followed by “Program Started” since the boiler-plate
ProgramStarted method contains just one line of code:
But that is not what I see.
Instead I get this output:
Assembly: System (18.104.22.168) Loading Deployment Assemblies.
Assembly: Microsoft.SPOT.Hardware.PWM (22.214.171.124) Attaching deployed file.
Assembly: System.IO (126.96.36.199) Attaching deployed file.
Assembly: Microsoft.SPOT.Hardware (188.8.131.52) Attaching deployed file.
Assembly: mscorlib (184.108.40.206) Attaching deployed file.
Assembly: VanillaCerbGadgeteerApp (220.127.116.11) Attaching deployed file.
The debugging target runtime is loading the application assemblies and starting execution.
And that’s where it sticks forever. Here are the things I have tried to fix it.
- Restart the FEZ Cerberus
- Restart the PC
- Pausing debugging and then resuming. The pause fails with the error “Unable to break execution. The debugger is still attaching to the process or the process is not currently executing the type of code selected for debugging.”
- Swapping between the PC’s USB and a powered USB hub
- Uninstalling the WinUSB drivers and instead installing the legacy drivers
- Setting a breakpoint (it never gets there)
- Switching to a different FEZ Cerberus mainboard
8 ) Running the SDTFUTester to erase the memory on the FEZ Cerberus, reinstall the DFU
Tinybooter_4_2_6_1.dfu, and then using the FEZConfig tool to update the firmware to 18.104.22.168 on the mainboard.
None of these steps work. I am still stuck forever on the line
The debugging target runtime is loading the application assemblies and starting execution. What should I do to debug this and to fix it?
(N.B. One thing that did fix this was to rebuild my laptop, i.e. to wipe the disk and install the OS etc. from scratch. However this fix was not permanent, I was soon back, stuck at the same point.)
I am running Visual Studio 2012 and have the NETMF SDK 4.3 (RTM) and the NETMF and Gadgeteer Package 2013 R3 installed. I’m currently on Windows 8.1 though I experienced the same (or at least similar) problem when the laptop was on Windows 8.