Build, Flash, Monitor¶
This page summarizes the daily SiFli-SDK loop: activate the environment, build with scons, flash the board, and watch logs.
Activate the SDK¶
Run the SDK export script in every new terminal before building:
The install script prepares compilers, Python packages, and debugger/download dependencies. The export script makes those tools visible in the current shell.
Build¶
From an example project directory:
Use a lower or higher -j value depending on your host machine. Output goes into a board-specific build directory.
Clean Rebuilds¶
Use a clean rebuild when switching boards, changing major configuration, or chasing a suspicious build artifact. Keep the exact clean command used by the SDK or project in your project notes. If no project-specific clean command is documented, rebuild from a fresh checkout before filing a toolchain issue.
Flash¶
The first-run path uses the UART download script produced by the build:
OpenSiFli also publishes sftool, a standalone download tool used by Zephyr and ArduinoCore-zephyr flows. Add sftool to your toolbox when you need a consistent flashing path outside an SDK-generated script.
Monitor¶
Use the serial terminal configured for the board and example. The serial log should show boot output, RT-Thread startup messages, application prints, or a shell prompt.
Keep a note of:
- Board name.
- Serial port.
- Baud rate.
- Build command.
- Flash command.
- SDK branch or release.
Daily Developer Loop¶
| Step | Goal |
|---|---|
| Activate | Load the SDK environment into the current terminal. |
| Configure | Select board and feature options. |
| Build | Produce board-specific binaries. |
| Flash | Put the image on hardware. |
| Monitor | Confirm boot and application behavior. |
| Record | Save command/log details for repeatability. |
Troubleshooting¶
| Symptom | Check |
|---|---|
| Build tool not found | Re-run export.sh / export.bat in the current terminal. |
| Board name unknown | Check the SDK supported-boards documentation. |
| Download script cannot open port | Close serial terminals and verify the USB-to-UART cable/connector. |
| Flash does not start | Reset or power-cycle the board before starting the download. |
| Serial output is unreadable | Check baud rate and use the data UART, not a charge-only cable. |
Handoff Checklist¶
Before handing a project to another developer, include:
- SDK branch or commit.
- Board name.
- Setup/install notes.
- Build command.
- Flash command.
- Monitor settings.
- Expected first log lines.
- Recovery command.
SiFli Team Should Add¶
- Official
sftoolinstall and command examples for each dev kit. - A table of default console baud rates by board.
- Download-mode button timing for every board.
- Common
uart_downloadandsftoolerror messages with fixes.
Auto-generated content
This page was compiled/drafted without an existing source document. Verify technical claims against SiFli's official documentation before relying on them.