MPC5777C MCAL4.3 sample application issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC5777C MCAL4.3 sample application issue

1,674 次查看
Zhongling_Lang
NXP Employee
NXP Employee

Hi all,

I tested the mpc5777c MCAL4.3 sample application (lightning _MPC5777C_4.3_Split)[Download from official website] on MPC5777C EVB board, the code can work properly when i first download code into flash by LAUTERBACH, however, the code cannot work when software reset or hardware reset.

1.I check the startup and link file which is similar with mpc5777c MCAL4.0 but i don't know what is the root cause, also have customer use this sample application.

2.I completed a Dual core project(modified startup and link file) which can work normally with MCAL4.0 project, but the same configuration cannot work on MCAL4.3, may be i should modify other files.

0 项奖励
回复
2 回复数

1,581 次查看
hungnguyenphi
NXP Employee
NXP Employee

Dear Zhongling Lang ,

This is an error in the example.

Please change the data of file "MPC5777C_MCAL4_3_RTM_1_0_0_Sample_Application\eclipse\plugins\PlatformIntegration_TS_T2D41M10I0R0\src\startup\Vector_vle_core_diab.s" and "MPC5777C_MCAL4_3_RTM_1_0_0_Sample_Application\eclipse\plugins\PlatformIntegration_TS_T2D41M10I0R0\src\startup\Vector_vle_core.s"  from:

# set reset configuration half word
.set RCW, 0x005A0002
.set RSVD, 0x00000000
.set CFG1, 0x00000000
.set CFG2, 0x00000000

# put reset configuration halfword and application start address into .rcw
# section
.if C_CW == 1
.extern __start
.section .rcw,rodata
.long RCW, _start, CFG1, CFG2, _start, _start, RSVD
.else
.extern _start
.section ".rcw","ax"
.long RCW, _start, CFG1, CFG2, _start, _start, RSVD
.endif

to:

.set RCW, 0x015A015A

# put reset configuration halfword and application start address into .rcw
# section
.if C_CW == 1
.extern __start
.section .rcw,rodata
.long RCW, __start
.else
.extern _start
.section ".rcw","ax"
.long RCW, _start
.endif

Then rebuild the porject, It will fix this issue.

Best regards,

Hung. 

1,581 次查看
Zhongling_Lang
NXP Employee
NXP Employee

Yes, you are right.

I compared the Vector_vle_core.s file with MCAL4.0 and find that RCW is difference. so i changed the RCW same with MCAL4.0 and it can work correctly now. My dual core project also can work normally. thanks for your reply.

0 项奖励
回复