27解锁OK

This commit is contained in:
sunbeam 2024-01-20 18:49:43 +08:00
parent d2de84446e
commit 0094438a8e
15 changed files with 4813 additions and 29388 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,16 @@
QualityReport
2023年12月18日 22:10:08
2024年1月20日 18:42:53
------ Start build(ECU_APP, DefaultBuild) ------
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe diagnose\extern.c -cpu=S3 -obj_path=DefaultBuild "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10BBG.DVF" -g -g_line -I diagnose\DTC -I diagnose\CanTrcv -I sys -I . -I rscan_driver -I diagnose -I DataFlash -I CanNw -I diagnose\CanTp -I diagnose\CanIf -I user -D DEBUG1 -c -msg_lang=english
E:\Program Files (x86)\renesas\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe diagnose\Dcm_DID_Cfg.c diagnose\extern.c -cpu=S3 -obj_path=DefaultBuild "-dev=E:\Program Files (x86)\renesas\CS+\CC\Device\RL78\Devicefile\DR5F10BBG.DVF" -g -g_line -I diagnose\DTC -I diagnose\CanTrcv -I sys -I . -I rscan_driver -I diagnose -I DataFlash -I CanNw -I diagnose\CanTp -I diagnose\CanIf -I user -D DEBUG1 -c -msg_lang=english
diagnose\Dcm_DID_Cfg.c(173):W0520144:A value of type "long" cannot be used to initialize an entity of type "uint8 __far *__near"
diagnose\Dcm_DID_Cfg.c(173):W0520152:Conversion of nonzero integer to pointer
diagnose\Dcm_DID_Cfg.c(339):W0520174:Expression has no effect
diagnose\Dcm_DID_Cfg.c(349):W0520144:A value of type "long" cannot be used to initialize an entity of type "uint8 __far *__near"
diagnose\Dcm_DID_Cfg.c(349):W0520152:Conversion of nonzero integer to pointer
diagnose\Dcm_DID_Cfg.c(371):W0520144:A value of type "long" cannot be used to initialize an entity of type "uint8 __far *__near"
diagnose\Dcm_DID_Cfg.c(371):W0520152:Conversion of nonzero integer to pointer
diagnose\Dcm_DID_Cfg.c(403):W0520174:Expression has no effect
diagnose\extern.c(107):W0520940:Missing return statement at end of non-void function "GetVoltage"
diagnose\extern.c(135):W0520940:Missing return statement at end of non-void function "GetMotorLockStatus"
diagnose\extern.c(181):W0520111:Statement is unreachable
@ -13,15 +21,15 @@ diagnose\extern.c(334):W0520111:Statement is unreachable
diagnose\extern.c(505):W0520940:Missing return statement at end of non-void function "GetCanBusOffErr"
diagnose\extern.c(523):W0520940:Missing return statement at end of non-void function "GetBcmCommFault"
diagnose\extern.c(540):W0520940:Missing return statement at end of non-void function "GetAcpCommFault"
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\rlink.exe -subcommand=DefaultBuild\ECU_APP.clnk
E:\Program Files (x86)\renesas\CS+\CC\CC-RL\V1.11.00\Bin\rlink.exe -subcommand=DefaultBuild\ECU_APP.clnk
W0561017:The evaluation period of CC-RL V1 has expired. Please consider purchasing the product.
RAMDATA SECTION: 00000c5d Byte(s)
ROMDATA SECTION: 00000642 Byte(s)
PROGRAM SECTION: 000051d3 Byte(s)
RAMDATA SECTION: 00000c65 Byte(s)
ROMDATA SECTION: 0000064a Byte(s)
PROGRAM SECTION: 000051df Byte(s)
W0561017:The evaluation period of CC-RL V1 has expired. Please consider purchasing the product.
W0561017:The evaluation period of CC-RL V1 has expired. Please consider purchasing the product.
Renesas Optimizing Linker Completed
------ Build ended(Error:0, Warning:13)(ECU_APP, DefaultBuild) ------
------ Build ended(Error:0, Warning:21)(ECU_APP, DefaultBuild) ------
--- CommandFile 1 ---
DefaultBuild\ECU_APP.clnk :
@ -68,14 +76,14 @@ DefaultBuild\ECU_APP.clnk :
-Input=DefaultBuild\hwCtrl.obj
-LIBrary=DataFlash\pfdl.lib
-SECURITY_ID=00000000000000000000
-DEVICE=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10BBG.DVF
-DEVICE=E:\Program Files (x86)\renesas\CS+\CC\Device\RL78\Devicefile\DR5F10BBG.DVF
-DEBug
-NOCOmpress
-NOOPtimize
-OUtput=DefaultBuild\ECU_APP.abs
-LIBrary=C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\lib\rl78em4s.lib
-LIBrary=C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\lib\malloc_n.lib
-LIBrary=C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\lib\rl78em4r.lib
-LIBrary=E:\Program Files (x86)\renesas\CS+\CC\CC-RL\V1.11.00\lib\rl78em4s.lib
-LIBrary=E:\Program Files (x86)\renesas\CS+\CC\CC-RL\V1.11.00\lib\malloc_n.lib
-LIBrary=E:\Program Files (x86)\renesas\CS+\CC\CC-RL\V1.11.00\lib\rl78em4r.lib
-OCDBG=04
-USER_OPT_BYTE=E933E8
-LISt=DefaultBuild\ECU_APP.map
@ -88,7 +96,7 @@ DefaultBuild\ECU_APP.clnk :
-NOLOgo
-end
-Input=DefaultBuild\ECU_APP.abs
-DEVICE=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10BBG.DVF
-DEVICE=E:\Program Files (x86)\renesas\CS+\CC\Device\RL78\Devicefile\DR5F10BBG.DVF
-OUtput=DefaultBuild\ECU_APP.mot
-FOrm=Stype
-REcord=S3
@ -96,7 +104,7 @@ DefaultBuild\ECU_APP.clnk :
-Message
-end
-Input=DefaultBuild\ECU_APP.abs
-DEVICE=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10BBG.DVF
-DEVICE=E:\Program Files (x86)\renesas\CS+\CC\Device\RL78\Devicefile\DR5F10BBG.DVF
-OUtput=output\ECU_APP.S19= A000-19FFF
-FOrm=Stype
-REcord=S3
@ -107,14 +115,14 @@ DefaultBuild\ECU_APP.clnk :
--- SHA1 hash value of output files ---
E:\workspace\CFMOTO\CFMOTOR\ECU_APP\DefaultBuild\ECU_APP.abs: e686999f3129e60308b2bee265110880966e23f4
E:\workspace\CFMOTO\CFMOTOR\ECU_APP\DefaultBuild\ECU_APP.mot: 3ee760f7c2e92c2c2fb883c765b5009784e23157
E:\workspace\CFMOTO\CFMOTOR\ECU_APP\output\ECU_APP.S19: 719401ad826e831e2557ec44200f7b96924da170
F:\FCB_project\temp\CFMOTOR\code\ECU_APP\DefaultBuild\ECU_APP.abs: acc247e89ea43186f5b45d7180ffd81b052a136c
F:\FCB_project\temp\CFMOTOR\code\ECU_APP\DefaultBuild\ECU_APP.mot: 4614e4f91f5616aceb2a0cee5d5e23110eb597ce
F:\FCB_project\temp\CFMOTOR\code\ECU_APP\output\ECU_APP.S19: ff6b6d756538db68aab53d1adabad7d9113e2705
--- System Information ---
*OS Version
Microsoft Windows 11 专业版 (-, 10.0.22621, WOW64)
Microsoft Windows 10 专业版 (-, 10.0.19045, WOW64)
*Language
中文(中国)
*.NET Framework Version
@ -134,16 +142,16 @@ E:\workspace\CFMOTO\CFMOTOR\ECU_APP\output\ECU_APP.S19: 719401ad826e831e2557ec44
*Product License
*Execution Place
C:\Program Files (x86)\Renesas Electronics\CS+\CC
E:\Program Files (x86)\renesas\CS+\CC
*Memory Usage
*Private Working Set
227 MB
255 MB
*Number of GDI Objects
2145
2037
*Number of USER Objects
1201
1117
*Opened Files
4 editors, 4 files, 25 KB
1 editors, 1 files, 8 KB
--- Build Tool Plug-in Information ---
RH850 Build tool CC-RH Plug-in
@ -272,11 +280,11 @@ Device Information Common Interface
DeviceInformation.dll
--- Main Project Information ---
E:\workspace\CFMOTO\CFMOTOR\ECU_APP\ECU_APP.mtpj
F:\FCB_project\temp\CFMOTOR\code\ECU_APP\ECU_APP.mtpj
Microcontroller Information
*R5F10BBG
*File Name: Version
RL78_Productlist.xml: V8.070100
RL78_Productlist.xml: V8.070000
R5F10BBG_common.xml: V1.13.00.XX.02
DR5F10BBG.DVF: V1.11
f13_bbx.ti: V1.01

View File

@ -576,7 +576,7 @@ TeDcm_h_ResultType MngDcm_SoftResetDeal(void)
if(0==SeDcm_u_KeyErrorDelayCount && 0==SaDcm_u_RequestDelayCount)
{
if(SaDcm_u_RequestCounter == 5)
if(SaDcm_u_RequestCounter == 20)
{
SaDcm_u_RequestCounter=0;
KamData.SeedReqTimes = 0;

View File

@ -184,8 +184,8 @@ const TsDcm_h_DidCheckType CaDcm_h_WriteDidCheckInfoTable[DCM_WRITE_DIDSUP_COUNT
{0x06,DCM_SECURITYACCESS_LEVEL_L1,16,0xF198,&Dcm_DidServices_0xF198_WriteData},
{0x06,DCM_SECURITYACCESS_LEVEL_L1, 4,0xF199,&Dcm_DidServices_0xF199_WriteData},
{0x06,DCM_SECURITYACCESS_LEVEL_L1, 4,0xF19D,&Dcm_DidServices_0xF19D_WriteData},
{0x06,DCM_SECURITYACCESS_LEVEL_L1, 4,0xF101,&Dcm_DidServices_0xF101_WriteData},
{0x06,DCM_SECURITYACCESS_LEVEL_L1, 4,0xF010,&Dcm_DidServices_0xF010_WriteData},
{0x06,DCM_SECURITYACCESS_LEVEL_L1, 8,0xF101,&Dcm_DidServices_0xF101_WriteData},
{0x06,DCM_SECURITYACCESS_LEVEL_L1, 16,0xF010,&Dcm_DidServices_0xF010_WriteData},
};
/*Rid FF00 检查列表*/

View File

@ -239,7 +239,9 @@ uint8 GetRTE_Dcm_DidServices_0xF186_ReadData(uint8* data)
uint8 GetRTE_Dcm_DidServices_0xF187_ReadData(uint8* data)
{
(void)data;//5HY1-169500-6000
(void)data;
#if 0
//5HY1-169500-6000
data[0] = '5';
data[1] = 'G';
data[2] = 'Y';
@ -260,6 +262,29 @@ uint8 GetRTE_Dcm_DidServices_0xF187_ReadData(uint8* data)
data[17] = ' ';
data[18] = ' ';
data[19] = ' ';
#else
//5HY1-169500-6000
data[0] = '5';
data[1] = 'H';
data[2] = 'Y';
data[3] = '1';
data[4] = '-';
data[5] = '1';
data[6] = '6';
data[7] = '9';
data[8] = '5';
data[9] = '0';
data[10] = '0';
data[11] = '-';
data[12] = '6';
data[13] = '0';
data[14] = '0';
data[15] = '0';
data[16] = ' ';
data[17] = ' ';
data[18] = ' ';
data[19] = ' ';
#endif
return DCM_CHECK_OK;
}

View File

@ -1,13 +1,13 @@
/******************************************************************************
| File Name : Dcm_App.c
| Description:
| Description:
*****************************************************************************/
/******************************************************************************
* Description: : Include File Section
******************************************************************************/
#include "Dcm_Key.h"
#include "Dcm_extern.h"
/******************************************************************************
* Description: : Global Variable Definition Section
******************************************************************************/
@ -29,21 +29,25 @@ uint32 GetSeed(void)
return (GetTimerCnt());
//return(0x0016CDB0); test
}
uint8 testdata1[8] = {0,0,0,0,1,2,3,4};
uint32 SecurityLevel_1(uint32 Seed)
{
SeedSec_t cal,key,seed;
seed.word = Seed;
cal.byte[0] = seed.byte[0]^CFxorArray[0];
cal.byte[1] = seed.byte[1]^CFxorArray[1];
cal.byte[2] = seed.byte[2]^CFxorArray[2];
cal.byte[3] = seed.byte[3]^CFxorArray[3];
cal.byte[0] = seed.byte[3]^CFxorArray[0];
cal.byte[1] = seed.byte[2]^CFxorArray[1];
cal.byte[2] = seed.byte[1]^CFxorArray[2];
cal.byte[3] = seed.byte[0]^CFxorArray[3];
key.byte[3] = ((cal.byte[2]&0xF0)<<4)|(cal.byte[3]&0xF0);
key.byte[2] = ((cal.byte[3]&0x2F)<<2)|(cal.byte[1]&0x03);
key.byte[1] = ((cal.byte[1]&0xFC)>>2)|(cal.byte[0]&0xC0);
key.byte[0] = ((cal.byte[0]&0x0F)<<4)|(cal.byte[2]&0x0F);
testdata1[0] = key.byte[0];
testdata1[1] = key.byte[1];
testdata1[2] = key.byte[2];
testdata1[3] = key.byte[3];
//TransmitCAN_Message(0x333,8,testdata1);//TODO
return( key.word );
}

View File

@ -33,7 +33,7 @@ __far const unsigned char SW_VERSION[]={
'1' , //AC_SW_VERSION_06
'.' , //AC_SW_VERSION_07
'0' , //AC_SW_VERSION_08
'2' , //AC_SW_VERSION_09
'3' , //AC_SW_VERSION_09
' ' , //AC_SW_VERSION_10
' ' , //AC_SW_VERSION_11
' ' , //AC_SW_VERSION_12