From 5d1f9e84a21c94d1623470c515e594ded9f47a12 Mon Sep 17 00:00:00 2001 From: Carlos Pereira Atencio Date: Thu, 13 Feb 2025 12:10:20 +0000 Subject: [PATCH] kl27z: Increase DAP_PACKET_COUNT to 8. This is to match the same DAP queue length for micro:bit V2.00, to the same length as configured in V2.2x. --- source/board/kl27z_bl.c | 2 +- source/board/kl27z_microbit_bl.c | 2 +- source/hic_hal/freescale/kl27z/DAP_config.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/board/kl27z_bl.c b/source/board/kl27z_bl.c index 29f2522e54..e7ea855adf 100644 --- a/source/board/kl27z_bl.c +++ b/source/board/kl27z_bl.c @@ -40,7 +40,7 @@ static const sector_info_t sectors_info[] = { {DAPLINK_ROM_IF_START, 1024}, }; -// kl26z128 target information +// kl27z target information target_cfg_t target_device = { .version = kTargetConfigVersion, .sectors_info = sectors_info, diff --git a/source/board/kl27z_microbit_bl.c b/source/board/kl27z_microbit_bl.c index 15e36eb0cc..9cd05c213b 100644 --- a/source/board/kl27z_microbit_bl.c +++ b/source/board/kl27z_microbit_bl.c @@ -43,7 +43,7 @@ static const sector_info_t sectors_info[] = { {DAPLINK_ROM_IF_START, 1024}, }; -// kl26z128 target information +// kl27z target information target_cfg_t target_device = { .version = kTargetConfigVersion, .sectors_info = sectors_info, diff --git a/source/hic_hal/freescale/kl27z/DAP_config.h b/source/hic_hal/freescale/kl27z/DAP_config.h index e172f48e26..9129cefc47 100644 --- a/source/hic_hal/freescale/kl27z/DAP_config.h +++ b/source/hic_hal/freescale/kl27z/DAP_config.h @@ -95,7 +95,7 @@ This information includes: /// This configuration settings is used to optimize the communication performance with the /// debugger and depends on the USB peripheral. For devices with limited RAM or USB buffer the /// setting can be reduced (valid range is 1 .. 255). Change setting to 4 for High-Speed USB. -#define DAP_PACKET_COUNT 5 ///< Buffers: 64 = Full-Speed, 4 = High-Speed. +#define DAP_PACKET_COUNT 8 ///< Buffers: 64 = Full-Speed, 4 = High-Speed. /// Indicate that UART Serial Wire Output (SWO) trace is available. /// This information is returned by the command \ref DAP_Info as part of Capabilities.