中文 | English
This repository is recommended to be used through the unirtos-cli demo workflow so project creation, environment setup, and compilation use the same versions of the SDK and QuecPython library.
This is the minimal integration and hardware-validation demo for unirtos-quecpython on EG800ZCN_LA.
- Pulls
unirtos-quecpython1.1.0throughenv_config.json; it does not copy QuecPython implementation source into the demo - Starts the runtime through the component's
.unirtos_app_initregistration - Provides UART7 REPL validation at 115200 baud after firmware download
- Leaves Python applications, peripheral samples, and production application logic to the user project
The demo deliberately does not create a second task or call into the MicroPython VM. A request to quecpython_exec_string() must be marshalled to the QuecPython runtime task before it is made; it is not a general-purpose cross-task execution API.
- EG800ZCN_LA module
- UniRTOS SDK
1.0.5 unirtos-cli1.0.20- A compatible
gccout.7zbase archive declaring OpenCPU0x90000, CUST0x48000, and LFS0x79000 - UART7 connected to a serial terminal for REPL validation
- Development Preparation
- Install the Cross-Compilation Toolchain
- Install Python 3, Git, and
unirtos-cli
python --version
git --version
unirtos-cli versionList available demos and versions:
unirtos-cli ls-demosCreate this demo project:
unirtos-cli new -r unirtos-quecpython-demos -v 1.0.0cd unirtos-quecpython-demos-1.0.0
unirtos-cli env-setup
unirtos-cli buildenv-setup obtains UniRTOS SDK 1.0.5 and unirtos-quecpython 1.1.0 as declared in env_config.json. The runtime is compiled and linked only for applications that declare the library.
To set the release firmware version explicitly, use:
unirtos-cli build -m EG800ZCN_LA -v <firmware-version>The output is located at:
qos_build/release/<firmware-version>/
The directory contains at_command.hbinpkg, ap_application.bin, customer_app2.bin, and FlashTool download configuration files.
Download the release package with the generated FlashTool configuration, then open UART7 at 115200 baud. Confirm that the prompt is interactive and run a small check such as:
import uos
print(uos.listdir('/'))The first hardware-validation pass should also cover _boot.py, LittleFS mount and script execution, legacy module imports, and the enabled GPIO/UART/I2C/SPI/Timer/RTC/WDT capabilities.
env_config.jsonis the single source of the board, SDK, and library dependency used by this demo.- Replacing
gccout.7zrequiresunirtos-cli cleanbefore the next build so the oldqos_build/gccoutextraction is not reused. customer_app2.binis supplied by the library and is packaged as the CUST image; do not manually copy it intoqos_tools.
# Refresh SDK and library dependencies
unirtos-cli env-setup
# Clean build output and extracted gccout cache
unirtos-cli clean
# Open the SDK menu configuration
unirtos-cli menuconfigTechnical Community: https://forumschinese.quectel.com/c/66-category/66
- Run
env-setup,build, andcleanbefore submitting a change. - Keep the demo's library version, SDK version, and board selection aligned with
env_config.json. - Do not copy QuecPython runtime sources or build output into this repository.
- Record the board and REPL validation result when changing runtime startup, flash layout, or firmware packaging.