I'm using frdm-k28 and P&E opensda onboard debuger, in a freertos project, the problem is tasks listed in < debug > window, but not listed in <Task List (FreeRTOS)> window. anyone met and fixed this problem ?
The < Heap Usage (FreeRTOS) > window works as blew pic.
that message is from the P&E debug connection which properly shows the threads in your screenshot. So P&E is working fine. What somehow does not work is the NXP Thread List in that view.
There are some debug logs of that view present in your workspace.
Can you check (or better: post) the log files present inside your workspace folder? They are located in a folder named FreeRTOS_TAD_logs?
I hope this helps,
The log message is:
"FreeRTOS Task Aware Debugger for GDB" version 1.0.2 (201704101406)
(c) 2016 NXP Semiconductors, Inc.
21:32:43.219 INFO: [TadModel] DSF session ID 10 has started.
21:32:46.889 INFO: [TadState] TAD state changed: DEBUG_STARTED -> DEBUG_INIT_0 (SUSPENDED, USER_REQUEST)
21:32:58.251 INFO: [TadState] TAD state changed: DEBUG_INIT_0 -> DEBUG_INIT_1 (RESUMED, USER_REQUEST)
21:32:58.347 INFO: [TadState] TAD state changed: DEBUG_INIT_1 -> DEBUG_SUSPENDED (SUSPENDED, BREAKPOINT)
21:32:59.891 INFO: [TadState] TAD state changed: DEBUG_SUSPENDED -> DEBUG_RESUMED (RESUMED, USER_REQUEST)
08:05:24.530 INFO: [TadModel] DSF session ID 10 has ended.
any help ?
Ok, that log does not show anything interesting. Are you able to share your project so I can have a look? It might be some optimization settings or some settings, not sure.
the problem is created by your app task
xTaskCreate(app, "App", 1024 * 20, NULL, uart_task_PRIORITY, NULL);
Above you are creating that task with 80 kByte (!!!) stack. This causes problem in the task view (of course it should not create that issue, so I have reported it to the developer).
If you use 4K (1024) instead of 80KByte, the problem goes away.
Can you give this a try?