Skip to content

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

Open
@fabio-ric-silva

Description

@fabio-ric-silva

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;

Activity

changed the title [-]DAPlink with LPC11U35 (Fastening the writing process).[/-] [+]DAPlink with LPC11U35 (speeding up the writing process).[/+] on Nov 22, 2024
mathias-arm

mathias-arm commented on Dec 5, 2024

@mathias-arm
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

fabio-ric-silva commented on Dec 6, 2024

@fabio-ric-silva
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

mathias-arm commented on Dec 6, 2024

@mathias-arm
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mathias-arm@fabio-ric-silva

        Issue actions

          DAPlink with LPC11U35 (speeding up the writing process). · Issue #1085 · ARMmbed/DAPLink