FACING RETENTION RAM ISSUE in RH850 F1K

Hi we are using RH850 F1K (R7F701543) 144 pin controller . We are facing some issue in retention RAM implemenation(KAM).

Issue is -: All the KAM related code is working while Connecting Debugger (while debugging through Cube Suite). But once we remove the debugger , Some part of KAM section is not able to write , it is holding some default value. So basically once we removed debugger KAM section is not holding actual data from sleep to wake up. Its taking some default/garbage value.

Could you please help on this. And for the Time we are not Enabling any FS related things for Retention RAM. Could you please provide us any sample application or any USER application Document which will be helpfull for us. 

 

Thnaks in Advance 

Ipsita