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

cross mob
Ciancio
Level 1
Level 1
First reply posted 5 sign-ins First like given

Hello to everyone,

I'm developing an application on an Infineon TC263L micro. I would to store some symbol in RAM that after a wake-up they aren't initialized. I could use of course ROM, but i would  try to use what  I find in the user manual "Infineon-TC21x-TC22x-TC23x-UM-v01_01-EN.pdf." 

I configured register and code as described in  "Entering Standby Mode (ESR1 / Pin or WUT Wake-up configuration)" but after the wake up I find the ram initilized to zero. I have confingured a no-init dspr ram also as suggested in the errata sheet "Sporadic Power-on Reset after Wake-up from Standby Mode" and I don't read/write the ram from D000 2000H to D000 203FH.

Any ideas?

Thanks a lot!

0 Likes
1 Solution
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

Hello,

From the User Manual, RSTSTAT.STBYR bit indicates that the supply was reliable during Standby.  A power fail event of the Standby supply during Standby mode will inevitably result in the loss of Standby RAM contents.  Please check the status of RSTSTAT.STBYR bit.

"The Standby RAM contents are kept intact after PORST assertion provided Firmware is not configured to re-initialize the Standby RAM depending on Flash configuration." - This is described in the User manual

CPU0-DSPR is a standby RAM. You can use it ( with exception from 0xD0002000 to 0xD000203F) to store the data that doesn't require Initialization between different modes. For that you can create a Memory Region in the Linker file and exclude that from the RAM Initialization functions RAM in your code. If one-time Initialization is required you can use a status flag and use it to skip the Initialization between different modes of operation or between resets also.

Prudhvi. 

View solution in original post

1 Reply
Prudhvi_E
Moderator
Moderator
Moderator
250 replies posted 100 solutions authored 25 likes received

Hello,

From the User Manual, RSTSTAT.STBYR bit indicates that the supply was reliable during Standby.  A power fail event of the Standby supply during Standby mode will inevitably result in the loss of Standby RAM contents.  Please check the status of RSTSTAT.STBYR bit.

"The Standby RAM contents are kept intact after PORST assertion provided Firmware is not configured to re-initialize the Standby RAM depending on Flash configuration." - This is described in the User manual

CPU0-DSPR is a standby RAM. You can use it ( with exception from 0xD0002000 to 0xD000203F) to store the data that doesn't require Initialization between different modes. For that you can create a Memory Region in the Linker file and exclude that from the RAM Initialization functions RAM in your code. If one-time Initialization is required you can use a status flag and use it to skip the Initialization between different modes of operation or between resets also.

Prudhvi.