Main Site Documentation

UCM Dev Board requires a quick double click of the button to reset


#1

UCM Dev Board Rev E with UC5550 with WiFi
UD700 Rev A display in use
Libs version 1.0.0-preview2

Restarting interpreter.
Attaching to device.
Waiting for device to initialize.

The Device Manager always shows
Universal Serial Bus devices UC5550

App debug/deploy does not initialize and sometimes
Visual Studio closes and restarts when trying to debug/deploy.

My UCM Dev Board requires a quick double click of the button to reset.
(A normal press/release of the reset button does not work.)

VERY annoying trying to debug/deploy and I assume the problem
is related to the required double click to reset.

Power on with a working app, the board seems OK.

Is there anything that I can do about this?

Thank You.


#2

Once you have a program running, say a blink LED, does a quick single press of reset actually reset the board? Or does it require a quick double press?


#3

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);
        }
    }
    //
}
//

}
//
USBerror

I forgot to show you this. Received from VS2017 at times’’


#4

Unfortunately we haven’t been able to reproduce this. Preview 3 will be out soon and there have been some changes around USB in it, I’d test again with it just to be safe.