From 54d6095269a60cdcd3e0b15409b1bd2c7f4bacf8 Mon Sep 17 00:00:00 2001 From: sys64738 Date: Mon, 31 May 2021 12:51:07 +0200 Subject: [PATCH] oops --- README.md | 2 +- bsp/rp2040/DAP_config.h | 21 +++++++++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1be3b4a..d162202 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ The pin mapping is as follows: | GP9 | | nRESET | The UART pins are for connecting to the device to be debugged, the data is -echoed back over the USB CDC interface (typically a `/dev/ttyAMAx` device on +echoed back over the USB CDC interface (typically a `/dev/ttyACMx` device on Linux). In SWD mode, the pin mapping is entirely as with the standard Picoprobe setup, diff --git a/bsp/rp2040/DAP_config.h b/bsp/rp2040/DAP_config.h index e40ccdb..637a9ba 100644 --- a/bsp/rp2040/DAP_config.h +++ b/bsp/rp2040/DAP_config.h @@ -155,8 +155,11 @@ This information includes: \return String length. */ __STATIC_INLINE uint8_t DAP_GetVendorString (char *str) { - (void)str; - return (0U); + const static char vnd[] = "Raspberry Pi"; + for (size_t i = 0; i < sizeof(vnd); ++i) str[i] = vnd[i]; + return sizeof(vnd)-1; + //(void)str; + //return (0U); } /** Get Product ID string. @@ -164,8 +167,11 @@ __STATIC_INLINE uint8_t DAP_GetVendorString (char *str) { \return String length. */ __STATIC_INLINE uint8_t DAP_GetProductString (char *str) { - (void)str; - return (0U); + const static char prd[] = "RP2040 DapperMime-JTAG"; + for (size_t i = 0; i < sizeof(prd); ++i) str[i] = prd[i]; + return sizeof(prd)-1; + //(void)str; + //return (0U); } /** Get Serial Number string. @@ -173,8 +179,11 @@ __STATIC_INLINE uint8_t DAP_GetProductString (char *str) { \return String length. */ __STATIC_INLINE uint8_t DAP_GetSerNumString (char *str) { - (void)str; - return (0U); + const static char ser[] = "1337"; + for (size_t i = 0; i < sizeof(ser); ++i) str[i] = ser[i]; + return sizeof(ser)-1; + //(void)str; + //return (0U); } ///@}