S32k344'Rtc wake up

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32k344'Rtc wake up

跳至解决方案
4,626 次查看
luyq
Contributor III

Hello

 I have tested the S32k344's Rtc wake up.And i find only set to 1S to wake up,other can not.Could you help me?

Thanks.

0 项奖励
回复
1 解答
4,573 次查看
Jeremy_He
NXP Employee
NXP Employee

Hi Lu, 

Please see the attached S32K3 standby RTC wakeup demo Build on S32K3EVB and S32K344-WB with RTD LLD 0.9.0 and S32DS3.4.  In this example, it was set to 5s wakeup period by RTC instead of API. For more details please see the readme.txt.

 

Best wishes.

Jeremy He

 

在原帖中查看解决方案

11 回复数
256 次查看
AbdNxp
Contributor I
SysStatus_t RTCInit(void)
{
Rtc_Ip_TimedateType defaultTimeDate = {1970,1,1,0,0,0};
 
NVIC_SetPriority(RTC_IRQn,2);
Rtc_Ip_Init(0, &RTC_0_InitConfig_PB_BOARD_InitPeripherals);
RTCDate_t dateNow = RTCGetDate();
if( defaultTimeDate.year > dateNow.year &&
defaultTimeDate.month > dateNow.month &&
defaultTimeDate.day > dateNow.day)
{
Rtc_Ip_SetTimeDate(0,&defaultTimeDate);
}
 
Rtc_Ip_EnableInterrupt(0,RTC_IP_COUNTER_INTERRUPT);
Rtc_Ip_StartCounter(0);
return SYS_SUCCESS;
}
I am trying to use RTC in S32K344.
above is my init function.
clock is enabled with clk src0
freeze mode enabled.
This issue is I do not see in increment in time even if the counter is ebabled.
0 项奖励
回复
4,574 次查看
Jeremy_He
NXP Employee
NXP Employee

Hi Lu, 

Please see the attached S32K3 standby RTC wakeup demo Build on S32K3EVB and S32K344-WB with RTD LLD 0.9.0 and S32DS3.4.  In this example, it was set to 5s wakeup period by RTC instead of API. For more details please see the readme.txt.

 

Best wishes.

Jeremy He

 

2,537 次查看
GiangHM
Contributor I

Hi ,

Do you have example using RTD MCAL ?

0 项奖励
回复
2,507 次查看
Jeremy_He
NXP Employee
NXP Employee

Hi

Please refer to the attachment project configured by EB tresos and RTD2.0.0 version.

 

 

Best Regards,

Jeremy

0 项奖励
回复
2,499 次查看
GiangHM
Contributor I

I am using S32DS tool to config. Do you have other  project using both mcal and S32DS tool?  I want to open config file to see configuration of MCU module.

0 项奖励
回复
2,481 次查看
Jeremy_He
NXP Employee
NXP Employee

Hi

 

Do you mean config MCAL with S32CT(RTD High Level Driver)? Currently we don't have this, may add it in the future.

 

Best Regards,

Jeremy

0 项奖励
回复
3,152 次查看
WXM
Contributor II
Hello, there is a routine to wake up S32K344 by GPIO, using EB tool configuration routine
0 项奖励
回复
3,726 次查看
1260784871
Contributor II

1260784871_0-1661318411008.png

 

0 项奖励
回复
4,569 次查看
luyq
Contributor III

Ok,thanks.

标记 (1)
0 项奖励
回复
4,613 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi luyq,

If you configure RTCVAL to 1s, then you may need to modify APIVAL and use RTC API wakeup.

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复
4,609 次查看
luyq
Contributor III

I originally used APIVAL,but it doesn't work.

0 项奖励
回复