Suggestion: fix old/buggy FreeRTOSConfig.h in KSDK 2.1

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

Suggestion: fix old/buggy FreeRTOSConfig.h in KSDK 2.1

1,201 次查看
enginlee
Contributor II

Hi All,

 

I am testing K64F with the latest KSDK2.1 (SDK_2.1_MK64FN1M0xxx12.zip), and FreeRTOS + lwIP works very well with my board. Very good!

I just found a small bug about FreeRTOSConfig.h: Most of FreeRTOS configuration files are correct (version 9.0.0), but some of them are incorrect (version 8.2.1). Which causes the delay time is shorter then it should be, because of the mismatch between 96Mhz (#define configCPU_CLOCK_HZ (96000000UL)) and 120Mhz (based on clock setting for K64F).

Here is a list of old/buggy configuration files:

boards\frdmk64f\demo_apps\lwip\lwip_httpsrv\freertos\FreeRTOSConfig.h
boards\frdmk64f\demo_apps\lwip\lwip_ping\freertos\FreeRTOSConfig.h
boards\frdmk64f\demo_apps\lwip\lwip_tcpecho\freertos\FreeRTOSConfig.h
boards\frdmk64f\demo_apps\lwip\lwip_udpecho\freertos\FreeRTOSConfig.h
boards\frdmk64f\driver_examples\sdcard\freertos\FreeRTOSConfig.h

boards\twrk64f120m\demo_apps\lwip\lwip_httpsrv\freertos\FreeRTOSConfig.h
boards\twrk64f120m\demo_apps\lwip\lwip_ping\freertos\FreeRTOSConfig.h
boards\twrk64f120m\demo_apps\lwip\lwip_tcpecho\freertos\FreeRTOSConfig.h
boards\twrk64f120m\demo_apps\lwip\lwip_udpecho\freertos\FreeRTOSConfig.h
boards\twrk64f120m\driver_examples\sdcard\freertos\FreeRTOSConfig.h

 

BRs,

 

-Engin

标签 (1)
标记 (3)
1 回复

1,006 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Engin,

I see your bug report, the function BOARD_BootClockRUN() in  main() configures the clock as 120Mhz, but we define the wrong cou clock in FreeRTOSConfig.h with the line:

#define configCPU_CLOCK_HZ (96000000UL)

i will report the bug to development team.

thank you for pointing out the bug.

BR

Xiangjun Rong

0 项奖励
回复