How can I upgrade FreeRTOS 8.0.0 come with KSDK to FreeRTOS 8.2.1?

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

How can I upgrade FreeRTOS 8.0.0 come with KSDK to FreeRTOS 8.2.1?

ソリューションへジャンプ
751件の閲覧回数
yijunma
Contributor II

I set up a group of GPIO interrupt to do matrix keypad scan. When the ISR called, I call OSA_EventSet to signal the scan thread to do real scan.

But when I press the keypad quickly, the os kernel scheduler seems suspend all task that like the system hangup. So I replace all source code under [projectdir]\SDK\rtos\FreeRTOS\src with the latest FreeRTOS 8.2.1 source and leave the  [projectdir]\SDK\rtos\FreeRTOS\port\gcc as original KSDK copied and so as freertos_config.h. Then the problem gone...

Is it the right way to upgrade the freertos version?

 

UPDATE: Sorry, I am wrong, the problem remained....the running tasks stopped.

 

消息编辑者为:yijun ma

ラベル(1)
1 解決策
637件の閲覧回数
BlackNight
NXP Employee
NXP Employee

It seems to me that you have nested interrupts running, and you might face the problem of a stack overflow. I recommend that you increase the task stack size (configMINIMAL_STACK_SIZE).

The other thing I can point to: as you are using RTOS API calls from an interrupt service routine: have you configured configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY according to your interrupt levels? See RTOS for ARM Cortex-M

I hope this helps,

Erich

元の投稿で解決策を見る

2 返答(返信)
638件の閲覧回数
BlackNight
NXP Employee
NXP Employee

It seems to me that you have nested interrupts running, and you might face the problem of a stack overflow. I recommend that you increase the task stack size (configMINIMAL_STACK_SIZE).

The other thing I can point to: as you are using RTOS API calls from an interrupt service routine: have you configured configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY according to your interrupt levels? See RTOS for ARM Cortex-M

I hope this helps,

Erich

637件の閲覧回数
yijunma
Contributor II

Thank you Erich,

I will check these.

0 件の賞賛