Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.74 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.74 KB

My changes:

  • Demo of master branch directly hosted on github pages, so you can run it directly from here, you need to enable github pages on the root folder if you fork this repository
  • Simplified the demo to only connect, display memory and flash
  • Added support for AT32F403RCT6 chip from Artery which is a faster clone of STM32F103RCT6

To do:

  • Flashing sometimes fails, but succeeds the next time, check the latest fixes in pystlink
  • Test if unlock also works on various chips
  • Should we be able to set option bytes ? It can be a problem on GD32 chips because of the hardware watchdog (see Openocd comments)
  • How to keep eeprom emulation data unchanged when flashing ? (eg. erase only before 0x08010000 ? )

webstlink

webstlink is a port of pystlink, using the WebUSB API as a backend to control ST-Link/V2 and ST-Link/V2-1 debug probes from the browser.

Check out the live demo online

Tested features

  • Reading registers
  • Reading memory
  • Halt/step/run/reset
  • Erasing/writing flash (tested on STM32F103 only)

Dependencies

webstlink depends on WebUSB and many ES6 features. For best results, test with Chrome 61 or newer.

Local testing

You can test locally with any webserver. For a one-liner, run:

python -m SimpleHTTPServer

and navigate to http://localhost:8000/demo/

Licensing

webstlink is available under the terms of the MIT license, the same as the pystlink project.