-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathProgram.cs
More file actions
27 lines (25 loc) · 754 Bytes
/
Program.cs
File metadata and controls
27 lines (25 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
namespace Prototype.Fez.BootloaderUtil
{
internal class Program
{
private static int Main()
{
var controller = new FezBootloaderController();
try
{
controller.Open();
Console.WriteLine("Loader version is {0}", controller.GetLoaderVersion());
controller.LoadFirmware(
@"C:\Program Files (x86)\GHI Electronics\GHI NETMF v4.1 SDK\USBizi\Firmware\USBizi_CLR.GHI");
Console.WriteLine("All done.");
}
catch (FezBootloaderException e)
{
Console.WriteLine(e.Message);
return 1;
}
return 0;
}
}
}