This commit is contained in:
sunbeam 2024-08-17 00:07:25 +08:00
parent 72ed8356ed
commit 25001011c4
7 changed files with 4078 additions and 3962 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,19 +1,113 @@
QualityReport
2024年8月15日 21:59:20
2024年8月16日 23:45:14
------ Start build(ECU_APP, DefaultBuild) ------
------ Build ended(Error:0, Warning:0)(ECU_APP, DefaultBuild) ------
C:\Program Files (x86)\Renesas Electronics\CS+\CC\CC-RL\V1.11.00\Bin\ccrl.exe user\appTask.c -cpu=S3 -obj_path=DefaultBuild "-dev=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10BGG.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
user\appTask.c(144):W0520177:Variable "fnr_step" was declared but never referenced
user\appTask.c(144):W0520177:Variable "lh_step" was declared but never referenced
user\appTask.c(146):W0520177:Variable "db_pos" was declared but never referenced
user\appTask.c(50):W0520177:Variable "err_counter" was declared but never referenced
C:\Program Files (x86)\Renesas Electronics\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: 00000c03 Byte(s)
ROMDATA SECTION: 0000070b Byte(s)
PROGRAM SECTION: 0000516d 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:7)(ECU_APP, DefaultBuild) ------
--- CommandFile 1 ---
DefaultBuild\ECU_APP.clnk :
-Input=DefaultBuild\cstart.obj
-Input=DefaultBuild\stkinit.obj
-Input=DefaultBuild\r_pfdl.obj
-Input=DefaultBuild\RL78_RCAN.obj
-Input=DefaultBuild\r_rl78_can_drv.obj
-Input=DefaultBuild\r_rl78_can_irq.obj
-Input=DefaultBuild\r_systeminit.obj
-Input=DefaultBuild\r_main.obj
-Input=DefaultBuild\r_cg_wdt_user.obj
-Input=DefaultBuild\r_cg_wdt.obj
-Input=DefaultBuild\r_cg_timer_user.obj
-Input=DefaultBuild\r_cg_timer.obj
-Input=DefaultBuild\r_cg_port_user.obj
-Input=DefaultBuild\r_cg_port.obj
-Input=DefaultBuild\r_cg_cgc_user.obj
-Input=DefaultBuild\r_cg_cgc.obj
-Input=DefaultBuild\r_cg_adc_user.obj
-Input=DefaultBuild\r_cg_adc.obj
-Input=DefaultBuild\VectorTable.obj
-Input=DefaultBuild\CanNw.obj
-Input=DefaultBuild\CanNwConfig.obj
-Input=DefaultBuild\Dcm_App.obj
-Input=DefaultBuild\Dcm_App_Cfg.obj
-Input=DefaultBuild\Dcm_Cfg.obj
-Input=DefaultBuild\Dcm_DID.obj
-Input=DefaultBuild\Dcm_DID_Cfg.obj
-Input=DefaultBuild\Dcm_Key.obj
-Input=DefaultBuild\extern.obj
-Input=DefaultBuild\CanIf.obj
-Input=DefaultBuild\CanIf_Cfg.obj
-Input=DefaultBuild\CanTp_Cfg.obj
-Input=DefaultBuild\CanTrcv.obj
-Input=DefaultBuild\CanTrcv_Cfg.obj
-Input=DefaultBuild\DCM_DTC.obj
-Input=DefaultBuild\Dcm.obj
-Input=DefaultBuild\CanTp.obj
-Input=DefaultBuild\appTask.obj
-Input=DefaultBuild\can_user.obj
-Input=DefaultBuild\hwCtrl.obj
-Input=DefaultBuild\CRC.obj
-LIBrary=DataFlash\pfdl.lib
-SECURITY_ID=00000000000000000000
-DEVICE=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10BGG.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
-OCDBG=04
-USER_OPT_BYTE=E933E8
-LISt=DefaultBuild\ECU_APP.map
-SHow=Reference,Xreference,Total_size,STRUCT
-STARt=VectorRemapingAddr_n,.const,.text,.RLIB,.SLIB,PFDL_COD,.textf,.constf,.data,.sdata/0A000,DID_TBL_f/19C00,KAM_SEG_n/FE500,.dataR,.bss/FE510,.sdataR,.sbss/FFE20
-ROm=.data=.dataR
-ROm=.sdata=.sdataR
-Message
-Total_size
-NOLOgo
-end
-Input=DefaultBuild\ECU_APP.abs
-DEVICE=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10BGG.DVF
-OUtput=OutPut\ECU_APP.mot
-FOrm=Stype
-REcord=S3
-BYte_count=10
-Message
-end
-Input=DefaultBuild\ECU_APP.abs
-DEVICE=C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device\RL78\Devicefile\DR5F10BGG.DVF
-OUtput=output\ECU_APP.S19= A000-19FFF
-FOrm=Stype
-REcord=S3
-SPace=FF
-BYte_count=10
-Message
-exit
--- SHA1 hash value of output files ---
E:\workspace\HDG\zhenan\code\ECU_APP\DefaultBuild\ECU_APP.abs: 0226c20492ccadf783b37be55af606b081fe7c30
E:\workspace\HDG\zhenan\code\ECU_APP\OutPut\ECU_APP.mot: 24620630e054eb9fbb66b788f6513a540e3edb3f
E:\workspace\HDG\zhenan\code\ECU_APP\output\ECU_APP.S19: 9182f5e9e09a25677fbe7f3cb0a3923a9074035c
F:\work\HDG\ZHENAN\CODE\ECU_APP\DefaultBuild\ECU_APP.abs: 27514eb2afc94e7dd01e3720ef0e19415980e0a9
F:\work\HDG\ZHENAN\CODE\ECU_APP\OutPut\ECU_APP.mot: ff615b6223765b22c1e668c38977f555c207cc7e
F:\work\HDG\ZHENAN\CODE\ECU_APP\output\ECU_APP.S19: 2e4557f4e8eb9e2f542fe0d80d7a6a9b55a8c30e
--- System Information ---
*OS Version
Microsoft Windows 10 企业版 LTSC (-, 10.0.17763, WOW64)
Microsoft Windows 10 企业版 LTSC (-, 10.0.19044, WOW64)
*Language
中文(中国)
*.NET Framework Version
@ -36,11 +130,11 @@ E:\workspace\HDG\zhenan\code\ECU_APP\output\ECU_APP.S19: 9182f5e9e09a25677fbe7f3
C:\Program Files (x86)\Renesas Electronics\CS+\CC
*Memory Usage
*Private Working Set
243 MB
207 MB
*Number of GDI Objects
2141
2146
*Number of USER Objects
1193
1177
*Opened Files
6 editors, 6 files, 69 KB
@ -171,7 +265,7 @@ Device Information Common Interface
DeviceInformation.dll
--- Main Project Information ---
E:\workspace\HDG\zhenan\code\ECU_APP\ECU_APP.mtpj
F:\work\HDG\ZHENAN\CODE\ECU_APP\ECU_APP.mtpj
Microcontroller Information
*R5F10BGG
*File Name: Version

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -84,8 +84,8 @@ void Apply_task(void)
BusOff_Detect();
}
KeyScan();
P_light_task();
IND_task();
//IGN_Detect();
//CanNwHandle();
}
@ -112,7 +112,7 @@ void Apply_task(void)
{
PowerUpDetect();
}
P_light_task();
}
if (Timer_20ms_flag == 1)
{
@ -125,7 +125,7 @@ void Apply_task(void)
{
Timer_50ms_flag = 0;
//TxTestMsg();
IND_task();
//SleepDetect();//TODO
}
}
@ -355,9 +355,24 @@ void P_light_task(void)
}
void IND_task(void)
{
static uint8_t counter=0;
if (counter < 7)
{
IND_Ctrl(g_fnr_state);
}
else
{
IND_Ctrl(FNR_ALL_LIGHT);
}
counter++;
if (counter > 9)
{
counter = 0;
}
}

View File

@ -166,6 +166,11 @@ void IND_Ctrl(uint8_t fnr_state)
O_IND3_CTRL = 0;
O_IND4_CTRL = 1;
break;
case FNR_ALL_LIGHT:
O_IND2_CTRL = 1;
O_IND3_CTRL = 1;
O_IND4_CTRL = 1;
break;
default:
break;
}

View File

@ -14,6 +14,7 @@
#define FNR_STATE_N 0
#define FNR_STATE_F 1
#define FNR_STATE_R 2
#define FNR_ALL_LIGHT 3
#define P_LIGHT_NONE 0
#define P_LIGHT_RED 1