Skip to content

Javascript library to control ST-Link debuggers from the browser

License

Notifications You must be signed in to change notification settings

Candas1/webstlink

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Javascript library to control ST-Link debuggers from the browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.5%
  • CSS 2.3%
  • HTML 2.2%