dev_cdc_virtual_com task expansion using FreeRTOS possible?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

dev_cdc_virtual_com task expansion using FreeRTOS possible?

548 Views
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?

Labels (1)
0 Kudos
4 Replies

414 Views
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 Kudos

414 Views
odt
Contributor I

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

Problem solved.

0 Kudos

414 Views
odt
Contributor I

Despite large stack it was too small....

0 Kudos

414 Views
odt
Contributor I

Attached is the modified file

0 Kudos