我正在尝试使用Powershell来刷新ESP8266开发板上的固件。
这是我到目前为止的基本代码:
# Read file to an array of bytes:
$bytes = [System.IO.File]::ReadAllBytes("PathToBinFile")
# Init Com Port and Connect, send data:
$port1 = new-Object System.IO.Ports.SerialPort COMX,74880,None,8,one
$port1.Open()
$port1.Write( $bytes )
$port1.ReadExisting()
$port1.Close()
现在,我需要能够写入特定的内存地址: 0x00000
我找不到显示该操作方法的文档!有人可以帮忙吗?