Example #1
0
        private static async Task WriteProgram(BootloaderCommands commands)
        {
            Console.WriteLine("Input file:");
            var file         = "D:\\Bins\\power-board.bin"; //Console.ReadLine();
            var fi           = new FileInfo(file);
            var bytes        = File.ReadAllBytes(fi.FullName);
            var startAddress = 0x08_00_00_00u;

            commands.BootloaderWriteToMemoryFromAddress(startAddress, bytes);
            commands.BootloadeGo(startAddress);
        }
Example #2
0
 private static async Task ReadMem(BootloaderCommands commands, uint address)
 {
     commands.BootloaderReadMem(address);
 }