I am attempting to deploy a simple blinker program to my FEZ Raptor. VS2013 will deploy, but fails to attach the debugger. Here are the final output window messages:
Assemblies successfully deployed to device.
Restarting interpreter…
Attaching to device…
Waiting for device to initialize…
The debugging target and the debugger engine failed to initialize because of unspecified device errors.
The debugger engine thread has terminated unexpectedly with error ‘Could not reconnect to the debugging target after rebooting it.’.
The program does not start on the board. If I reboot the board via the Reset button on it, my program will start an begin blinking the LED, but of course I have no debug connection.
It should be noted that I have been using a FEZ Hydra for a project for a very long time and it works fine. I’m using the same USB port, cable, and DP Power module as I did for the Hydra. If I go back to the Hydra it works fine.
I’ve verified via FEZ Config that my TinyBooter and TinyCLR versions are 4.3.6.0. Interestingly, FEZ Config is seeing an intermittent connection to the device. It will output " Failure - Device is not connected or not responding." when I click the “Check device for update” button. If I click the button immediately after this failure, it will work. Then I can click it again, and it fails. There is no pattern to it - totally intermittent. And again - I have an extra power source plugged in on my DP board, and it is connected to the D socket (socket 8). My USB cable, port etc are all good - if I switch to the Hydra board it is all fine.
Any ideas on what’s going on here? Here is the code also. Thanks!
public partial class Program
{
private bool on;
void ProgramStarted()
{
var t = new GT.Timer(250);
t.Tick += Blink;
t.Start();
on = true;
}
private void Blink(GT.Timer timer)
{
Mainboard.SetDebugLED(on);
on = !on;
}
}