TC399 enter specific core into standby mode

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User19104
Level 3
Level 3
First like received
Hi

is it possible to enter specific core into standby mode or IDLE mode on the TC399.
if so, then how?
0 Likes
7 Replies
User19104
Level 3
Level 3
First like received
managed to switcn to idle mode using:
IfxPmsPm_setCoreMode()

but cannot return back to run_mode
0 Likes
User19104
Level 3
Level 3
First like received
It seems that the PORST needs to be turned off by RSTCON2.CLRC, but writing 1 to that bit does not clear the flag.
0 Likes
Darren_Galpin
Employee
Employee
First solution authored First like received
Writing to that bit will not clear a PORST - it just clears the bits in RSTSTAT. If writing to that register seemed to have no effect, was there an error generated when writing to the register? You can only write to the register when endinit is 0 and the correct tag according to the access protection has been used. Check the error capture registers in the BCU to see if it did, or if anything else did.
0 Likes
User19104
Level 3
Level 3
First like received
Will try, thanks 🙂
0 Likes
User19104
Level 3
Level 3
First like received
OK, So i have managed to clear clrc, but still can't go back to RUN MODE, according to "11.2.3.2.3 Exiting Idle mode" of the UM part1 it's enough to " Setting the register bits PMCSRx.REQSLP = 00B to set the CPUx into Run mode"
0 Likes
Darren_Galpin
Employee
Employee
First solution authored First like received
Yep, found the bit in the text which says that, but if you look in the figure "Power down modes and transitions", it is PMCSRx.REQSLP=00 AND (PORST request inactive). Can we confirm that there is no request? When you write to the PMCSR register in the CPU, do you see the bits actually written? Accesses to core registers in the CPU do not issue bus errors if they fail, so do you see any other error indication from the CPU?
0 Likes
User19104
Level 3
Level 3
First like received
Thanks, solved the issue.

There wasa bug in the LLD in "IfxPmsPm_setCoreMode", once I fixed it everything worked smoothly.
0 Likes