Hello,
Q1: Other than observing the current usage, How to know that it is already in retention mode?
-->There is no other way to make observations, these functions are tested and there is no need to worry about it not being triggered correctly.
Q2: Is the retention mode only work in shared ram?
-->Yes
Q3: If calling the retention mode causing the system hang, what would be the culprit?
-->Have you made any changes to the code for this feature?
Q4 : If calling the dram_exit_retention mode causing the current a bit higher (than before calling it), what is the reason?
-->dram_exit_retention will recover DDR clocks and enable DDR PHY, so the current going to high is reasonable
Best Regards,
Zhiming