发帖
0 0 0

Ai-WB2-32S开发板调试matter例子lighting-app

hdydy
论坛元老

53

主题

100

回帖

6515

积分

论坛元老

积分
6515
Ai-WB2系列 13 0 5 小时前

Windows中启动gdb server
https://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=46277

vs code打开WSL2中的目录connectedhomeip

third_party/bouffalolab/repo/tools/debug/602/602_gdb.init中注释掉target remote :3333

image.png

查看gdb server地址 cat /etc/resolv.conf

image.png

调试设置

        {
            "name": "bl602",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/out/bouffalolab-bl602dk-light-wifi-littlefs-shell/chip-bl602-lighting-example.out",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "miDebuggerPath": "${env:BOUFFALOLAB_SDK_ROOT}/toolchain/riscv/Linux/bin/riscv64-unknown-elf-gdb",
            "miDebuggerArgs": "-ex \"target remote 172.17.192.1:3333\" -x ${workspaceFolder}/third_party/bouffalolab/repo/tools/debug/602/602_gdb.init",
            "svdPath": "${workspaceFolder}/third_party/bouffalolab/repo/tools/debug/vsd/602.svd",
            "setupCommands": [
                {
                    "description": "为 gdb 启用整齐打印",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "将反汇编风格设置为 Intel",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                },
                {
                    "text": "mon reset halt",
                }
            ]
        },

image.png

gdb server地址按实际情况修改

──── 0人觉得很赞 ────

使用道具 举报

您需要登录后才可以回帖 立即登录
高级模式
返回
统计信息
  • 会员数: 28751 个
  • 话题数: 41027 篇