Can I set the clock as the default clock in Freertos settings in ConfigTools? (S32DS 3.5, RTD 3.0.0)

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

Can I set the clock as the default clock in Freertos settings in ConfigTools? (S32DS 3.5, RTD 3.0.0)

Jump to solution
1,188 Views
jwkang
Contributor III

Hello,

I am developing using S32K314. My development environment uses S32DS 3.5 for IDE and SW32K3_RTD_R21-11_3.0.0_P07 for RTD.

I am setting up my development environment using ConfigTools.
The FreeRTOS component was added and set, and the FreeRTOS clock is set in the FreeRTOS configuration settings. I want to set the config mode to "Default Clock", but cpu clock [Hz] is only set to 0.
So, I am currently using it by forcibly setting the clock to “User Clock”. In this case, a warning message occurs.

Please tell me how to make the clock apply automatically when set to "Default clock".

 

jwkang_1-1706081816415.png

 

 

 

 

0 Kudos
1 Solution
511 Views
nxf78987
NXP Employee
NXP Employee

Hello @jwkang,

After checking the freertos.component file, the default value of cpu clock was obtained from the symbol default "ClockConfig0". So, if you change to ClockConfig2 then the cpu clock can't get from clock configuration tool and this is a bug of freertos. And, the FreeRTOS team raised a bug ticket for this issue and it will be fixed on the releases in the future. 

nxf78987_0-1709784266636.png

Best regards,

Dan

View solution in original post

13 Replies
1,151 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @jwkang,

Did you enable the clocks?

danielmartynek_0-1706106270036.png

 

Once it is enabled, you should see the core clock frequency there:

danielmartynek_1-1706106351916.png

 

BR, Daniel

 

 

 

0 Kudos
1,101 Views
jwkang
Contributor III

Sure.

I already enabled clock.

 

jwkang_0-1706689059974.png

 

Tags (3)
0 Kudos
1,093 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @jwkang,

Do you still have the issue?

 

BR, Daniel

0 Kudos
1,087 Views
jwkang
Contributor III

Yes, there is still a warning issue in the project.
I am using it as the "user clock" value. So there are no problems with the project progress.
I just want to know if it's a problem with my settings incorrectly or an SDK problem.

0 Kudos
1,082 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Please be specific, what kind of warning?

 

Thank you,

Daniel

0 Kudos
1,077 Views
jwkang
Contributor III

It's clock mismatch warning.

 

jwkang_0-1706778070201.png

 

Tags (2)
0 Kudos
1,069 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Which version of SW32K3 FreeRTOS do you have?

 

Thank you

 

0 Kudos
1,042 Views
jwkang
Contributor III
FreeRTOS Kernel V10.5.1
I checked in freeRTOS.h file
0 Kudos
1,037 Views
danielmartynek
NXP TechSupport
NXP TechSupport

I mean the version of the SW32K3 not the Kernel

danielmartynek_0-1706860649929.png

Also, have you tried creating a new FreeRTOS project from Example?

danielmartynek_1-1706860765960.png

 

BR, Daniel

 

 

0 Kudos
906 Views
jwkang
Contributor III

S32DS Project from Example

jwkang_0-1707358137185.png

 

0 Kudos
629 Views
nxf78987
NXP Employee
NXP Employee

Hello @jwkang,

Your image indicated that you are using D2303 - SW32K3_RTD_4.4_R21-11_3.0.0 instead of D2306 - SW32K3_RTD_R21-11_3.0.0_P07 as you said. This is the correct package you need to install with FreeRTOS 10.5.1

nxf78987_0-1708948360834.png

I checked your issue on this package and there is no error occur with S32K314 (cpu clock always link correct the CORE_CLK value on the Clock tool configuration).

Best regards,

Dan

0 Kudos
539 Views
jwkang
Contributor III

I tested it, and it doesn't seem to have anything to do with the update.
In the Functional Group of Clocks, the default name is ClockConfig0. Even if you change this name slightly, problems will arise.

It appears to be a problem related to the ClockConfig0 name.

 

jwkang_0-1709604038298.png

ClockConfig0 -> OK
ClockConfig2 -> Not ok.

 

 

0 Kudos
512 Views
nxf78987
NXP Employee
NXP Employee

Hello @jwkang,

After checking the freertos.component file, the default value of cpu clock was obtained from the symbol default "ClockConfig0". So, if you change to ClockConfig2 then the cpu clock can't get from clock configuration tool and this is a bug of freertos. And, the FreeRTOS team raised a bug ticket for this issue and it will be fixed on the releases in the future. 

nxf78987_0-1709784266636.png

Best regards,

Dan