Report a bug in S32K144 EAR_0.8.4 SDK function SMC_SetPowerMode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Report a bug in S32K144 EAR_0.8.4 SDK function SMC_SetPowerMode

812 Views
justinsheng
Contributor II

A bug in SDK EAR_0.8.4 has been detected (in power_smc_hw_access.c), which will halt the CPU if DEV_ASSERT is enabled:

status_t SMC_SetPowerMode(SMC_Type * const baseAddr,

                          const smc_power_mode_config_t * const powerModeConfig)

{

........ 

/* Previous code: */

    /*DEV_ASSERT((((uint16_t)SMC_GetPowerModeStatus(baseAddr)) & transitionTable[powerModeName]) != 0U);*/

/* Should be logic AND, not bit AND */

    DEV_ASSERT((((uint16_t)SMC_GetPowerModeStatus(baseAddr)) && transitionTable[powerModeName]) != 0U);

}

Hope NXP can fix it in the next SDK release.

Labels (1)
Tags (3)
0 Kudos
Reply
0 Replies