thanks ,
i have implement with errata workaround code snippet but the problem still
persist i have disable my application code and implemented only stop mode
but i have found the after wake up timer ,rtc does not work properly and
after wake up it does not go in sleep mode .is there any problem with
controller or LIN stack ,in intialization i am totally struck i cannot see
the way to solve this problem from last 6 month so please short out this
problem because from december this product has to come in production with
100000 qty we have to solve this problem ASAP other wise we have to change
controller .if u want to my complete code for analysis purpose i will send
u.
if ((SLEEP_MODE == lin_lld_get_state())&&(~cpu_stop_mode_flg))
{
DDRS_DDRS0=1;
DDRS_DDRS1=1;
DDRS_DDRS2=1;
DDRS_DDRS3=1;
HallSensorOFF();
/* Set enter stop mode flag */
/* Enable wakeup feature of LIN Physical*/
LP0CR_LPWUE = 1;
vMotor_eSetPWMDuty_exe(0, 2);
/* Enable Active Edge Detect Circuit in stop mode*/
psci->sciacr1.byte |= SCIACR1_RXEDGIE_MASK;
PTS_PTS2=0;
PTS_PTS3=0;
PTS_PTS0=0;
PTP_PTP5=0;//INA
PTP_PTP3=0;//INB
PTP_PTP1=0;
PTS_PTS1=0;
cpu_stop_mode_flg = 1;
ADC0_stop_current_workaround ();
asm(andcc #0x6f);
asm(stop);
}
if(IDLE == lin_lld_get_state())
{
if (cpu_stop_mode_flg)
{
/* Clear stop mode flag */
cpu_stop_mode_flg = 0;
/* Disable Active Edge Detect Circuit in stop mode*/
psci->sciacr1.byte &= ~SCIACR1_RXEDGIE_MASK;
HAL_Init(); //LIN Node initialisation
HallSensorON();
// ADC0CTL_0_ADC_EN=1;
// Middle_LIN_NODE_Init();// Clock initialisation at 8MHz
}
}
On Wed, Oct 26, 2016 at 12:32 AM, RadekS <admin@community.freescale.com>