EcuM Alarm Function

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

EcuM Alarm Function

106 Views
ydygcvjhbjkjnkn
Contributor I

Hello,

Regarding the EcuM alarm clock issue, I have consulted some materials and the manual, but there are a few points I do not quite understand, so I would like to ask for your help. Thank you.

  1. In the EcuM manual, in the section introducing configuration items, how is the configuration item EcuMAlarmClockTimeOut used? It seems that I have not used it in my design.

  2. How is the EcuM alarm clock updated? Currently, during the UP phase, I update it in the main function using the main function scheduling cycle. However, the documentation says that it should be implemented by a hardware timer. I am concerned that task blocking or preemption may cause the main function scheduling cycle to be incorrect. How should it be implemented using a hardware timer?

  3. How should it be implemented during the SLEEP phase? The documentation mentions the POLL phase, where EcuM_SetClock is used in EcuM_SleepActivity for updating. After updating, where is the timeout checked? Is it in EcuM_CheckWakeup? And what about the HALT phase? Where is the clock updated and the timeout checked?

  4. If the configured alarm has already expired before entering sleep, what should I do? Should I directly skip entering sleep, or should I set the alarm wake‑up source to suspend and notify BswM of the alarm wake‑up source status?

I look forward to your reply. Thank you. In addition, please provide the basis and supporting points, indicating which parts of the manual can be referred to for confirming the implementation approach. Thanks again in advance.

0 Kudos
Reply
3 Replies

70 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @ydygcvjhbjkjnkn,

Can you please specify the drivers/revision, and the MCU part number?

 

Thank you,

BR, Daniel

0 Kudos
Reply

69 Views
ydygcvjhbjkjnkn
Contributor I

I am referring to the AUTOSAR EcuM specification manual, version 4.2.2. The MCU part number may not be fixed.

0 Kudos
Reply

64 Views
danielmartynek
NXP TechSupport
NXP TechSupport

AUTOSAR 4.2.2 is an outdated specification, and no currently supported NXP Real-Time Drivers (RTD) package is based on it. The only NXP software that was aligned with AUTOSAR 4.2.2 was the legacy MCAL for S32K1xx, which is no longer supported.

Also, please note that NXP support covers only NXP's own RTD/MCAL driver implementations. If you are using a BSW stack from a third-party vendor, their EcuM implementation is outside the scope of what we can support here, and you would need to contact that vendor directly.

 

Regards,

Daniel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2409832%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EEcuM%20Alarm%20Function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2409832%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EHello%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3ERegarding%20the%20EcuM%20alarm%20clock%20issue%2C%20I%20have%20consulted%20some%20materials%20and%20the%20manual%2C%20but%20there%20are%20a%20few%20points%20I%20do%20not%20quite%20understand%2C%20so%20I%20would%20like%20to%20ask%20for%20your%20help.%20Thank%20you.%3C%2FSPAN%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EIn%20the%20EcuM%20manual%2C%20in%20the%20section%20introducing%20configuration%20items%2C%20how%20is%20the%20configuration%20item%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3EEcuMAlarmClockTimeOut%3CSPAN%20class%3D%22%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eused%3F%20It%20seems%20that%20I%20have%20not%20used%20it%20in%20my%20design.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EHow%20is%20the%20EcuM%20alarm%20clock%20updated%3F%20Currently%2C%20during%20the%20UP%20phase%2C%20I%20update%20it%20in%20the%20main%20function%20using%20the%20main%20function%20scheduling%20cycle.%20However%2C%20the%20documentation%20says%20that%20it%20should%20be%20implemented%20by%20a%20hardware%20timer.%20I%20am%20concerned%20that%20task%20blocking%20or%20preemption%20may%20cause%20the%20main%20function%20scheduling%20cycle%20to%20be%20incorrect.%20How%20should%20it%20be%20implemented%20using%20a%20hardware%20timer%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EHow%20should%20it%20be%20implemented%20during%20the%20SLEEP%20phase%3F%20The%20documentation%20mentions%20the%20POLL%20phase%2C%20where%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3EEcuM_SetClock%3CSPAN%20class%3D%22%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eis%20used%20in%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3EEcuM_SleepActivity%3CSPAN%20class%3D%22%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%20updating.%20After%20updating%2C%20where%20is%20the%20timeout%20checked%3F%20Is%20it%20in%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3EEcuM_CheckWakeup%3CSPAN%20class%3D%22%22%3E%3F%20And%20what%20about%20the%20HALT%20phase%3F%20Where%20is%20the%20clock%20updated%20and%20the%20timeout%20checked%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EIf%20the%20configured%20alarm%20has%20already%20expired%20before%20entering%20sleep%2C%20what%20should%20I%20do%3F%20Should%20I%20directly%20skip%20entering%20sleep%2C%20or%20should%20I%20set%20the%20alarm%20wake%E2%80%91up%20source%20to%20suspend%20and%20notify%20BswM%20of%20the%20alarm%20wake%E2%80%91up%20source%20status%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EI%20look%20forward%20to%20your%20reply.%20Thank%20you.%20In%20addition%2C%20please%20provide%20the%20basis%20and%20supporting%20points%2C%20indicating%20which%20parts%20of%20the%20manual%20can%20be%20referred%20to%20for%20confirming%20the%20implementation%20approach.%20Thanks%20again%20in%20advance.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2409950%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EcuM%20Alarm%20Function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2409950%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAUTOSAR%204.2.2%20is%20an%20outdated%20specification%2C%20and%20no%20currently%20supported%20NXP%20Real-Time%20Drivers%20(RTD)%20package%20is%20based%20on%20it.%20The%20only%20NXP%20software%20that%20was%20aligned%20with%20AUTOSAR%204.2.2%20was%20the%20legacy%20MCAL%20for%20S32K1xx%2C%20which%20is%20no%20longer%20supported.%3C%2FP%3E%0A%3CP%3EAlso%2C%20please%20note%20that%20NXP%20support%20covers%20only%20NXP's%20own%20RTD%2FMCAL%20driver%20implementations.%20If%20you%20are%20using%20a%20BSW%20stack%20from%20a%20third-party%20vendor%2C%20their%20EcuM%20implementation%20is%20outside%20the%20scope%20of%20what%20we%20can%20support%20here%2C%20and%20you%20would%20need%20to%20contact%20that%20vendor%20directly.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2409947%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EcuM%20Alarm%20Function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2409947%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CEM%3E%3CSPAN%20class%3D%22%22%3EI%20am%20referring%20to%20the%20AUTOSAR%20EcuM%20specification%20manual%2C%20version%204.2.2.%20The%20MCU%20part%20number%20may%20not%20be%20fixed.%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2409936%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EcuM%20Alarm%20Function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2409936%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F231013%22%20target%3D%22_blank%22%3E%40ydygcvjhbjkjnkn%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3ECan%20you%20please%20specify%20the%20drivers%2Frevision%2C%20and%20the%20MCU%20part%20number%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThank%20you%2C%3C%2FP%3E%0A%3CP%3EBR%2C%20Daniel%3C%2FP%3E%3C%2FLINGO-BODY%3E