A probably error in S32K SDK

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

A probably error in S32K SDK

1,568件の閲覧回数
945595199
Contributor I

Hello: 

   I have found a error in the power_smc_hw_access.c in S32_SDK_DFP1.2.0 that in line 363 the register to juge is SMC->PMPROT but the mask bit is PMCTRL, is this a error? ( The Appendix below shows )

   And I have met a application problem: When I allow going to VLPS/HSRUN mode by setting the bits in PMPORT, then go into VLPS mode, but I get a 1 status by reading VLPSA in PMCTRL after wakup by GPIO interrupt. And Only when I make POR reset, the status is correct indicating that I have succeffuly gone into VLPS.

   Thanks! Best Regards!

Appendix:

static bool SMC_CheckVlpsa(const SMC_Type * const baseAddr)
{
bool retValue;
uint32_t regValue = (uint32_t)baseAddr->PMPROT;

regValue = (regValue & SMC_PMCTRL_VLPSA_MASK) >> SMC_PMCTRL_VLPSA_SHIFT;
retValue = (regValue == 0UL) ? false : true;

return retValue;
}

ラベル(1)
タグ(1)
0 件の賞賛
返信
2 返答(返信)

1,456件の閲覧回数
945595199
Contributor I

Somebody meet the same confuse?

0 件の賞賛
返信

1,456件の閲覧回数
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello Dan,

You are right, the code is not correct. However, this SW is from Keil MDK. I suggest contacting directly Keil Product Support 

Best regards,

Diana

0 件の賞賛
返信