ESP8266 as CMSIS‐DAP link - RoboDurden/Hoverboard-Firmware-Hack-Gen2.x GitHub Wiki
If you do not have a STlink-v2 clone and are not willing to spend $1 and 1 month for buying one from China then this is the correct place to look for!
Intro
@windowsair have made a awesome project that turns your esp32/esp8266 which you will need anyways to control the hoverboard into a CMSIS-DAP to flash firmware on hoverboard for the first time, after the firmware is installed you can use your esp32 to control it.
How to
- Download esphome flasher to upload the firmware to esp.
If you have experience of installing bin file on esp then you can skip this step.
- Download the flasher for your OS.
- Run it and select the correct serial port of your esp.
- Download wireless-esp8266-dap and flash
wireless_esp_dap_full.bin
to your esp. - Change your home wifi SSID to
DAP
and password of12345678
, case matters, the esp will try to connect to it now.If you are using a laptop, enable wifi hotspot with same credentials as above.
- Open a terminal and type
ping dap.local
and memorize the ip address of the esp. - Connect the esp to target like below:
SWD ESP SWCLK GPIO14 SWDIO GPIO13 VCC 3V3 GND GND - Now the esp is ready to go, please choose a way to connect the esp to KEIL for flashing.