Debug

[中文]

  1. Hardware Debugger Connection

andes

andes

Debugger connection instructions for bk7235m:

7# VTref  ---- 3.3V
4# TMS    ---- RX
6# TCK    ---- TX
3# GND    ---- GND
  1. Driver Installation

    Driver Location: arminoToolChain/ice/libusb-AICE-driver/Install_driver.exe

    After double-clicking to install the driver, you should see the driver program in Device Manager:

driver

driver

  1. Setting DEBUG Mode in Software

    Modifyarmino_main.c:

    #if (CONFIG_DEBUG_FIRMWARE)
     //Setting debug mode
     //First parameter: 0 for CPU0, 1 for CPU1
     //Second parameter: 0 for group1, 1 for group2
     bk_set_jtag_mode(0,1);  s
     //Stop heartbeat, required for debugging CPU1
     bk_heartbeat_stop();
    #endif
    

Note: When debug mode is enabled, Uart2 is not available

  1. Build and Download.

  2. Click on the toolbar Debug , select the .elf file you want to debug, and you can start debugging.

debug_1

debug_1