Hi All,When I debug the RTI module, I enconter a problem: "RTI_LDVAL" can not setting,and a error message occure.
Can someone help me to solve this problem?
I think you have to enable the clock of RTI in the CGM module firstly, otherwise this module is disabled.
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.
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?
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?
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.
Attached is working example.
I have to modify the header file as original one wasn't matching correct addresses.
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?
I found no issue there.
Attached is the example.
Retrieving data ...