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

DAPlink with LPC11U35 (speeding up the writing process). #1085

Open
fabio-ric-silva opened this issue Nov 21, 2024 · 3 comments
Open

DAPlink with LPC11U35 (speeding up the writing process). #1085

fabio-ric-silva opened this issue Nov 21, 2024 · 3 comments

Comments

@fabio-ric-silva
Copy link

Someone here has this kind of interface with LPC11U35 and was able for fastening the programming process?

I have been studying how to implement such modification, but having no success!

Could, someone helping me with it!

The idea is using just as writing interfacing for pyocd project!

Sincerely;

@fabio-ric-silva fabio-ric-silva changed the title DAPlink with LPC11U35 (Fastening the writing process). DAPlink with LPC11U35 (speeding up the writing process). Nov 22, 2024
@mathias-arm
Copy link
Collaborator

If you want to speed up programming with lpc11u35, you should use or create a DAPLink project that support drag-n-drop flashing for your target. This is what give the best performance.

There are two options HIC options for DAP transfers with lpc11u35: module_hic_lpc11u35 which uses HID and module_hic_lpc11u35_bulk which uses bulk. It's not possible to have both at the same time as CDC and MSC because of the limited number of endpoints. The lpc11u35_if uses bulk (module_hic_lpc11u35_bulk) for DAP and in my tests works with PyOCD.

If you want to support CMSIS-DAPv2 (bulk) with lpc11u35 with another project (e.g. lpc11u35_pitaya_link_if) you should be able to replace module_hic_lpc11u35 with module_hic_lpc11u35_bulk for the project.

@fabio-ric-silva
Copy link
Author

If you want to speed up programming with lpc11u35, you should use or create a DAPLink project that support drag-n-drop flashing for your target. This is what give the best performance.

There are two options HIC options for DAP transfers with lpc11u35: module_hic_lpc11u35 which uses HID and module_hic_lpc11u35_bulk which uses bulk. It's not possible to have both at the same time as CDC and MSC because of the limited number of endpoints. The lpc11u35_if uses bulk (module_hic_lpc11u35_bulk) for DAP and in my tests works with PyOCD.

If you want to support CMSIS-DAPv2 (bulk) with lpc11u35 with another project (e.g. lpc11u35_pitaya_link_if) you should be able to replace module_hic_lpc11u35 with module_hic_lpc11u35_bulk for the project.

Mathias, actually, I just need the CMSIS-DAP running on bulk, and being recognized by the PYOcd! There is no need of the others interfaces! I have made a test, take off all the interfaces, keeping just the CMSIS-DAP, ant taking off the HID, CDC, WEB. Even though the PYOcd couldn't recognize the CMSIS-DAP in bulk mode!

@mathias-arm
Copy link
Collaborator

The lpc11u35_if uses bulk (module_hic_lpc11u35_bulk) for DAP and in my tests works with PyOCD.
Test the lpc11u35_if project without modifying it. It does use bulk mode, but it is not guaranteed to be that much faster than HID if PyOCD cannot leverage the larger packet size.

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

2 participants