fix(flash): 优化Flash EEPROM读写逻辑并修复角度保存问题

移除调试打印语句,改进Flash读写稳定性。
使用类型别名统一数据访问,增强代码可读性。
修正CAN通信中角度保存逻辑,确保正确写入实时角度值。
完善错误处理机制,增加对齐检查和状态反馈。
调整EEPROM起始地址以避免潜在冲突。
This commit is contained in:
cbb
2025-12-17 01:38:48 +08:00
parent 7371f97882
commit 02572df688
4 changed files with 77 additions and 98 deletions
@@ -330,7 +330,6 @@ fmc_state_enum fmc_doubleword_program(uint32_t address, uint64_t data)
fmc_state_enum fmc_word_program(uint32_t address, uint32_t data)
{
fmc_state_enum fmc_state = fmc_ready_wait(FMC_TIMEOUT_COUNT);
printf("fmc_status: 0x%x\r\n", fmc_state);
if(FMC_READY == fmc_state){
/* set the PG bit to start program */