dev_cdc_virtual_com task expansion using FreeRTOS possible?

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

dev_cdc_virtual_com task expansion using FreeRTOS possible?

1,672 次查看
odt
Contributor I

Hi

In order to explore the possibilities of the USB on a FRDM-MKL27, I have used the dev_cdc_virtual_com (virtual_com) example using a Keil development suite. The example seems to be working though I experience problems expanding the number of tasks running. I have added a simple task that only is to toggle the LED and then wait.

Both tasks are executed during initialization before the OSA_Start is executed. Unfortunately only the first of the tasks is able to run - either the USB port OR the LED flashing. How to fix the minor expansion of the default example?

标签 (1)
0 项奖励
回复
4 回复数

1,538 次查看
ivadorazinova
NXP Employee
NXP Employee

Hi Ole,

I recommend to you change priority for task 2.

You cannot have defined two tasks with the same priorities.

task2.png

Please, set TASK_2_PRIO on value 5U

I hope this helps.

Best Regards,

Iva

0 项奖励
回复

1,538 次查看
odt
Contributor I

It was based on a simple beginners fault - too small stack.

Problem solved.

0 项奖励
回复

1,538 次查看
odt
Contributor I

Despite large stack it was too small....

0 项奖励
回复

1,538 次查看
odt
Contributor I

Attached is the modified file

0 项奖励
回复