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
Diff: open_mbed.bat
- Revision:
- 0:a65a11a779b7
- Child:
- 1:1483315a15a6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/open_mbed.bat Thu Jul 17 15:39:44 2014 -0500 @@ -0,0 +1,44 @@ +@echo off +SET PATH=%PATH%;c:\Program Files\putty\ + +set func=mbed + +::mbed Serial Port +:mbed +friendly_port "mbed Serial Port" +if %ERRORLEVEL% == -1 ( +::echo mbed done +set func=st +goto %func% +) +if %ERRORLEVEL% GTR 0 goto openputty + +::STMicroelectronics STLink Virtual COM Port +:st +friendly_port "STMicroelectronics STLink Virtual COM Port" +if %ERRORLEVEL% == -1 ( +::echo st done +set func=fsl +goto %func% +) +if %ERRORLEVEL% GTR 0 goto openputty + +::OpenSDA - CDC Serial Port +:fsl +friendly_port "OpenSDA - CDC Serial Port" +if %ERRORLEVEL% == -1 ( +::echo fsl done +set func=exit +goto %func% +) +if %ERRORLEVEL% GTR 0 goto openputty + +:openputty +start /B putty.exe -serial com%ERRORLEVEL% -sercfg 9600 +goto %func% + +:notfound +echo all done. +pause + +:exit