Sorry this is so long winded…
Build Deploy Solution
deploy was OK
Debug Start Debugging F5 was ok:
App started and the LED is blinking
Device Manager shows
Universal Serial Bus devices
UC5550
While app is running:
LED is blinking
Press RESET button and release (normal button press)
LED is OFF
I assume it could also be ON depending on the state in Method Blink()
Press RESET button
Device Manager does NOT show
Universal Serial Bus devices
UC5550
Then release the RESET button (normal button press)
Device Manager shows
Universal Serial Bus devices
UC5550
The above for the Device Manager is what I would expect.
I press and release (normal button press) several times but the App does not restart.
On RESET pressed
Device Manager does NOT show
Universal Serial Bus devices
UC5550
On RESET release
Device Manager shows
Universal Serial Bus devices
UC5550
The App does not restart
If I double click the RESET button quickly
Device Manager does NOT show
Universal Serial Bus devices
Then resets
Device Manager shows
Universal Serial Bus devices
App starts running.
////
Debugging from VS 2017 worked with this sample code
but with more complex code it may not.
I receive
Assemblies deployed.There are 362,580 bytes left in the deployment area.
Restarting interpreter.
Attaching to device.
Waiting for device to initialize.
Device Manager shows at this time
Universal Serial Bus devices
UC5550
TEST CODE I USED
using System;
using System.Threading;
using GHIElectronics.TinyCLR.Pins;
using GHIElectronics.TinyCLR.Devices.Gpio;
// Using a UCM Dev Board Rev E with a UC5550 with WiFi
// Connected but not used UD700 Rev A display
// Libs version 1.0.0-preview2
namespace TinyCLR_TestReset
{
class Program
{
private static GpioPin led_GPIOC;
static void Main()
{
// LED by the IRQ A button
// The signal can be found on Header B Pin GPIO C
led_GPIOC = GpioController.GetDefault().OpenPin(UC5550.GpioPin.PG3);
led_GPIOC.SetDriveMode(GpioPinDriveMode.Output);
Blink();
Thread.Sleep(Timeout.Infinite);
}
//
private static void Blink( )
{
while (true)
{
led_GPIOC.Write(led_GPIOC.Read() == GpioPinValue.High ? GpioPinValue.Low : GpioPinValue.High);
Thread.Sleep(500);
}
}
//
}
//
}
//
I forgot to show you this. Received from VS2017 at times’’