Debug Tool Ozone

SiFli Official Ozone Documentation

Software Preparation

After downloading, double-click to install

1. Software Configuration

After the software is installed, some configuration is still required

1. Ozone Configuration

1.1 JLinkDevices.xml File

Replace the JLinkDevices.xml file under Ozone with the one from SiFli-SDK\main\tools\flash\jlink_drv, as shown below:

1.2 SiFli Directory

  • Create a SiFli folder in the Device directory of Ozone
  • Copy the SF32LB52X_*.elf files from the SiFli-SDK\main\tools\flash\jlink_drv directory to the SiFli directory

1.3 Peripherals Directory

  • Copy the contents of the SiFli-SDK\main\tools\svd_external directory to Ozone/Config/Peripherals

1.4 RtThreadOSPlugin.js File

  • Copy the RtThreadOSPlugin.js file from SiFli-SDK\main\tools\segger to Ozone\Plugins\OS

2. JLINK Configuration

Jlink Configuration Reference

2.1 SiFli Directory

  • Create a SiFli directory under Jlink\Devices
  • Copy the required files from the SiFli-SDK\main\tools\flash\jlink_drv directory to this directory

2.2 JLinkDevices.xml File

  • Replace the file with the same name under jlink using the one from SiFli-SDK\main\tools\flash\jlink_drv

2. Starting Connection

1. Connect UsartServer

Select the corresponding serial port and click Connect. The small light on the right turns green when the connection is successful.

2. Connect Jlink

  • Open Jlink.exe, select IP as the connect method, and enter the SERVER in the Identifier field.
  • After success, the small light on the left will turn on.

3. Connect the Development Board

  • Enter the connect command in Jlink, then enter ? to select the development board.

  • Select SWD
  • Select the default speed
  • After successful connection, the display is as follows

4. Connect Ozone

  • Open Ozone.exe

  • Select SWD and IP, and enter the SERVER

  • Select the .elf or .axf file from the project downloaded on the development board

  • Click Start

  • The following display indicates that debugging can begin

5. Thread View

  • Enter Project.SetOSPlugin("RtThreadOSPlugin"); to open the thread window

1 Like