Internal RTC as wakeup source for S32k358 Non-AUTOSAR

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

Internal RTC as wakeup source for S32k358 Non-AUTOSAR

Jump to solution
2,394 Views
agouda
Contributor II

Dear NXP team,

Using S32DS IDE  ( RTD 5.0 ) for Non-AUTOSAR configuration (not EB)

I am trying to configure wake up soures as below :

1 - PTD_27 ( external pin PTD_27 WKPU[51] , wakeup channel 55)

2- Internal RTC ( RTC-API RTC timeout).

 

by pressing on switch at PTD_0 : the controller goes to standby mode ( Power_Ip_SetMode(pointer to standby mode)).

 

wake up via external source  PTD_27 ( wakeup channel 55) is working fine, and the controller wakes up as expected.

 

wake up via RTC is not working for some reason. even I have configured ( WKPU , POWER, RTC, Clock [2 configurations] ).

 

I have attached my project for you to check it ( RTD 5.0 ). please let me know if you need more infomration.

 

I would appriate your support.

 

thanks in advance

Tags (1)
0 Kudos
Reply
1 Solution
2,332 Views
agouda
Contributor II

Hi Robin,

 

thank you for the hint. 


I enabled SIRC in standby mode, and it's waking up now periodically as expected.

 

BR

Abdullah

 

View solution in original post

0 Kudos
Reply
3 Replies
2,333 Views
agouda
Contributor II

Hi Robin,

 

thank you for the hint. 


I enabled SIRC in standby mode, and it's waking up now periodically as expected.

 

BR

Abdullah

 

0 Kudos
Reply
2,387 Views
agouda
Contributor II

to add more infomration about RTC. 

below is debugger screenshot for RTC registers before go to standby mode.

 

agouda_0-1742816879797.pngagouda_0-1742816879797.png

 

0 Kudos
Reply
2,348 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

RTC can be the low-mode wakeup source when SIRC is configured to be enabled in standby mode.

Sirc Standby Configuration Sirc is enabled in standby mode RTC timeout wakeup.pngSirc Standby Configuration Sirc is enabled in standby mode RTC timeout wakeup.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" 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.
-------------------------------------------------------------------------------

%3CLINGO-SUB%20id%3D%22lingo-sub-2067207%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EInternal%20RTC%20as%20wakeup%20source%20for%20S32k358%20Non-AUTOSAR%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2067207%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20NXP%20team%2C%3C%2FP%3E%3CP%3EUsing%20S32DS%20IDE%26nbsp%3B%20(%20RTD%205.0%20)%20for%20Non-AUTOSAR%20configuration%20(not%20EB)%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20configure%20wake%20up%20soures%20as%20below%20%3A%3C%2FP%3E%3CP%3E1%20-%20PTD_27%20(%20external%20pin%20PTD_27%20WKPU%5B51%5D%20%2C%20wakeup%20channel%2055)%3C%2FP%3E%3CP%3E2-%20Internal%20RTC%20(%26nbsp%3BRTC-API%20RTC%20timeout).%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Eby%20pressing%20on%20switch%20at%20PTD_0%20%3A%20the%20controller%20goes%20to%20standby%20mode%20(%26nbsp%3BPower_Ip_SetMode(pointer%20to%20standby%20mode)).%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ewake%20up%20via%20external%20source%26nbsp%3B%20PTD_27%20(%20wakeup%20channel%2055)%20is%20working%20fine%2C%20and%20the%20controller%20wakes%20up%20as%20expected.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ewake%20up%20via%20RTC%20is%20not%20working%20for%20some%20reason.%20even%20I%20have%20configured%20(%20WKPU%20%2C%20POWER%2C%20RTC%2C%20Clock%20%5B2%20configurations%5D%20).%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20have%20attached%20my%20project%20for%20you%20to%20check%20it%20(%20RTD%205.0%20).%20please%20let%20me%20know%20if%20you%20need%20more%20infomration.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20would%20appriate%20your%20support.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ethanks%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2069466%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Internal%20RTC%20as%20wakeup%20source%20for%20S32k358%20Non-AUTOSAR%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2069466%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Robin%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ethank%20you%20for%20the%20hint.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI%20enabled%20SIRC%20in%20standby%20mode%2C%20and%20it's%20waking%20up%20now%20periodically%20as%20expected.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBR%3C%2FP%3E%3CP%3EAbdullah%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2068738%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Internal%20RTC%20as%20wakeup%20source%20for%20S32k358%20Non-AUTOSAR%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2068738%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3ERTC%20can%20be%20the%20low-mode%20wakeup%20source%20when%20%3CSTRONG%3ESIRC%3C%2FSTRONG%3E%20is%20configured%20to%20be%20%3CSTRONG%3Eenabled%20in%20standby%20mode%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sirc%20Standby%20Configuration%20Sirc%20is%20enabled%20in%20standby%20mode%20RTC%20timeout%20wakeup.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sirc%20Standby%20Configuration%20Sirc%20is%20enabled%20in%20standby%20mode%20RTC%20timeout%20wakeup.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F329905i37571933EF902A23%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Sirc%20Standby%20Configuration%20Sirc%20is%20enabled%20in%20standby%20mode%20RTC%20timeout%20wakeup.png%22%20alt%3D%22Sirc%20Standby%20Configuration%20Sirc%20is%20enabled%20in%20standby%20mode%20RTC%20timeout%20wakeup.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESirc%20Standby%20Configuration%20Sirc%20is%20enabled%20in%20standby%20mode%20RTC%20timeout%20wakeup.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3ERobin%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22ACCEPT%20AS%20SOLUTION%22%20button.%20Thank%20you!%3C%2FP%3E%0A%3CP%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2067243%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Internal%20RTC%20as%20wakeup%20source%20for%20S32k358%20Non-AUTOSAR%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2067243%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eto%20add%20more%20infomration%20about%20RTC.%26nbsp%3B%3C%2FP%3E%3CP%3Ebelow%20is%20debugger%20screenshot%20for%20RTC%20registers%20before%20go%20to%20standby%20mode.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22agouda_0-1742816879797.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22agouda_0-1742816879797.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F329518iAF3B80DA2DE182EE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22agouda_0-1742816879797.png%22%20alt%3D%22agouda_0-1742816879797.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Eagouda_0-1742816879797.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E