调试版本不弹出上传提示框
This commit is contained in:
@@ -299,7 +299,7 @@
|
|||||||
<OPTFL>
|
<OPTFL>
|
||||||
<tvExp>1</tvExp>
|
<tvExp>1</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<IsCurrentTarget>1</IsCurrentTarget>
|
<IsCurrentTarget>0</IsCurrentTarget>
|
||||||
</OPTFL>
|
</OPTFL>
|
||||||
<CpuCode>18</CpuCode>
|
<CpuCode>18</CpuCode>
|
||||||
<DebugOpt>
|
<DebugOpt>
|
||||||
@@ -540,7 +540,7 @@
|
|||||||
<OPTFL>
|
<OPTFL>
|
||||||
<tvExp>1</tvExp>
|
<tvExp>1</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<IsCurrentTarget>0</IsCurrentTarget>
|
<IsCurrentTarget>1</IsCurrentTarget>
|
||||||
</OPTFL>
|
</OPTFL>
|
||||||
<CpuCode>18</CpuCode>
|
<CpuCode>18</CpuCode>
|
||||||
<DebugOpt>
|
<DebugOpt>
|
||||||
|
@@ -4222,7 +4222,7 @@
|
|||||||
<RunUserProg1>1</RunUserProg1>
|
<RunUserProg1>1</RunUserProg1>
|
||||||
<RunUserProg2>1</RunUserProg2>
|
<RunUserProg2>1</RunUserProg2>
|
||||||
<UserProg1Name>fromelf.exe --bin -o "$L@L.bin" "#L"</UserProg1Name>
|
<UserProg1Name>fromelf.exe --bin -o "$L@L.bin" "#L"</UserProg1Name>
|
||||||
<UserProg2Name>python source\mycopy.py</UserProg2Name>
|
<UserProg2Name>python source\mycopy.py debug</UserProg2Name>
|
||||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||||
<nStopA1X>0</nStopA1X>
|
<nStopA1X>0</nStopA1X>
|
||||||
|
@@ -329,5 +329,6 @@
|
|||||||
2024.1.8
|
2024.1.8
|
||||||
V2.13 使用新的can帧回复数据
|
V2.13 使用新的can帧回复数据
|
||||||
解决ew自检模式 8导致小板死机的bug,自检返回值除以400,单位0.1ms
|
解决ew自检模式 8导致小板死机的bug,自检返回值除以400,单位0.1ms
|
||||||
|
2024.1.9
|
||||||
|
调试版本不弹出上传提示框
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define BUILD_DATE "2024-01-08 16:28:07"
|
#define BUILD_DATE "2024-01-09 15:43:29"
|
||||||
#define SOFT_VERSION "2.13"
|
#define SOFT_VERSION "2.13"
|
||||||
|
|
||||||
|
|
||||||
|
@@ -134,14 +134,13 @@ def creat_head(data:bytearray,date:str):
|
|||||||
return head
|
return head
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main(cmd_str:str):
|
||||||
date=time.get_date()
|
date=time.get_date()
|
||||||
src=APP_FILE_SRC+".bin"
|
src=APP_FILE_SRC+".bin"
|
||||||
dst=APP_FILE_DST+"_"+date+".pkt"
|
dst=APP_FILE_DST+"_"+date+".pkt"
|
||||||
if not os.path.exists(src):
|
if not os.path.exists(src):
|
||||||
print(src+' File Error!!!')
|
print(src+' File Error!!!')
|
||||||
else:
|
else:
|
||||||
|
|
||||||
if os.path.exists(dst):
|
if os.path.exists(dst):
|
||||||
os.remove(dst)
|
os.remove(dst)
|
||||||
file = open(src,"rb")
|
file = open(src,"rb")
|
||||||
@@ -153,12 +152,10 @@ def main():
|
|||||||
with open(dst,"wb") as f:
|
with open(dst,"wb") as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
print(dst+' create app file success.')
|
print(dst+' create app file success.')
|
||||||
readback=os.popen("upload "+SQL_APP_PATH+" "+dst).readlines()
|
if(cmd_str=="app"):
|
||||||
for i in readback:
|
readback=os.popen("upload "+SQL_APP_PATH+" "+dst).readlines()
|
||||||
print(i)
|
for i in readback:
|
||||||
# sql=mysql.sql()
|
print(i)
|
||||||
# if(sql.init(SQL_APP_PATH)==True):
|
|
||||||
# sql.insert(dst)
|
|
||||||
boot=BOOT_FILE_SRC+".bin"
|
boot=BOOT_FILE_SRC+".bin"
|
||||||
boot_dst=BOOT_FILE_DST+"_"+date+".bin"
|
boot_dst=BOOT_FILE_DST+"_"+date+".bin"
|
||||||
if os.path.exists(boot):
|
if os.path.exists(boot):
|
||||||
@@ -173,11 +170,11 @@ def main():
|
|||||||
with open(boot_dst,"wb") as f:
|
with open(boot_dst,"wb") as f:
|
||||||
f.write(d)
|
f.write(d)
|
||||||
print(boot_dst+" create boot file success.")
|
print(boot_dst+" create boot file success.")
|
||||||
#sql=mysql.sql()
|
|
||||||
#if(sql.init(SQL_BOOT_PATH)==True):
|
|
||||||
# sql.insert(boot_dst)
|
|
||||||
else:
|
else:
|
||||||
print("please build bootloader to create boot file")
|
print("please build bootloader to create boot file")
|
||||||
if __name__=="__main__":
|
if __name__=="__main__":
|
||||||
main()
|
cmd_str="app"
|
||||||
|
if len(sys.argv)>=2:
|
||||||
|
cmd_str=sys.argv[1]
|
||||||
|
main(cmd_str)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user