Issue with SysTick 1ms Timing Mechanism in S32K3 Chip with RTD 6.0.0

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

Issue with SysTick 1ms Timing Mechanism in S32K3 Chip with RTD 6.0.0

跳至解决方案
299 次查看
chenwilsoft
Contributor II

I am using RTD 6.0.0 and have set the System Timer Clock Frequency in BaseNXP. However, the parameter SystemCounterFreq passed in the OsIf_Timer_System_Internal_Init function is not being used. When the OS is not used, SYSTICK_MAX is assigned to the RVR register. As a result, SysTick cannot implement a 1ms timing mechanism.

chenwilsoft_0-1758390476110.pngchenwilsoft_1-1758390491670.png

 

0 项奖励
回复
1 解答
239 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@chenwilsoft

I read the implementation of this function, and it is indeed the same as what you said. If "USING_OS_FREERTOS" is not defined, then its default value will be set to the maximum value and the user-defined value will be ignored.

Senlent_0-1758526889359.png

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
240 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@chenwilsoft

I read the implementation of this function, and it is indeed the same as what you said. If "USING_OS_FREERTOS" is not defined, then its default value will be set to the maximum value and the user-defined value will be ignored.

Senlent_0-1758526889359.png

 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2173088%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%BD%BF%E7%94%A8%20RTD%206.0.0%20%E7%9A%84%20S32K3%20%E8%8A%AF%E7%89%87%E4%B8%AD%E7%9A%84%20SysTick%201ms%20%E5%AE%9A%E6%97%B6%E6%9C%BA%E5%88%B6%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2173088%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3E%E6%88%91%E4%BD%BF%E7%94%A8%E7%9A%84%E6%98%AF%20RTD%206.0.0%EF%BC%8C%E5%B9%B6%E5%9C%A8%20BaseNXP%20%E4%B8%AD%E8%AE%BE%E7%BD%AE%E4%BA%86%E7%B3%BB%E7%BB%9F%E5%AE%9A%E6%97%B6%E5%99%A8%E6%97%B6%E9%92%9F%E9%A2%91%E7%8E%87%E3%80%82%E4%BD%86%E6%98%AF%EF%BC%8C%E5%9C%A8%20OsIf_Timer_System_Internal_Init%20%E5%87%BD%E6%95%B0%E4%B8%AD%E4%BC%A0%E9%80%92%E7%9A%84%E5%8F%82%E6%95%B0%20SystemCounterFreq%20%E6%B2%A1%E6%9C%89%E8%A2%AB%E4%BD%BF%E7%94%A8%E3%80%82%E4%B8%8D%E4%BD%BF%E7%94%A8%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E6%97%B6%EF%BC%8CSYSTICK_MAX%20%E5%88%86%E9%85%8D%E7%BB%99%20RVR%20%E5%AF%84%E5%AD%98%E5%99%A8%E3%80%82%E5%9B%A0%E6%AD%A4%EF%BC%8CSysTick%20%E6%97%A0%E6%B3%95%E5%AE%9E%E7%8E%B0%201ms%20%E7%9A%84%E5%AE%9A%E6%97%B6%E6%9C%BA%E5%88%B6%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22chenwilsoft_0-1758390476110.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22chenwilsoft_0-1758390476110.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357831i27412CFAD731D149%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22chenwilsoft_0-1758390476110.png%22%20alt%3D%22chenwilsoft_0-1758390476110.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22chenwilsoft_1-1758390491670.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22chenwilsoft_1-1758390491670.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357832i5A3C77D221897F39%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22chenwilsoft_1-1758390491670.png%22%20alt%3D%22chenwilsoft_1-1758390491670.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2173363%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20SysTick%201ms%20Timing%20Mechanism%20in%20S32K3%20Chip%20with%20RTD%206.0.0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2173363%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHi%40chenwilsoft%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%E6%88%91%E7%9C%8B%E4%BA%86%E8%BF%99%E4%B8%AA%E5%87%BD%E6%95%B0%E7%9A%84%E5%AE%9E%E7%8E%B0%EF%BC%8C%E7%A1%AE%E5%AE%9E%E5%92%8C%E4%BD%A0%E8%AF%B4%E7%9A%84%E4%B8%80%E6%A0%B7%E3%80%82%E5%A6%82%E6%9E%9C%22USING_OS_FREERTOS%22%20%E6%9C%AA%E5%AE%9A%E4%B9%89%EF%BC%8C%E5%88%99%E5%85%B6%E9%BB%98%E8%AE%A4%E5%80%BC%E5%B0%86%E8%AE%BE%E4%B8%BA%E6%9C%80%E5%A4%A7%E5%80%BC%EF%BC%8C%E7%94%A8%E6%88%B7%E5%AE%9A%E4%B9%89%E7%9A%84%E5%80%BC%E5%B0%86%E8%A2%AB%E5%BF%BD%E7%95%A5%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1758526889359.png%22%20style%3D%22width%3A%20703px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1758526889359.png%22%20style%3D%22width%3A%20703px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F357915i0B6BB3A8AB877AEB%2Fimage-dimensions%2F703x239%3Fv%3Dv2%22%20width%3D%22703%22%20height%3D%22239%22%20role%3D%22button%22%20title%3D%22Senlent_0-1758526889359.png%22%20alt%3D%22Senlent_0-1758526889359.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E