2017.11.15 Add a parameter –serial <serial no> to the Target field. + bat program

1 exe創(chuàng)建快捷方式,并且加后綴??program --serial 50114130 ? 這是Win里面的一種調(diào)用說明。

Please note that the programming logs are saved in C:\Logs when the desktop shortcut is used to start the programmer.

In order to run programming from command line:

a) without specifying adapter serial number: C:\Scripts\program_.exe program

b) with adapter serial number (recommended), assuming serial is 12345

C:\Scripts\program_.exe program --serial 12345

c) with adapter serial, and program only one device, assuming serial is 12345: C:\NVirtualEnvs\Scripts\program_.exe program --serial 12345 --once

2 Keil +EFM32

ok....

3 python 做批量燒錄程序

pip install ?(install whl file)

5 ?bat文件編程

I find it : ?http://www.jb51.net/article/49627.htm

notes:

@echo off

REM Current DevProg Version. Match the pip package version (x.y.z) ? ? ?//當(dāng)前版本號

SET currentversion=0.0.1

REM Installation paths. If copying this to a new product, you MUST edit the last parts of venvdir and shortcuts! ? //這些是path和文件位置說明

SET basedir=C:\xxNVirtualEnvs

SET logdir=%basedir%\Logs

SET venvdir=%basedir%\xxx

SET scriptdir=%venvdir%\Scripts

SET shortcut=%userprofile%\Desktop\Program xxx.lnk ? ?桌面快捷鍵

SET shortcuttargetdir=%scriptdir%\program_xxx.exe

if not exist %basedir% (如果不存在,報錯退出

mkdir %basedir%

)

if not exist %logdir% (

mkdir %logdir%

)

if not exist %venvdir% (

python -m venv %venvdir%

)

if not exist %scriptdir%\activate.bat (

echo The virtual environment in %venvdir% appears to be invalid.

echo Delete the folder and run this script again.

exit /b 1

)

call %scriptdir%\activate.bat

pip uninstall -y intelhex six xxx安裝這三個WHL文件

pip install six-1.10.0-py2.py3-none-any.whl

pip install intelhex-2.0-py2.py3-none-any.whl

pip install ecu2te-%currentversion%-py3-none-any.whl

powershell "$s=(New-Object -COM WScript.Shell).CreateShortcut('%shortcut%');$s.TargetPath='%shortcuttargetdir%';$s.Arguments='program';$s.WorkingDirectory='%logdir%';$s.Save()"

%scriptdir%\jlink_driver_install.exe

6 J-link?serial

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容