ARMmbed / dapjs

JavaScript interface to CMSIS-DAP
https://armmbed.github.io/dapjs
MIT License
108 stars 46 forks source link

DAPLink Flash Demo not working properly with Daplink Firmware with Interface Version 0256 #99

Open farabitarhan opened 2 years ago

farabitarhan commented 2 years ago

Hello,

DAPLink Flash demo is not working for my case and gives: NetworkError: A transfer error has occurred. I am using MAX32666FTHR2 with the daplink v0256. The other demos such as Read Registers is not giving any response as well.

You will find the daplink details below as well. I can upload my application firmware with drag-n-drop on Windows.

I would appreciate it if you can recommend me things to check. Thanks.

Details: This is the PR that my Daplink Firmware was build upon, dated back to 20 October 2021. https://github.com/ARMmbed/DAPLink/pull/879

I am using the demo page given here: https://armmbed.github.io/dapjs/examples/daplink-flash/web.html

"Select Device" finds the connected device properly: image

Failed message: image

Content of DETAILS.TXT of Daplink Drive:

# DAPLink Firmware - see https://mbed.com/daplink
Unique ID: 04221702b2e3031a00000000000000000000000097969906
HIC ID: 97969906
Auto Reset: 1
Automation allowed: 1
Overflow detection: 1
Incompatible image detection: 0
Page erasing: 1
Daplink Mode: Interface
Interface Version: 0256
Git SHA: 34fe95d79afeba62ef097774ecc609ef8c2b74ea
Local Mods: 1
USB Interfaces: MSD, CDC, HID, WebUSB
Interface CRC: 0x3a50e864
Remount count: 0
URL: http://www.maximintegrated.com/max32666fthr
thegecko commented 2 years ago

Just tested this still works as expected with DAPLink v0254 (on a K64F) and all is well.

This repo has not changed functionally in a long time, so I suspect it's a problem with the newer DAPLink firmware.

@flit @mathias-arm can you investigate recent changes haven't affected WebUSB access?

farabitarhan commented 2 years ago

Hello,

@flit @mathias-arm I wonder if you had a chance to look into this?

Regards, Farabi

doguhanciftci commented 1 year ago

Any updates on this issue?