ARMmbed / DAPLink

https://daplink.io
Apache License 2.0
2.32k stars 979 forks source link

Why doesn't my DAPLink has a drag-n-drop download feature ? #717

Closed balanceTWK closed 4 years ago

balanceTWK commented 4 years ago

chip: stm32f103cbt6

I followed the official tutorial to generate the MDK project, which successfully turned my board into DAPLink, but there was no drag and drop download function, only webusb, virtual serial port.

balanceTWK commented 4 years ago

Is it because there aren't enough usb endpoints ? I don't really need WEBUSB . How do I cut it .

flit commented 4 years ago

You should also see the CMSIS-DAP interface(s).

Make sure you're using the right project. All so-called "no target" projects with the form <hic>_if do not have target support included and therefore do not enable USB MSC. Specifically the stm32f103xb_if project does not enable MSC. (Because without target support there is no way to program flash.) However, the projects with a target name like <hic>_<target>_if, such as stm32f103xb_stm32l476rg_if, do enable MSC.

Note that you can use tools/post_build_script.py to embed target support extracted from a CMSIS-Pack into a no-target build (.bin). However, there is basically no documentation yet and probably lots of bugs. (We'd happily accept contributions to improve this!)

Fyi, WebUSB doesn't use any endpoints; it operates over the control EP0.

cederom commented 4 years ago

Hey @balanceTWK this is new Target, the Drag-n-Drop may not yet be implemented, or it is build time either-or decision what to fit into the HIC chip that operates the DAPLink, you may want to double check that.

You can always use https://github.com/mbedmicro/pyOCD on any DAPLink that has CMSIS-DAP (as mentioned by @flit) interface that will allow you not only to faster flash the chip but also debug it :-)

Have fun! :-)

balanceTWK commented 4 years ago

Thank you very much for your reply. :-)