Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebUSB for Segger devices #248

Open
Amerlander opened this issue Nov 8, 2023 · 1 comment
Open

WebUSB for Segger devices #248

Amerlander opened this issue Nov 8, 2023 · 1 comment

Comments

@Amerlander
Copy link
Collaborator

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
Copy link
Collaborator Author

https://github.com/microsoft/pxt/blob/9ef1988d50f506cdd757c9318ef18360ad264f9d/pxtlib/webusb.ts#L509

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant