Closed ooxi closed 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.
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.
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
Read firmware from Xplained in Google Chrome on Windows
Known issues
/dev/hidrawX
, otherwise Google Chrome cannot access the HID device.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.