1. 首先要有一个RVDdebugger
  2. 插上电脑的USB后(本文使用Windows10环境),zadig将JTAG Debugger(Interface 0)更换为WinUSB,参考官方文档http://bouffalolab.gitee.io/bl_mcu_sdk/get_started/get_started.html
  3. 但是部分电脑可能会出现JTAG Debugger(Interface 1)对应的虚拟串口不能识别(例如我的伞兵电脑)
    此时需要下载 FTDI 官网 的驱动,安装成功后就会这样
    这时仍然看不到虚拟串口,一度想要remake。其实可以右键成功安装FTDI驱动后显示的USB Serial Converter B,属性-高级,勾选加载VCP
    重新插拔RVDdebugger后就会看到虚拟串口辣

设备管理器中看到上面这种情况就可以认为RVDdebugger驱动安装成功了。

    4.然后我们要从官网下载BLDevCube 烧录工具https://dev.bouffalolab.com/download

    5.直接解压缩,运行BLDevCube.exe
    6.左上角File-Open Tool Folder点进文件夹chips/bl702/eflash_loader
    记事本打开eflash_loader_cfg.ini好eflash_loader_cfg.conf,将第七行修改为openocd_config = rv_dbg_plus
    7.BLDevCube的interface选择Openocd,
    8.填好烧录bin文件
    如何编译产生bin文件参考官方文档http://bouffalolab.gitee.io/bl_mcu_sdk/get_started/Linux_quick_start_ubuntu.html
    9.点击Create&Program,等待大功告成(没有成功可以多试几次)。

      10.附上成功运行的hello world,直接使用RVDebugger的虚拟串口,波特率2M。![
      ](https://)
      亲测用stlink v3自带的虚拟串口也行,但是CH340会蚌。

      Awesome result! I am looking for way to use 2 RV plus debugger boards. One to run mcu examples like above and another one to debug it. Since the debugger is BL702 based, it should be possible.

      zxdome

      In BL70x series chips, the default JTAG gpio is GPIO0->TMS, GPIO1->TDI, GPIO2->TCK, GPIO9->TDO;
      we can know this by the BL706 AVB schematic of the competition board.

      https://github.com/sipeed/RV-Debugger-BL702
      https://github.com/sipeed/RV-Debugger-BL702/blob/main/hardware/BL702_USB2JTAG_3610_sch.pdf

      Through the sipeed/RV-Debugger-BL702 open source repository on GitHub we can get the schematic of the RV-debugger Plus and we can see that GPIO9 is used to drive the DS2 LED; so if you want to debug another RV-debugger plus with one RV-debugger plus, then you need to pin GPIO9 out and use it separately.

      Next you need to press and hold the boot button of the target and then connect the power, at this time GPIO0, 1, 2, 9, will default to JTAG mode, so you can debug it. Just like the following picture, have fun!

      9 days later

      Thank you! I will definitely give it a try.

        2 months later

        qqwang Use this method can debug another RV-debugger as a BL702 competition board,but not every GPIO is expanded.It may more realistic to change RV-debugger for CMSIS DAP or other debuggers,and actually have developer do that and push project to github.

          Write a Reply...
          @ 2025 Bouffalo Lab (Nanjing) Co., Ltd. All rights reserved.