{"id":26064005,"url":"https://github.com/cherry-embedded/cherrydap","last_synced_at":"2025-04-12T22:37:19.769Z","repository":{"id":176615585,"uuid":"658371499","full_name":"cherry-embedded/CherryDAP","owner":"cherry-embedded","description":"CherryDAP is a DAPLink template based on CherryUSB and ARMmbed DAPLink.","archived":false,"fork":false,"pushed_at":"2025-04-03T13:53:06.000Z","size":22543,"stargazers_count":189,"open_issues_count":3,"forks_count":64,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-05T21:04:41.413Z","etag":null,"topics":["cherryusb","cmsis-dap","daplink"],"latest_commit_sha":null,"homepage":"https://cherrydap.cherry-embedded.org/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cherry-embedded.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-25T14:53:25.000Z","updated_at":"2025-04-03T13:52:39.000Z","dependencies_parsed_at":"2023-11-12T06:26:19.974Z","dependency_job_id":"cef5bfde-e390-40c4-9409-38f2a24a1e91","html_url":"https://github.com/cherry-embedded/CherryDAP","commit_stats":null,"previous_names":["cherry-embedded/cherrydap"],"tags_count":7,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherry-embedded%2FCherryDAP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherry-embedded%2FCherryDAP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherry-embedded%2FCherryDAP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherry-embedded%2FCherryDAP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cherry-embedded","download_url":"https://codeload.github.com/cherry-embedded/CherryDAP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643007,"owners_count":21138353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cherryusb","cmsis-dap","daplink"],"created_at":"2025-03-08T17:57:53.248Z","updated_at":"2025-04-12T22:37:19.745Z","avatar_url":"https://github.com/cherry-embedded.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CherryDAP\n\nCherryDAP is a DAPLink template based on [CherryUSB](https://github.com/sakumisu/CherryUSB) and [ARMmbed DAPLink](https://github.com/ARMmbed/DAPLink).\n\n# Feature\n\n- CMSIS DAP version 2.1\n- Support SWD + JTAG\n- Support USB2UART\n\n![cherrydap1](./assets/cherrydap1.png)\n![cherrydap2](./assets/cherrydap2.png)\n![ses_debug_hpm](./assets/ses_debug_hpm.png)\n# Projects\n\n## BL616\n\n- USB High speed\n- UART with cycle dma(no packet will be lost), so the baudrate can reach 40Mbps\n\n| Function | Label | GPIO |\n|:--------:|:-----:|:----:|\n| JTAG_TCK | IO10 | 10 |\n| JTAG_TMS | IO12 | 12 |\n| JTAG_TDI | IO14  | 14 |\n| JTAG_TDO | IO16  | 16 |\n| SWD_SWCLK | IO10 | 10 |\n| SWD_SWDIO | IO12 | 12 |\n| UART TX | IO11 | 11 |\n| UART RX | IO13 | 13 |\n| nRESET | IO17 | 17 |\n\n![m0sdock](./assets/m0sdock.png)\n![m0sdock2](./assets/m0sdock2.png)\n\nBefore compilation, assure you have latest `bouffalo_sdk` version.\n\nYou can compile with:\n\n```\ncd projects/bl616\n\nmake BL_SDK_BASE=\u003cpwd of bouffalo_sdk prefix\u003e/bouffalo_sdk CROSS_COMPILE=\u003cpwd of toolchain prefix\u003e/toolchain_gcc_t-head_linux/bin/riscv64-unknown-elf-\n```\n\nYou can then flash it with:\n\n```\ncd projects/bl616\n\nmake BL_SDK_BASE=\u003cpwd of bouffalo_sdk prefix\u003e/bouffalo_sdk CROSS_COMPILE=\u003cpwd of toolchain prefix\u003e/toolchain_gcc_t-head_linux/bin/riscv64-unknown-elf- CHIP=bl616 COMX=\u003cbl616 com port\u003e\n```\n\n## HPM5301EVKlite\n![hpm5301evklite](./assets/hpm5301evklite.png)\n\n- USB High speed\n- Support UART, use DMA(@[**RCSN** ](https://github.com/RCSN))\n- The 20PJTAG socket of the J5 interface is used by default. \n- support  JTAG (@[**RCSN** ](https://github.com/RCSN))\n- support SWD (@[**Aladdin-Wang**](https://github.com/Aladdin-Wang))\n- for example, use hpm5301evklite debug hpm5300evk\n\n![debug_5300evk](./assets/debug_5300evk.png)\n\n- Use uart3 as usb2uart\n\n![53uart](./assets/53uart.png)\n\n\n- build\n\n\n1、 sdk version must be greater than 1.3\n\n2、 download https://github.com/hpmicro/sdk_env\n\n3、 if the sdk is not hpm5300evklite, you can download the pack unzip to sdk_env/hpm_sdk   https://github.com/hpmicro/hpm_sdk/releases/download/v1.3.0/hpm_sdk_v1.3.0_patch-hpm5301evklite.zip\n\n4、open sdk_env start_gui.exe on window\n\n![sdk_env](./assets/sdk_env.png)\n\n\n- download firmware\n\n- the firmware bin file path: ../bin/hpm5301_daplink.bin\n\n1、use hpm_manufacturing_tool  https://github.com/hpmicro/hpm_manufacturing_tool\n\n(1) baidu pan: https://pan.baidu.com/s/1RaYHOD7xk7fnotmgLpoAlA?pwd=xk2n \n提取码：xk2n 复制这段内容打开「百度网盘APP 即可获取」\n\n![hpm_acc_tools](./assets/hpm_acc_tools.png)\n\n\n(2) unzip, open hpm_manufacturing_gui.exe,\n\n(3) uart0 use usbttl module to connect tool, and press the SW1 and SW2 buttons simultaneously, then release SW1 (RESET), and then release SW2 (boot)\n\n![hpm_isp_uart](./assets/hpm_isp_uart.png)\n\n(4) connenct the tool and download firmware\n\n![hpm_download](./assets/hpm_download.png)\n\n\n2、use ses ide\n\n3、use gdb\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherry-embedded%2Fcherrydap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcherry-embedded%2Fcherrydap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherry-embedded%2Fcherrydap/lists"}