Commit e9d8041f authored by 陈家乐's avatar 陈家乐

Merge branch 'dev' of http://tyw-server.synology.me:12345/ty/tianying_ty100 into CHENJIALE

parents a79101a2 b9007b5d
...@@ -119,20 +119,21 @@ uint8_t MCU_HWversion[6] = {'H', 'V', (uint8_t)((HWV >> 8u) & 0x0Fu) + 0x30u, '. ...@@ -119,20 +119,21 @@ uint8_t MCU_HWversion[6] = {'H', 'V', (uint8_t)((HWV >> 8u) & 0x0Fu) + 0x30u, '.
uint8_t MCU_FBLversion[6] = {'B', 'V', (uint8_t)((BTV >> 8u) & 0x0Fu) + 0x30u, '.', (uint8_t)((BTV >> 4u) & 0x0Fu) + 0x30u, (uint8_t)(BTV & 0x0Fu) + 0x30u}; uint8_t MCU_FBLversion[6] = {'B', 'V', (uint8_t)((BTV >> 8u) & 0x0Fu) + 0x30u, '.', (uint8_t)((BTV >> 4u) & 0x0Fu) + 0x30u, (uint8_t)(BTV & 0x0Fu) + 0x30u};
//零件号信息 F187 //零件号信息 F187
uint8_t MCU_PartNumber[17] = {'T', 'Y', '2', '0', '0', '.', '0', '8', '0', '0', '0', '0', 'b', '(', 't', 'y', ')'}; uint8_t MCU_PartNumber[18] = {'T', 'Y', '2', '0', '0', '.', '0', '8', '0', '0', '0', '0', '0', 'b', '(', 't', 'y', ')'};
#endif #endif
void Data_Set_DiagPara(void) void Data_Set_DiagPara(void)
{ {
uint8_t i; uint8_t i;
uint8_t length = 0; uint8_t length = 0;
uint8_t Filldata_length = 0;
//获取DID的值,等待写入DFlash //获取DID的值,等待写入DFlash
for(i = 0; i < 6; i++) for(i = 0; i < 6; i++)
{ {
DiagDataForDFlash.DID_F180[i] = MCU_FBLversion[i]; DiagDataForDFlash.DID_F180[i] = MCU_FBLversion[i];
} }
length = (IC_Current == TY200_080000b) ? 13 : 17; length = (IC_Current == TY200_080000b) ? 13 : 18;
for( i = 0; i < length; i++) for( i = 0; i < length; i++)
{ {
DiagDataForDFlash.DID_F187[i] = MCU_PartNumber[i]; DiagDataForDFlash.DID_F187[i] = MCU_PartNumber[i];
...@@ -145,7 +146,8 @@ void Data_Set_DiagPara(void) ...@@ -145,7 +146,8 @@ void Data_Set_DiagPara(void)
{ {
DiagDataForDFlash.DID_F195[i] = MCU_SWversion[i]; DiagDataForDFlash.DID_F195[i] = MCU_SWversion[i];
} }
for(i = 0; i < 1; i++) Filldata_length = (IC_Current == TY200_080000b) ? 1 : 4;
for(i = 0; i < Filldata_length; i++)
{ {
DiagDataForDFlash.Filldata[i] = 0u; DiagDataForDFlash.Filldata[i] = 0u;
} }
...@@ -809,7 +811,7 @@ void UDS_Service_22_Indication(uint16_t A_TA_type, uint16_t A_Length, uint8_t *A ...@@ -809,7 +811,7 @@ void UDS_Service_22_Indication(uint16_t A_TA_type, uint16_t A_Length, uint8_t *A
} }
UDS_Service_Response(si, POSITIVE_RSP, DIAG_ID_Tx, 2 + 6, UDS_ISO14229_Transfer); UDS_Service_Response(si, POSITIVE_RSP, DIAG_ID_Tx, 2 + 6, UDS_ISO14229_Transfer);
break; break;
case 0xF180: // 读硬件版本号 case 0xF180: // 引导版本信息
for (i = 0; i < 6; i++) for (i = 0; i < 6; i++)
{ {
UDS_ISO14229_Transfer[i + 2] = MCU_FBLversion[i]; UDS_ISO14229_Transfer[i + 2] = MCU_FBLversion[i];
...@@ -818,7 +820,7 @@ void UDS_Service_22_Indication(uint16_t A_TA_type, uint16_t A_Length, uint8_t *A ...@@ -818,7 +820,7 @@ void UDS_Service_22_Indication(uint16_t A_TA_type, uint16_t A_Length, uint8_t *A
break; break;
case 0xF187: // 读零件号 case 0xF187: // 读零件号
length = (IC_Current == TY200_080000b) ? 13 : 17; length = (IC_Current == TY200_080000b) ? 13 : 18;
for (uint8_t i = 0; i < length; i++) for (uint8_t i = 0; i < length; i++)
{ {
UDS_ISO14229_Transfer[i + 2] = MCU_PartNumber[i]; UDS_ISO14229_Transfer[i + 2] = MCU_PartNumber[i];
......
...@@ -338,7 +338,8 @@ typedef struct ...@@ -338,7 +338,8 @@ typedef struct
uint8_t RequestSeedIICnt; uint8_t RequestSeedIICnt;
} Ser27_FlowCtrlCntUnion; } Ser27_FlowCtrlCntUnion;
#define DID_F187_SIZE ((IC_Current == TY200_080000b) ? 13 : 17) #define DID_F187_SIZE ((IC_Current == TY200_080000b) ? 13 : 18)
#define Filldata_SIZE ((IC_Current == TY200_080000b) ? 1 : 4)
typedef struct typedef struct
{ {
uint32_t Flag; uint32_t Flag;
...@@ -346,7 +347,7 @@ typedef struct ...@@ -346,7 +347,7 @@ typedef struct
uint8_t DID_F187[DID_F187_SIZE]; uint8_t DID_F187[DID_F187_SIZE];
uint8_t DID_F193[6]; uint8_t DID_F193[6];
uint8_t DID_F195[6]; uint8_t DID_F195[6];
uint8_t Filldata[1]; uint8_t Filldata[Filldata_SIZE];
} DiagDFlashData; } DiagDFlashData;
extern DiagDFlashData DiagDataForDFlash; extern DiagDFlashData DiagDataForDFlash;
......
...@@ -11,4 +11,13 @@ TY_TY200.080000b(ty)_Boot_B1.01_240620.hex ...@@ -11,4 +11,13 @@ TY_TY200.080000b(ty)_Boot_B1.01_240620.hex
----2024/07/19---- ----2024/07/19----
TY_TY200.080000b(ty)_Boot_B1.02_240719.hex TY_TY200.080000b(ty)_Boot_B1.02_240719.hex
变更内容: 变更内容:
修改诊断ID、修改内部版本号V1.02 24 07 19 修改诊断ID、修改内部版本号V1.02 24 07 19
\ No newline at end of file
----2024/08/14----
TY_TY200.080000b(ty)_Boot_B1.03_240814.hex
变更内容:
feat:修改需要忽略的文件
feat:修改内存配置文件
feat:领导规定,将时钟放到SRAM中运行
feat:修改BOOT内部版本号103 230814
feat:修改零件号长度
\ No newline at end of file
...@@ -18,4 +18,10 @@ TY_TY200.080000b_Boot_B1.02_240620.hex ...@@ -18,4 +18,10 @@ TY_TY200.080000b_Boot_B1.02_240620.hex
----2024/07/19---- ----2024/07/19----
TY_TY200.080000b_Boot_B1.03_240719.hex TY_TY200.080000b_Boot_B1.03_240719.hex
变更内容: 变更内容:
修改诊断ID、修改内部版本号V1.03 24 07 19 修改诊断ID、修改内部版本号V1.03 24 07 19
\ No newline at end of file
----2024/08/14----
TY_TY200.080000b_Boot_B1.04_240814.hex
变更内容:
feat:修改内部版本号104 240814
feat:修改内存配置文件
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment