mpc5744p with Reset Generation Module (MC_RGM).

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

mpc5744p with Reset Generation Module (MC_RGM).

3,708 次查看
jaureshsieh
Contributor II

mpc5744p with Reset Generation Module (MC_RGM).

i have a customer return the mpc5744p board.

the mcu always doing reset.

i check the reset by mcu self.

but i don't know why the mcu which reason to do reset?

do you have any source code to test the which reason doing reset?

likes 3.3v ovp,1.25v over voltage.

ram,flash ecc ,fccu mc33907 error.

external xtal fail...

our board use mc33907 provide 3.3v with 1.25v.

and do you have detail document for MC_RGM

i just want to check the mpc5742p with 33907 that which reason bad.

i need write 8D report to customer.

so i need analyzer which reason fail .

could you help me to program the test code?

i use trace32 ,cyclone-max debug tool.

S32 compiler and windriver 5.9.4.8

标签 (1)
0 项奖励
回复
11 回复数

2,853 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

From your DES register I can see that your voltage was out of range.You need to measure the power supply pin  VDDHV while reset occurs.

I expect some drops on supply voltage which caused your reset. Maybe weak power source.

You can also apply external power from regulated power supply to exclude any drops\peaks in voltage.

If you want to write code just test DES and FES registers and based on fault detected take actions.

Also FCCU will tell you what was exactly the reason for reset. Like LVD, HVD, etc.

I suggest to have a look also on my application note for FCCU faults:

http://cache.nxp.com/files/32bit/doc/app_note/AN5259.pdf?fsrch=1&sr=3&pageNum=1

Peter

0 项奖励
回复

2,853 次查看
jaureshsieh
Contributor II

if external 40 MHZ Xtal fault that how to read register to check xtal fault?

0 项奖励
回复

2,853 次查看
petervlna
NXP TechSupport
NXP TechSupport

This is monitored by FCCU.

FCCU reports fault NCF[26].

To read this fault use procedure described in my application note:

http://cache.nxp.com/files/microcontrollers/doc/app_note/AN5284.pdf?fsrch=1&sr=2&pageNum=1

There are also application example codes.

Peter

0 项奖励
回复

2,853 次查看
jaureshsieh
Contributor II

your code only  to FCCU.NCF_S[2].R

FCCU_status[0] = FCCU.NCF_S[0].R; //read FCCU.NCF_S0 register FCCU_status[1] = FCCU.NCF_S[1].R; //read FCCU.NCF_S1 register FCCU_status[2] = FCCU.NCF_S[2].R; //read FCCU.NCF_S2 register

which one say NCF[26]?

0 项奖励
回复

2,853 次查看
petervlna
NXP TechSupport
NXP TechSupport

NCFS0 register is 32-bit and contain first 32 faults.

So NCF26 is located here in NCFS_0:

pastedImage_0.png

0 项奖励
回复

2,853 次查看
petervlna
NXP TechSupport
NXP TechSupport

I can guide you to the reset source, but not with information you have provided.

0 项奖励
回复

2,853 次查看
jaureshsieh
Contributor II

i use the trace32 debug tools to see the MC_RGM

trace321.png

trace32_2.png

but  i want to use code to test the which reason reset,

and fccu to detect the xtal fail,vcc ovp,....

0 项奖励
回复

2,853 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

First of all tell me what is "always doing reset"?

1. Device is in permanent reset

2. Is reseting in intervals?

Is it possible to connect with debugger?

There is no test code for reset reasons.

You can write it according to ISO demands for your target safety class.

If it is possible to connect with debugger I suggest you to check FES and DES registers in RGM(reset generation module) for reset reason.

Peter.

0 项奖励
回复

2,853 次查看
jaureshsieh
Contributor II

mcp5742p_resetPin.jpg

MPC5742P RESET PIN(31)

0 项奖励
回复

2,853 次查看
jasoncao
Contributor II

I guess that may be you need to check the 33907/8

0 项奖励
回复

2,853 次查看
jaureshsieh
Contributor II

I had check the 33907,that reset reason from 5742p,33907 not do reset!

0 项奖励
回复