feat:新增TFTP IAP升级功能
修改事项: 1、新增TFTP IAP升级功能,只是代码移植完毕,没有测试使用 2、代码空间编译优化,零等待区域空间已满,而应用层代码已全部挪移到非零等待区域中,但还是会增加零等待区的空间占用。 待优化
This commit is contained in:
@@ -341,7 +341,7 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_BUS_C5IO_Cycle_Call(uint32_t
|
||||
}
|
||||
|
||||
/*<2A>ж<EFBFBD>CSIO ʱ<>䴦<EFBFBD><E4B4A6><EFBFBD><EFBFBD>Ч<EFBFBD><D0A7>*/
|
||||
uint8_t BLV_CSIO_RTC_TimeValid(uint8_t *date)
|
||||
__attribute__((section(".non_0_wait"))) uint8_t BLV_CSIO_RTC_TimeValid(uint8_t *date)
|
||||
{
|
||||
/*<2A>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ޣ<EFBFBD>2024~2050<35><30>*/
|
||||
if( (RTC_TimeDate_Correct_Figure(date[0]) == 0x00) && ((date[0] >= 0x24) && (date[0] <= 0x50)) ){
|
||||
|
||||
@@ -1144,14 +1144,14 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_SET_MCU_Revision_Data_Rep
|
||||
{
|
||||
write_addr = data_addr+PKT2_PARA+1;
|
||||
SRAM_DMA_Read_Buff(send_buff,64,write_addr);
|
||||
Flash_Write(send_buff,64,FLASH_MCU_Model_Revision_ADDRESS);
|
||||
Flash_Write(send_buff,64,SPIFLASH_MCU_Model_Revision_ADDRESS);
|
||||
}
|
||||
|
||||
if((temp_data & 0x02) != 0x00)
|
||||
{
|
||||
write_addr = data_addr+PKT2_PARA+65;
|
||||
SRAM_DMA_Read_Buff(send_buff,64,write_addr);
|
||||
Flash_Write(send_buff,64,FLASH_MCU_Control_Revision_ADDRESS);
|
||||
Flash_Write(send_buff,64,SPIFLASH_MCU_Control_Revision_ADDRESS);
|
||||
}
|
||||
|
||||
temp_data = 0x01;
|
||||
@@ -1208,9 +1208,9 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_READ_MCU_Revision_Data_Re
|
||||
|
||||
/*<2A><><EFBFBD>ݴ<EFBFBD><DDB4><EFBFBD>*/
|
||||
|
||||
Flash_Read(&send_buff[PKT2_PARA],64,FLASH_MCU_Model_Revision_ADDRESS);
|
||||
Flash_Read(&send_buff[PKT2_PARA],64,SPIFLASH_MCU_Model_Revision_ADDRESS);
|
||||
|
||||
Flash_Read(&send_buff[PKT2_PARA+64],64,FLASH_MCU_Control_Revision_ADDRESS);
|
||||
Flash_Read(&send_buff[PKT2_PARA+64],64,SPIFLASH_MCU_Control_Revision_ADDRESS);
|
||||
|
||||
/*<2A><><EFBFBD>ݴ<EFBFBD><DDB4><EFBFBD><EFBFBD>ظ<EFBFBD>*/
|
||||
Dbg_Println(DBG_OPT_DEVICE_STATUS,"%s",__func__);
|
||||
|
||||
Reference in New Issue
Block a user