- 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
STM8 汇编主程序实验工程
本工程是正式 C 主程序的并行汇编实现,当前只验证最小启动链路:
- 应用向量表从
0x8500开始; - Bootloader 能够跳转到应用复位入口;
- TIM4 中断能够从 Bootloader 的固定向量转发到应用程序;
- PB5 运行灯每约500ms反转一次。
应用启动后将 CLK_CKDIVR 配置为 HSI/1,主频为16MHz;TIM4和UART1参数均按16MHz计算。
当前不包含蓝牙、UART、ADC、继电器和OTA功能。后续每增加一个模块,都应先独立编译并与Bootloader合并后再进行实物验证。
构建
make
输出文件:build/stm8_app_asm.hex。