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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

959件の閲覧回数
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 返信

764件の閲覧回数
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 件の賞賛