ataradov / edbg

Simple utility for programming MCUs and FPGAs though CMSIS-DAP protocol. Works on Linux, MAC and Windows.
BSD 3-Clause "New" or "Revised" License
283 stars 93 forks source link

dbg_webhid #108

Closed ooxi closed 3 years ago

ooxi commented 3 years ago

Bootstrapped cross compiling edbg for the web using emscripten and WebHID. Tested in Google Chrome on Windows and Linux with both free-dap as well as Xplained boards. Should also work in Microsoft Edge. free-dap worked on both Linux and Windows, however Xplained only worked on Windows:

Select HID device

select-device

Read firmware from Xplained in Google Chrome on Windows

read-firmware

Known issues

This pull request is a preliminary request for comments. In my opinion it would be great if we could offer edbg functionality on the web.

ataradov commented 3 years ago

This is fun and all, but I see no real point to that. It just adds a lot of strange code that needs to be maintained. I'll pass on this until there are clear uses cases.

ooxi commented 3 years ago

Since the dbg.h interface is quite stable, I have no trouble carrying this patch myself :-) I have the usecase to distribute firmware updates to non technical people and sending them a link is much easier than shipping a binary because of anti virus software.