添加升级注释;
This commit is contained in:
@@ -100,7 +100,10 @@ class LaminaAdapter:
|
||||
self.com.write(bytearray(frame))
|
||||
|
||||
def frame_update(self, path_bin):
|
||||
""" 程序升级 """
|
||||
""" 程序升级
|
||||
注意: 在使用单板升级测试时, 需要关闭低电压检测功能, 否则无法启动升级流程;
|
||||
|
||||
"""
|
||||
block_modbus = {
|
||||
'addr_dev' : self.addr_modbus,
|
||||
'type' : 'update',
|
||||
|
||||
@@ -38,14 +38,14 @@ def main_webui():
|
||||
|
||||
if __name__ == "__main__":
|
||||
path_bin1 = "D:\\WorkingProject\\LightStackAdapter\\software\\lamina_adapter\\tools\\upgrade\\DGAPD_240415_1000_V1.05.bin"
|
||||
path_bin2 = "D:\\WorkingProject\\LightStackAdapter\\software\\Laminaadapter\\tools\\upgrade\\DGAPD_240416_1400_V1.05.bin"
|
||||
path_bin2 = "D:\\WorkingProject\\LightStackAdapter\\software\\lamina_adapter\\tools\\upgrade\\DGAPD_240416_1400_V1.05.bin"
|
||||
path_bin3 = "F:\\Work\\FPGA\\Test\\Vivado\\test_update\\test_update.vitis\\upgrade_system\\Debug\\sd_card\\BOOT_data_v0.bin"
|
||||
|
||||
dev_la = LaminaAdapter("COM16")
|
||||
dev_la.frame_read(0x0100, 0x20)
|
||||
|
||||
if not hasattr(__builtins__,"__IPYTHON__"):
|
||||
path_bin = path_bin3
|
||||
path_bin = path_bin2
|
||||
|
||||
dev_la.frame_update(path_bin)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user