Giter VIP home page Giter VIP logo

esp8266-wifi-cmsis-dap's Introduction

esp8266-wifi-cmsis-dap

CMSIS-DAP USB-SWD/JTAG HID adapter firmware for ESP8266 boards

Copyright (C) 2017 Oleg Suchilov

based on CMSIS-DAP USB-SWD/JTAG adapter firmware for Pro Micro and Teensy 3.2 boards

credits to:

Copyright (C) 2016 Phillip Pearson [email protected]

based on the CMSIS-DAP Interface Firmware

Copyright (c) 2009-2013 ARM Limited

This is a port of the core of ARM's CMSIS-DAP firmware to the Arduino environment, which lets you turn a esp8266 into a wireless CMSIS-DAP USB adapter, which you can use with OpenOCD and mbed to program and debug ARM chips using the SWD protocol, and also with OpenOCD to program and debug various chips using JTAG.

Usage:

example of flashing stm32f103 on arch linux

Using Arduino IDE:

  • change SSID and WiFi password in .ino file
  • compile and upload it to esp8266

connect target device to your esp8266 via swd (check the pinout in .ino file)

attach usb/ip device:

sudo modprobe usbip-core
sudo modprobe vhci-hcd
sudo usbip attach -r <esp8266_ip_address> -b 1-1

start openocd:

sudo openocd -f /usr/share/openocd/scripts/interface/cmsis-dap.cfg -f /usr/share/openocd/scripts/target/stm32f1x.cfg

connect to openocd telnet interface from another terminal:

telnet localhost 4444

execute openocd commands:

(may require to push the RST button on target for it to work)

reset halt
flash write_image erase /path/to/your/firmware.bin 0x08000000

to detach a virtual usb device run:

sudo usbip detach -p 0

esp8266-wifi-cmsis-dap's People

Contributors

myelin avatar thevoidnn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.