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

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

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

跳至解决方案
1,354 次查看
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

 

 

 

 

标记 (3)
0 项奖励
1 解答
677 次查看
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

在原帖中查看解决方案

13 回复数
1,317 次查看
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 项奖励
1,267 次查看
jwkang
Contributor III

Sure.

I already enabled clock.

 

jwkang_0-1706689059974.png

 

标记 (3)
0 项奖励
1,259 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @jwkang,

Do you still have the issue?

 

BR, Daniel

0 项奖励
1,253 次查看
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 项奖励
1,248 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Please be specific, what kind of warning?

 

Thank you,

Daniel

0 项奖励
1,243 次查看
jwkang
Contributor III

It's clock mismatch warning.

 

jwkang_0-1706778070201.png

 

标记 (2)
0 项奖励
1,235 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Which version of SW32K3 FreeRTOS do you have?

 

Thank you

 

0 项奖励
1,208 次查看
jwkang
Contributor III
FreeRTOS Kernel V10.5.1
I checked in freeRTOS.h file
0 项奖励
1,203 次查看
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 项奖励
1,072 次查看
jwkang
Contributor III

S32DS Project from Example

jwkang_0-1707358137185.png

 

0 项奖励
795 次查看
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 项奖励
705 次查看
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 项奖励
678 次查看
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