Skip to content

Instantly share code, notes, and snippets.

@JSpiner
Last active June 15, 2022 12:47
Show Gist options
  • Save JSpiner/6b9671bcd17c351cd367fba4da610db4 to your computer and use it in GitHub Desktop.
Save JSpiner/6b9671bcd17c351cd367fba4da610db4 to your computer and use it in GitHub Desktop.
```
Serial port /dev/cu.usbserial-0001
Connecting......................................
A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x13)! The chip needs to be in download mode.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
선택돤 시리얼 포트For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
는 존재하지 않거나 해당 보드가 연결되지 않았습니다.
```
아두이노에서 esp32 초기 업로드시 위와 같은 오류가 발생한다면,
esptool 설치후 아래 커멘드로 초기화 해주면 정상 업로드 가능합니다.
```
(보드의 `boot`버튼을 누른채로 커맨드를 실행하고 커맨드가 끝날때까지 누르고 있어야 합니다.)
$ python3 -m esptool --chip esp32 -p /dev/cu.usbserial-0001 -b 115200 erase_flash
$ python3 -m esptool -p /dev/cu.usbserial-0001 flash_id
```
`dev/cu.usbserial-0001`은 아두이노 ide의 port 탭에서 확인 가능
@JSpiner
Copy link
Author

JSpiner commented Jun 15, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment