S32DS FreeRTOS Configuration Tool uses wrong clock source for RTOS tick generation

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

S32DS FreeRTOS Configuration Tool uses wrong clock source for RTOS tick generation

Jump to solution
809 Views
DirkEtzler
Contributor III

For some of my test where I am using FreeRTOS, I need to set the CM7_CORE_CLK to the maxium frequency value (e.g., CM7_CORE_CLOCK=320MHz).  Due to defined constraints the CORE_CLK needs to be set to CORE_CLK=160MHz.

Screenshot 2026-02-02 143256.png

As it looks like, the clock definition for FreeRTOS is fetched from CORE_CLK = 160MHz.  Per my understanding, the provided "standard" implementation, FreeRTOS is using the SysTick timer to generate its RTOS tick.  Furthermore, also per my understanding, the SysTick timer is driven by CM7_CORE_CLK and not by CORE_CLK.  (As simple test showed the system running a double frequency when compiling this way.)

Screenshot 2026-02-02 143211.png

I can try to override the value using the CM7_CORE_CLK but get the warning as shown above.  Is this an error of the S32DS configuration tool or do I miss anything else here?

Tags (2)
0 Kudos
Reply
1 Solution
660 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Thank you for the report! This will be corrected in the next FreeRTOS s32k3xx release. 

View solution in original post

4 Replies
725 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

My software colleague told me:
The warning is safe to be ignored, has no implications on software behavior.
The user should set the real clock frequency input as he already did and can safely ignore the warning.

0 Kudos
Reply
681 Views
DirkEtzler
Contributor III

Hi @Robin_Shen,

thanks for the reply.  I understand I can enter the correct core frequency CM7_CORE_CLK into the field and safely ignore the resulting warning.

Is there a plan to fix that issue in the future?  I am not a fan of unnecessary warnings as they may clutter other important warnings and create additional effort in the build process.

Thanks.

661 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Thank you for the report! This will be corrected in the next FreeRTOS s32k3xx release. 

766 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Thank you for your report.
Let me contact the software team for a solution.

Best Regards,
Robin

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2304802%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32DS%20FreeRTOS%20Configuration%20Tool%20uses%20wrong%20clock%20source%20for%20RTOS%20tick%20generation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2304802%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFor%20some%20of%20my%20test%20where%20I%20am%20using%20FreeRTOS%2C%20I%20need%20to%20set%20the%20CM7_CORE_CLK%20to%20the%20maxium%20frequency%20value%20(e.g.%2C%20CM7_CORE_CLOCK%3D320MHz).%26nbsp%3B%20Due%20to%20defined%20constraints%20the%20CORE_CLK%20needs%20to%20be%20set%20to%20CORE_CLK%3D160MHz.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202026-02-02%20143256.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-02-02%20143256.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-02-02%20143256.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-02-02%20143256.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-02-02%20143256.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-02-02%20143256.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F375190i8AC4A010AE7DBF0A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%202026-02-02%20143256.png%22%20alt%3D%22Screenshot%202026-02-02%20143256.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%E2%80%83%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3EAs%20it%20looks%20like%2C%20the%20clock%20definition%20for%20FreeRTOS%20is%20fetched%20from%20CORE_CLK%20%3D%20160MHz.%26nbsp%3B%20Per%20my%20understanding%2C%20the%20provided%20%22standard%22%20implementation%2C%20FreeRTOS%20is%20using%20the%20SysTick%20timer%20to%20generate%20its%20RTOS%20tick.%26nbsp%3B%20Furthermore%2C%20also%20per%20my%20understanding%2C%20the%20SysTick%20timer%20is%20driven%20by%20CM7_CORE_CLK%20and%20not%20by%20CORE_CLK.%26nbsp%3B%20(As%20simple%20test%20showed%20the%20system%20running%20a%20double%20frequency%20when%20compiling%20this%20way.)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202026-02-02%20143211.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-02-02%20143211.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-02-02%20143211.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-02-02%20143211.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-02-02%20143211.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-02-02%20143211.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F375192i00DCD53141C8C899%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%202026-02-02%20143211.png%22%20alt%3D%22Screenshot%202026-02-02%20143211.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20can%20try%20to%20override%20the%20value%20using%20the%20CM7_CORE_CLK%20but%20get%20the%20warning%20as%20shown%20above.%26nbsp%3B%20Is%20this%20an%20error%20of%20the%20S32DS%20configuration%20tool%20or%20do%20I%20miss%20anything%20else%20here%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2305636%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32DS%20FreeRTOS%20Configuration%20Tool%20uses%20wrong%20clock%20source%20for%20RTOS%20tick%20generation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2305636%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20report.%3CBR%20%2F%3ELet%20me%20contact%20the%20software%20team%20for%20a%20solution.%3C%2FP%3E%0A%3CP%3EBest%20Regards%2C%3CBR%20%2F%3ERobin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2312420%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32DS%20FreeRTOS%20Configuration%20Tool%20uses%20wrong%20clock%20source%20for%20RTOS%20tick%20generation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2312420%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMy%20software%20colleague%20told%20me%3A%3CBR%20%2F%3EThe%20warning%20is%20safe%20to%20be%20ignored%2C%20has%20no%20implications%20on%20software%20behavior.%3CBR%20%2F%3EThe%20user%20should%20set%20the%20real%20clock%20frequency%20input%26nbsp%3Bas%20he%20already%20did%20and%20can%20safely%20ignore%20the%20warning.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2314190%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32DS%20FreeRTOS%20Configuration%20Tool%20uses%20wrong%20clock%20source%20for%20RTOS%20tick%20generation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314190%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F57959%22%20target%3D%22_blank%22%3E%40Robin_Shen%3C%2FA%3E%2C%3C%2FP%3E%3CP%3Ethanks%20for%20the%20reply.%26nbsp%3B%20I%20understand%20I%20can%20enter%20the%20correct%20core%20frequency%20CM7_CORE_CLK%20into%20the%20field%20and%20safely%20ignore%20the%20resulting%20warning.%3C%2FP%3E%3CP%3EIs%20there%20a%20plan%20to%20fix%20that%20issue%20in%20the%20future%3F%26nbsp%3B%20I%20am%20not%20a%20fan%20of%20unnecessary%20warnings%20as%20they%20may%20clutter%20other%20important%20warnings%20and%20create%20additional%20effort%20in%20the%20build%20process.%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2314219%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32DS%20FreeRTOS%20Configuration%20Tool%20uses%20wrong%20clock%20source%20for%20RTOS%20tick%20generation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314219%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20the%20report!%20This%20will%20be%20corrected%20in%20the%20next%20FreeRTOS%20s32k3xx%20release.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E