feat: complete assembly mesh relay control path

- synchronize STM8 application and external flash layout updates\n- add assembly bootloader and assembly application test projects\n- add UART1 interrupt receive ring buffer\n- parse JDY-28M Mesh outer frames and source addresses\n- add CRC-16/MODBUS validation\n- implement relay control command 0x01 and response 0x81\n- support unicast and broadcast relay control frames\n- update host protocol, OTA documents, and serial tools
This commit is contained in:
十七
2026-11-05 16:12:51 +08:00
parent df1aad3d16
commit ebef6a8694
40 changed files with 2133 additions and 307 deletions
+20
View File
@@ -0,0 +1,20 @@
# STM8 汇编主程序实验工程
本工程是正式 C 主程序的并行汇编实现,当前只验证最小启动链路:
1. 应用向量表从 `0x8500` 开始;
2. Bootloader 能够跳转到应用复位入口;
3. TIM4 中断能够从 Bootloader 的固定向量转发到应用程序;
4. PB5 运行灯每约500ms反转一次。
应用启动后将 `CLK_CKDIVR` 配置为 HSI/1,主频为16MHz;TIM4和UART1参数均按16MHz计算。
当前不包含蓝牙、UART、ADC、继电器和OTA功能。后续每增加一个模块,都应先独立编译并与Bootloader合并后再进行实物验证。
## 构建
```sh
make
```
输出文件:`build/stm8_app_asm.hex`。