Tool that opens a comport for every mbed connected to your computer with one command - never look for the COM number again!
- clone or download the repo to your windows PC
- open a cmd prompt and change the directory to location of the files downloaded
- run open_mbed
- enjoy
open_mbed.bat
- Committer:
- sg-
- Date:
- 2014-07-19
- Revision:
- 2:736ec17a4e05
- Parent:
- 1:1483315a15a6
File content as of revision 2:736ec17a4e05:
@echo off SET PATH=%PATH%;c:\Program Files\putty\ ::mbed Serial Port :mbed set func=mbed friendly_port "mbed Serial Port" set result=%ERRORLEVEL% if %result% EQU -1 ( ::echo %result% echo mbed scan done goto st ) else ( goto openputty ) ::STMicroelectronics STLink Virtual COM Port :st set func=st friendly_port "STMicroelectronics STLink Virtual COM Port" set result=%ERRORLEVEL% if %result% EQU -1 ( ::echo %result% echo st scan done goto fsl ) else ( goto openputty ) ::OpenSDA - CDC Serial Port :fsl set func=fsl friendly_port "OpenSDA - CDC Serial Port" set result=%ERRORLEVEL% if %result% EQU -1 ( ::echo %result% echo freescale scan done goto exit ) else ( goto openputty ) :openputty start /D %CD% putty.exe -serial com%result% -sercfg 9600 timeout /t 1 > NUL goto %func% :notfound echo all done. pause :exit