Download bootloader, firmware & TinyCLR packages from GHI:
Push Cerberus reset & boot mode buttons. Open previous installed ST Microelectronics DFU Tester tool.
Push Cerberus mainboard reset button.
Load new tinyCLR firmwareAfter performing the reset, you can see a new serial port on ‘Device manager’ COMx (COM8) in our case.
Open teraterm and:
- Press V and then Enter. You will see back the boot loader version number (v2.x.x)
- Press U firmware file type GLB.
- Press Y to confirm then enter. You will now see CCCC...
- Go to File -> Transfer -> XMODEM -> Send and then check the 1K option.
- Select the firmware file. (Previous downloaded)
- When the transfer is complete, reset your board again!
Close teraterm. Now the System goes to find & install the driver. (Remember that this is an ‘Alfa’ version.) You probably need to install the last GHI CDC Interface from the old USB Drivers. (Search on GHI site).
Download & Install from GHI:
Open Visual Studio 2017, and create a new tinyCLR project:
In this ‘Alfa’ version the nuggets must be managed from our local store. Add new Package source.
- Now you can select & install TinyCLR.Pins (by example)
Copy/paste this code:
using GHIElectronics.TinyCLR.Devices.Gpio;
using System.Diagnostics;
using System.Threading;
namespace TinyCLRApplication1
{
class Program
{
static void Main()
{
var led = GpioController.GetDefault().OpenPin(18);
led.SetDriveMode(GpioPinDriveMode.Output);
while (true)
{
led.Write(GpioPinValue.High);
Thread.Sleep(100);
Debug.WriteLine(led.Read().ToString());
led.Write(GpioPinValue.Low);
Thread.Sleep(800);
Debug.WriteLine(led.Read().ToString());
}
}
}
}
And just press F5. It is time to pass the next hour watching the blinking light from my very old cerberus.
Comments