SiFli Official Ozone Documentation
Software Preparation
-
This document uses debugging SFLB52_NOR as an example
-
Ozone: Debugging software
-
JLINK: Connection tool
-
SifliUsartServer: When no SWD port is available, this tool can be used to connect to Jlink
- This tool is typically located in the SDK tools folder
SiFli-SDK\main\tools - Download: 软硬件工具汇总 - SiFli-Wiki v1.0 文档
- Software documentation: UsartServer - SiFli Solution Documents 文档
- This tool is typically located in the SDK tools folder
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.xmlfile under Ozone with the one fromSiFli-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_*.elffiles from theSiFli-SDK\main\tools\flash\jlink_drvdirectory to the SiFli directory
1.3 Peripherals Directory
- Copy the contents of the
SiFli-SDK\main\tools\svd_externaldirectory toOzone/Config/Peripherals
1.4 RtThreadOSPlugin.js File
- Copy the
RtThreadOSPlugin.jsfile fromSiFli-SDK\main\tools\seggertoOzone\Plugins\OS
2. JLINK Configuration
2.1 SiFli Directory
- Create a SiFli directory under
Jlink\Devices- Copy the required files from the
SiFli-SDK\main\tools\flash\jlink_drvdirectory 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
connectcommand 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























