How to debug - renesas/micropython GitHub Wiki

Debug of MicroPython executable file for RA

  1. For debugging on Windows 10, download and install Renesas Flexible Software Package.

  2. After installing the FSP, start "e2 studio" of Renesas RA v3.5.0 in start menu.

  3. Input workspace, for example, c:\e2ws_ra.

  4. Choose the menu File -> New -> Renesas C/C++ Project -> Renesas Debug.

  5. Choose "Renesas Debug Only Project" in New C/C++ Project window. image

  6. Enter project name, for example ra6m2_ek_mpy, in Debug Only window, then click Next. image

  7. In the next window, choose and input following items, then click Finish.

    Items Input
    Debug Hardware Select "J-Link ARM" for Hardware
    Target Device Specify "Target Device name" by referring below table.
    Endian Little
    Device Executable Specify "firmware.elf" built by how to build section.
    DEBUG=1 must be specified when build.
    BOARD Target Device
    RA4M1 Clicker R7FA4M1AB
    EK-RA6M2 R7FA6M2AF
    EK-RA4M1 R7FA4M1AB
    EK-RA6M1 R7FA6M1AD
    EK-RA4W1 R7FA4W1AD2CNG

    Input example: MicrpPython debug for EK-RA6M2 board:

    image

  8. After connection of board with PC, click "Launch in Debug mode" icon. You can debug MicroPython executable.

    image

⚠️ **GitHub.com Fallback** ⚠️