Question about the RTI module in MPC5746R

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Question about the RTI module in MPC5746R

1,248 Views
yongtongzou
Contributor I

Hi All,
When I debug the RTI module, I enconter a problem: "RTI_LDVAL" can not setting,and a error message occure.

168647_168647.pngpastedImage_1.png

Can someone help me to solve this problem?

Thank you!

Labels (1)
0 Kudos
8 Replies

941 Views
yongtongzou
Contributor I

Hi Peter,

I also have the error, when I use the MPC5746R FlexCAN module.

The "CAN_3.MCR.B.MDIS" can neither setting,nor writing through debugger.

Can you check the head file?

Thank you.

pastedImage_2.png

0 Kudos

941 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

I found no issue there.

pastedImage_1.png

Attached is the example.

Peter

0 Kudos

941 Views
umsteigen
Contributor II

I think you have to enable the clock of RTI in the CGM module firstly, otherwise this module is disabled.

0 Kudos

941 Views
yongtongzou
Contributor I

Hi Cheng FANG

I use the "Example MPC5746R CGM (clock configuration) GHS614" to modify and add the RTI function.
The RTI clock source "AUX_9 clock" is selecting. The error message is still occuring.

pastedImage_2.png

0 Kudos

941 Views
umsteigen
Contributor II

I use GreenHill compiler and Lauterbach Trace32 for debugging. Maybe you can sent me your code, then I can test it in my environment for you. 

0 Kudos

941 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

Attached is working example.

I have to modify the header file as original one wasn't matching correct addresses.

Peter

941 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

This register is user/supervisor read write. So if you have provided clock to PIT RTI then there is no issue to write to this register.

But on your screenshot "Dissasembly" I can see that you are missing code for you PIT_0.RTI.LDVAL_R c code.

Did you try to change LDVAL via direct write trough debugger?

Peter

0 Kudos

941 Views
yongtongzou
Contributor I

Hi,

The "PIT_0.RTI_LDVAL.R , PIT_0.RTI_TCTRL.B.TIE, PIT_0.RTI_TCTRL.B.TEN" can not write through debugger.

But "PIT_0.MCR.B.MDIS_RTI " can write through debugger. Accroding to the manual "LDVAL,TIE,TEN" can read and write, I can not wrrite this register.  Can you help me to solve this problem?

Thank you!

0 Kudos