教程¶
This section provides step-by-step tutorials to help you learn the Nexus platform through practical examples.
Tutorial Contents
Learning Path¶
If you're new to Nexus, follow these tutorials in order:
Beginner Tutorials (Weeks 1-2)¶
您的第一个 Nexus 应用程序 - Build your first Nexus application from scratch
GPIO Control 教程 - Learn GPIO control and LED operations
UART Communication 教程 - Add serial communication to your application
使用 OSAL 的多任务 - Create multi-task applications using OSAL
Intermediate Tutorials (Weeks 3-4)¶
中断处理教程 - Master interrupt handling and event-driven programming
定时器和 PWM 教程 - Timer and PWM control (LED dimming, servos, motors)
SPI 通信教程 - SPI communication and peripheral control
Advanced Tutorials (Weeks 5-6)¶
I2C Sensor Integration - Read sensor data using I2C protocol
ADC Sampling and Signal Processing - Analog signal acquisition and processing
DMA Transfers - Efficient data transfer techniques
Multi-task Synchronization - Advanced OSAL synchronization mechanisms
State Machine Design - Build robust state machine applications
Project Tutorials (Weeks 7-8)¶
Weather Station Project - Complete system integrating multiple sensors
Data Logger - Data acquisition and storage system
Motor Control System - Closed-loop motor control
IoT Device - Smart device connected to cloud platforms
Each tutorial builds on concepts from previous ones, so we recommend following them in order.
前置条件¶
Before starting these tutorials, ensure you have:
Completed the Environment Setup guide
A supported development board (STM32F4 Discovery recommended)
Basic knowledge of C programming
Familiarity with embedded systems concepts
Learning Stages¶
Stage 1: Fundamentals (1-2 weeks)¶
Complete beginner tutorials 1-4
Understand HAL and OSAL basic concepts
Able to create simple applications
Stage 2: Intermediate Skills (2-3 weeks)¶
Complete intermediate tutorials
Master interrupt and event-driven programming
Understand peripheral communication protocols
Stage 3: Advanced Applications (3-4 weeks)¶
Study advanced tutorials
Implement complex multi-task systems
Optimize performance and power consumption
Stage 4: Real Projects (4+ weeks)¶
Complete project tutorials
Build complete embedded systems
Apply best practices
Additional Resources¶
硬件抽象层 (HAL) - HAL API Reference
操作系统抽象层 (OSAL) - OSAL API Reference
配置管理器 - Configuration Management
Shell 框架 - Shell/CLI Framework
测试 - Testing Your Application
Example Applications¶
See 示例 Applications for complete example applications, including:
blinky - Basic GPIO control
config_demo - Configuration management demonstration
freertos_demo - Multi-task OSAL demonstration
shell_demo - Command-line interface demonstration
Getting Help¶
If you encounter issues:
Check Frequently Asked Questions for common questions
Review Debugging Guide debugging guide
Consult platform-specific documentation
Examine example code
Ask on GitHub Discussions
Next Steps¶
After completing tutorials:
Explore User Guide for in-depth documentation
Review 平台 Guides for platform-specific features
Check API 参考 for complete API reference
Join the community and share your projects!