devanlai / dap42

CMSIS-DAP debugger firmware for STM32F042Fx and STM32F103xx
Other
192 stars 70 forks source link

Compile dap42 for bulk transfer? #14

Open UweBonnes opened 3 years ago

UweBonnes commented 3 years ago

Hello,

readme.md tells "Bulk endpoints for higher throughput" but make compiles a HID probe. Is it possible to compile dap42 for bulk transfer?

Thanks

devanlai commented 3 years ago

Hi @UweBonnes, you might be looking under the "planned features" section, which would basically be updating it to CMSIS-DAP 2.0. I've considered updating the firmware since CMSIS-DAP 2.0 is more broadly supported in tools like openocd than before, but there are quite a few other open source debug probe firmware projects that have sprung up since I first cobbled together dap42.

fanoush commented 2 years ago

there are quite a few other open source debug probe firmware projects that have sprung up since I first cobbled together dap42.

Hi, can you suggest one that can be compiled with gcc and works same/better?

BTW I am quite happy with your code. It was easy to modify the bluepill config to use usb to uart over B6/B7 pins. Those pins are used as RST/SWIM pins on those cheap STLINK V2 clone dongles available for $3-4 on aliexpress so I made few of those into CMSIS-DAP with serial console, thank you :-) There are other CMSIS-DAP projects but they often need KEIL to build.

devanlai commented 2 years ago

Hi @fanoush, I'm glad you've been successful in modifying it to your needs. Supporting STLink/v2 clones is something I started doing very early on in the project.

There are some promising projects in Rust like hs-probe-firmware, though that targets higher-end hardware. Keil recently released a community edition with no size limitations that may be suitable for building projects like DAPLink.

majbthrd's new incarnation of the DapperMime project looks quite clean and modern (the original PIC version of DapperMime was the inspiration for dap42). It focuses on the RP2040 as the probe MCU, but there is a basic STM32F072 configuration and it looks like it would be easy to extend.

dmsc commented 1 year ago

Now that we have CMSIS-DAP 2.0 merged, it would be possible to implement bulk transport.