Hi,
Currently I'm using standby mode in my application, I have several configurable variables I set during run time.
my init for those variables looks like this:
During runtime I'm changing trigger_enabled property. Then I enter sleep state in which I supply DSPR0 RAM:
Data sheet says:
STBYRAMSEL bit in PMSWCR0:
[18:17] rw Standby RAM supply in Standby Mode
00B Standby RAM is not supplied.
01B Standby RAM (CPU0 DSPR) is supplied.
Note: All other bit combinations are reserved. Incase
Standby RAM supply is activated, Standby RAM
is not initialised after wakeup or PORST
irrespective of configuration
So i assume that my custom configured data should not be changed after wake-up.
The problem is that after wake up all my configured data return to it's initial values (like in trigger.c).
i make sure that that I'm not reseting this values at startup.
It looks like standby ram is re initializing during wake-up.
what could pose a problem here ?
I work on TC222L
Currently I'm using standby mode in my application, I have several configurable variables I set during run time.
my init for those variables looks like this:
Code:
trigger.c
trigger my_trigger ={
{.code = my_code,
.trigger_position = TRIGGER_DISABLED,
.trigger_enabled = TRUE,
},
Code:
pspram_sequnece.c
IfxScuWdt_clearSafetyEndinitInline(password);
IfxScuWdt_clearCpuEndinitInline(wdt,cpu_password);
Ifx_SCU_PMSWCR0 pms_0_config = scu->PMSWCR0;
while(SCU_PMSWCR0.B.LCK);
pms_0_config.B.STBYRAMSEL = 1;
pms_0_config.B.ESR1WKEN = 1;
pms_0_config.B.ESR1DFEN = 1;
pms_0_config.B.ESR1EDCON = falling_edge;
pms_0_config.B.PINAWKEN = 1;
pms_0_config.B.PINADFEN = 1;
pms_0_config.B.PINAEDCON = falling_edge;
pms_0_config.B.PINBWKEN = 1;
pms_0_config.B.PINBDFEN = 1;
pms_0_config.B.PINBEDCON = falling_edge;
pms_0_config.B.WUTWKEN = 1;
scu->PMSWCR0 = pms_0_config;
while(SCU_PMSWCR0.B.LCK);
IfxScuWdt_clearCpuEndinitInline(wdt,cpu_password);
IfxScuWdt_clearSafetyEndinitInline(password);
Quote:
STBYRAMSEL bit in PMSWCR0:
[18:17] rw Standby RAM supply in Standby Mode
00B Standby RAM is not supplied.
01B Standby RAM (CPU0 DSPR) is supplied.
Note: All other bit combinations are reserved. Incase
Standby RAM supply is activated, Standby RAM
is not initialised after wakeup or PORST
irrespective of configuration
The problem is that after wake up all my configured data return to it's initial values (like in trigger.c).
i make sure that that I'm not reseting this values at startup.
It looks like standby ram is re initializing during wake-up.
what could pose a problem here ?
I work on TC222L