Skip to content

ESP8266 as CMSIS‐DAP link

Request-timed-out edited this page Jan 29, 2024 · 7 revisions

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

  1. 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.

    1. Download the flasher for your OS.
    2. Run it and select the correct serial port of your esp.
  2. Download wireless-esp8266-dap and flash wireless_esp_dap_full.bin to your esp.
  3. Change your home wifi SSID to DAP and password of 12345678, 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.

  4. Open a terminal and type ping dap.localand memorize the ip address of the esp.
  5. Connect the esp to target like below:
    SWD ESP
    SWCLK GPIO14
    SWDIO GPIO13
    VCC 3V3
    GND GND
  6. Now the esp is ready to go, please choose a way to connect the esp to KEIL for flashing.