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:
@@ -10,9 +10,9 @@
|
||||
/** Bootloader 在 STM8 程序 Flash 中的起始地址。 */
|
||||
#define BOOTLOADER_START_ADDRESS 0x8000u
|
||||
/** Bootloader 预留空间,当前规划为 1KB。 */
|
||||
#define BOOTLOADER_SIZE_BYTES 0x0800u
|
||||
#define BOOTLOADER_SIZE_BYTES 0x0500u
|
||||
/** 应用程序固定入口地址,必须与应用工程链接地址一致。 */
|
||||
#define APPLICATION_START_ADDRESS 0x8800u
|
||||
#define APPLICATION_START_ADDRESS 0x8500u
|
||||
/** STM8S003F3P6 程序 Flash 的最后一个地址。 */
|
||||
#define APPLICATION_END_ADDRESS 0x9FFFu
|
||||
/** 应用程序允许使用的最大空间。 */
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
/** 初始化STM8硬件SPI和W25Q64片选;当前片选引脚为PD4。 */
|
||||
void W25Q64_Init(void);
|
||||
uint8_t W25Q64_Init(void);
|
||||
/** 读取W25Q64 JEDEC ID,便于启动时确认芯片存在。 */
|
||||
uint32_t W25Q64_ReadJedecId(void);
|
||||
/** 从W25Q64连续读取数据。 */
|
||||
|
||||
Reference in New Issue
Block a user