Hello,
I am working on the KW38 platform and use the wireless-uart example as my code base. I tried to create two tasks in my project, but it seems that only one task can be successfully created and run. I made an example as shown below and then tested it. I found that the priority of the TASK will determine which TASK will always be executed and another TASK will always be broken. I also tried to redefine FSL_OSA_BM_TIMER_CONFIG as FSL_OSA_BM_TIMER_SYSTICK to enable OS Timer and use OSA_TimeDelay(1000) to delay the running task so that another task can work, but it still doesn't work. Did I do something wrong?
Thank you.
Hi,
Did you find any solution to this problem?
You need to increase the stack size. It is in the app_preinclude.h.
Hello,
I can't find the stack size definition in app_preinclude.h (note: KW38 does not have FreeRots). I also referenced the app_preinclude.h of KW36 and found two definitions gMainThreadStackSize_c and gTotalHeapSize_c. But for KW38, only one stack size is defined as gMainThreadStackSize_c. I tried to extend this setting to 2048, but it still fails. Is there a more detailed explanation, Thank you.
Hi,
You are using bm example. So it is impossible to create the task. Please use the freertos example.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi,
As I mentioned before, the example code of KW38 does not provide FreeRTOS project, Could you please confirm again, Thanks.