diff --git a/README.md b/README.md index 9de7734f..b6155698 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,10 @@ make CHIP=bl808 BOARD=bl808dk CPU_ID=m0 TODO +## Debug + +Only supports debug with CKLink currently. See [bl mcu sdk debug chapter](https://bl-mcu-sdk.readthedocs.io/zh_CN/latest/get_started/debug.html)。 + # Resources ## Chip Manual diff --git a/README_zh.md b/README_zh.md index 9b19806c..5b545899 100644 --- a/README_zh.md +++ b/README_zh.md @@ -139,6 +139,10 @@ make CHIP=bl808 BOARD=bl808dk CPU_ID=m0 TODO +## 调试 + +当前仅支持使用 CKLink 调试。详细参考 [bl mcu sdk 调试章节](https://bl-mcu-sdk.readthedocs.io/zh_CN/latest/get_started/debug.html)。 + # 芯片手册 芯片数据手册和参考手册见 [文档](https://dev.bouffalolab.com/document)。 diff --git a/docs/source/api_reference/utils/libc.rst b/docs/source/api_reference/utils/libc.rst index 7f5579a7..10ef51ce 100644 --- a/docs/source/api_reference/utils/libc.rst +++ b/docs/source/api_reference/utils/libc.rst @@ -5,7 +5,7 @@ LIBC ------------ - LIBC 中实现了一个vsnprintf,用以避开使用完整的c库,减少代码体积。 -.. note:: LIBC 中浮点打印只能最大支持到11位小数精度 +.. note:: LIBC 中浮点打印只能最大支持到7位小数精度 配置LIBC相关功能 ------------ diff --git a/docs/source/get_started/debug.rst b/docs/source/get_started/debug.rst index 11980411..29ddbef4 100644 --- a/docs/source/get_started/debug.rst +++ b/docs/source/get_started/debug.rst @@ -5,6 +5,39 @@ 本节主要介绍如何使用调试器进行代码的调试。 +芯片默认 JTAG PIN 列表 +------------------------------------------- + +.. list-table:: + :widths: 10 10 10 10 10 + :header-rows: 1 + + * - CHIP/Pin + - BL602/BL604 + - BL702/BL704/BL706 + - BL616/BL618 + - BL808 + * - TMS + - GPIO12 + - GPIO0 + - GPIO0 + - GPIO6 + * - TCK + - GPIO14 + - GPIO2 + - GPIO1 + - GPIO12 + * - TDO + - GPIO11 + - GPIO9 + - GPIO2 + - GPIO7 + * - TDI + - GPIO17 + - GPIO1 + - GPIO3 + - GPIO13 + 使用 CKLink + Eclipse 调试代码 ------------------------------------------- diff --git a/tools/cklink_firmware/README.md b/tools/cklink_firmware/README.md index 7e3eae09..d05895b2 100644 --- a/tools/cklink_firmware/README.md +++ b/tools/cklink_firmware/README.md @@ -30,4 +30,13 @@ CKLink driver version must be higher than 5.16.0. Download link is here. ## Debug with Eclipse -See [BL_MCU_SDK DOC](https://bl-mcu-sdk.readthedocs.io/zh_CN/latest/get_started/debug.html) \ No newline at end of file +See [BL_MCU_SDK DOC](https://bl-mcu-sdk.readthedocs.io/zh_CN/latest/get_started/debug.html) + +## Default JTAG Pin + +| CHIP/Pin | BL602/BL604 | BL702/BL704/BL706 | BL616/BL618 | BL808 | +|:-------------:|:-------------:|:------------------:|:-----------:|:--------:| +|TMS | GPIO12 | GPIO0 | GPIO0 | GPIO6 | +|TCK | GPIO14 | GPIO2 | GPIO1 | GPIO12 | +|TDO | GPIO11 | GPIO9 | GPIO2 | GPIO7 | +|TDI | GPIO17 | GPIO1 | GPIO3 | GPIO13 |