pxt-calliope icon indicating copy to clipboard operation
pxt-calliope copied to clipboard

WebUSB for Segger devices

Open Amerlander opened this issue 1 year ago • 1 comments

Calliope mini 2 is based on J-Link by segger instead of CMSIS-DAP.

The current implementation of WebUSB in pxt only supports dapjs and therefore webUSB is not working in MakeCode for the Calliope mini 2.

We tryed to implement J-Link WebUSB, but it seems like the interfaces are hard coded somewhere in pxt and it is not possible to do this only in the pxt-calliope target.

image

@jwunderl could you help us to figgure out if and how J-Link webUSB could be implemented into pxt and our pxt target, to support the webUSB capabilitys of the Calliope mini 2?


Sample implementation of J-Link webUSB: https://www.segger.com/jlink_webusb_update_target_firmware.html

Implementation of WebUSB API: https://www.segger.com/seggerbulk.js https://www.segger.com/programming.js

Amerlander avatar Nov 08 '23 19:11 Amerlander