파일 설명
export.cmd < 빌드 환경 세팅
build.cmd < 빌드
flash.cmd < 업로드
monitor.cmd < 시리얼 모니터
위 파일들을 자신의 프로젝트로 복사해 사용한다.
참고 https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html
export.cmd 파일을 열어 가장 아래에 있는 IDF 위치한 export.bat로 변경
PS D:\esp\project > cmd # < run command prompt
D:\esp\project > # <
동작 : esp-idf path\export.bat 실행
D:\esp\prject > export.cmd
여기서 부터 idf.py를 바로 사용이 가능함
즉, idf.py menuconfig 사용 가능
동작 : idf.py build 실행
D:\esp\prject > build.cmd
동작 : idf.py [port] -b 921600 flash 실행
D:\esp\prject > flash.cmd [option port number]
ex> D:\esp\prject > flash.cmd # < upload (when there is only one port)
ex> D:\esp\prject > flash.cmd 4 # < upload with com4
동작 : idf.py [port] -b 921600 monitor 실행
D:\esp\prject > monitor.cmd [option port number]
ex> D:\esp\prject > monitor.cmd # < run monitor (when there is only one port)
ex> D:\esp\prject > monitor.cmd 4 # < run monitor with com4