<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MCUXpresso IDEのトピックRe: Freertos debug issue</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Freertos-debug-issue/m-p/1403317#M7752</link>
    <description>&lt;P&gt;Yes, you only will see something in the Timer view if there actually timers running by the application.&lt;/P&gt;&lt;P&gt;As for the Task views: Can you check the console view output? Usually it reports the issue there.&lt;/P&gt;&lt;P&gt;I have collected some tips as well here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/" target="_blank"&gt;https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 15:33:50 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2022-01-21T15:33:50Z</dc:date>
    <item>
      <title>Freertos debug issue</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Freertos-debug-issue/m-p/1403312#M7751</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a trouble in debugging a simple FreeRTOS project.&lt;/P&gt;&lt;P&gt;I'm using a MIMXRT1024-EVK board, MCUXpresso 11.5.0 and SDK 2.11.0.&lt;/P&gt;&lt;P&gt;The program is working fine, when I pause debugging, the debug view displays all threads, but no task is displayed in the FreeRTOS task list view; in all other FreeRTOS views are correctly displayed (except the timer list view, but no timer is created in my program, so I think this is the correct behaviour).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="biafra_0-1642778260724.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/168494iDF0F62F9E26202AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="biafra_0-1642778260724.png" alt="biafra_0-1642778260724.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="biafra_1-1642778495679.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/168495i99863EB79EAE7C20/image-size/large?v=v2&amp;amp;px=999" role="button" title="biafra_1-1642778495679.png" alt="biafra_1-1642778495679.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="biafra_3-1642778743730.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/168497i757962DB3A4749D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="biafra_3-1642778743730.png" alt="biafra_3-1642778743730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I have to check to correct this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 15:27:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Freertos-debug-issue/m-p/1403312#M7751</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2022-01-21T15:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Freertos debug issue</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Freertos-debug-issue/m-p/1403317#M7752</link>
      <description>&lt;P&gt;Yes, you only will see something in the Timer view if there actually timers running by the application.&lt;/P&gt;&lt;P&gt;As for the Task views: Can you check the console view output? Usually it reports the issue there.&lt;/P&gt;&lt;P&gt;I have collected some tips as well here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/" target="_blank"&gt;https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 15:33:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Freertos-debug-issue/m-p/1403317#M7752</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-01-21T15:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Freertos debug issue</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Freertos-debug-issue/m-p/1403362#M7753</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Many thanks for your quick answer.&lt;/P&gt;&lt;P&gt;The string "FreeRTOS stack backtrace is enabled" is present in the Debug messages view.&lt;/P&gt;&lt;P&gt;These messages are in the FreeRTOS Task Aware Debugger Console view:&lt;/P&gt;&lt;P&gt;16:49:48.607 INFO: [Benchmark] Loading data for "Determine RTOS version" has started.&lt;BR /&gt;16:49:48.643 INFO: [FreeRtosTadModel] Heap type (memory allocation scheme) has been identified from FreeRTOSDebugConfig structure as Heap #4.&lt;BR /&gt;16:49:48.643 INFO: [FreeRtosTadModel] FreeRTOS version has been identified from FreeRTOSDebugConfig structure as 10.4.3.&lt;BR /&gt;16:49:48.643 INFO: [Benchmark] Loading data for "Determine RTOS version" took 36 ms.&lt;BR /&gt;16:49:48.643 INFO: [Benchmark] Loading data for "Task List" has started.&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;16:49:50.366 ERROR: [VariableReader] Could not read variable expression: "(((struct tskTaskControlBlock *) 0x20000b68)-&amp;gt;xEventListItem.pxContainer)".&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;16:49:50.366 ERROR: [TaskFactory] Cannot read information from "pxReadyTasksLists[0]".&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;16:49:50.847 ERROR: [VariableReader] Could not read variable expression: "(((struct tskTaskControlBlock *) 0x20000fc0)-&amp;gt;xEventListItem.pxContainer)".&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;16:49:50.848 ERROR: [TaskFactory] Cannot read information from "xSuspendedTaskList".&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;16:49:51.239 ERROR: [VariableReader] Could not read variable expression: "(((struct tskTaskControlBlock *) 0x20000970)-&amp;gt;xEventListItem.pxContainer)".&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;16:49:51.239 ERROR: [TaskFactory] Cannot read information from "pxDelayedTaskList".&lt;/FONT&gt;&lt;BR /&gt;16:49:51.292 INFO: [Benchmark] Loading data for "Task List" took 2649 ms.&lt;/P&gt;&lt;P&gt;These messages are in the LinkServer Debug [C/C++ (NXP Semiconductors) MCU Application] gdb traces view:&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;190,321 (gdb)&lt;BR /&gt;190,321 202-data-evaluate-expression "(((struct tskTaskControlBlock *) 0x20000b68)-&amp;gt;uxTaskNumber)"&lt;BR /&gt;190,339 202^done,value="0"&lt;BR /&gt;190,339 (gdb)&lt;BR /&gt;190,340 203-data-evaluate-expression "(((struct tskTaskControlBlock *) 0x20000b68)-&amp;gt;uxTCBNumber)"&lt;BR /&gt;190,354 203^done,value="2"&lt;BR /&gt;190,354 (gdb)&lt;BR /&gt;190,355 204-data-evaluate-expression "(((struct tskTaskControlBlock *) 0x20000b68)-&amp;gt;xEventListItem.pxContainer)"&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;190,365 204^error,msg="There is no member named pxContainer."&lt;/FONT&gt;&lt;BR /&gt;190,365 (gdb)&lt;BR /&gt;190,366 205-data-evaluate-expression pxReadyTasksLists[1].uxNumberOfItems&lt;BR /&gt;190,384 205^done,value="0"&lt;BR /&gt;190,384 (gdb)&lt;BR /&gt;...&lt;BR /&gt;190,771 (gdb)&lt;BR /&gt;190,772 224-data-evaluate-expression "(((struct tskTaskControlBlock *) 0x20000fc0)-&amp;gt;uxTaskNumber)"&lt;BR /&gt;190,791 224^done,value="0"&lt;BR /&gt;190,792 (gdb)&lt;BR /&gt;190,792 225-data-evaluate-expression "(((struct tskTaskControlBlock *) 0x20000fc0)-&amp;gt;uxTCBNumber)"&lt;BR /&gt;190,821 225^done,value="3"&lt;BR /&gt;190,822 (gdb)&lt;BR /&gt;190,822 226-data-evaluate-expression "(((struct tskTaskControlBlock *) 0x20000fc0)-&amp;gt;xEventListItem.pxContainer)"&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;190,846 226^error,msg="There is no member named pxContainer."&lt;/FONT&gt;&lt;BR /&gt;190,846 (gdb)&lt;BR /&gt;190,848 227-data-evaluate-expression xPendingReadyList.uxNumberOfItems&lt;BR /&gt;190,866 227^done,value="0"&lt;BR /&gt;190,866 (gdb)&lt;BR /&gt;...&lt;BR /&gt;191,173 (gdb)&lt;BR /&gt;191,174 240-data-evaluate-expression "(((struct tskTaskControlBlock *) 0x20000970)-&amp;gt;uxTaskNumber)"&lt;BR /&gt;191,197 240^done,value="0"&lt;BR /&gt;191,197 (gdb)&lt;BR /&gt;191,198 241-data-evaluate-expression "(((struct tskTaskControlBlock *) 0x20000970)-&amp;gt;uxTCBNumber)"&lt;BR /&gt;191,212 241^done,value="1"&lt;BR /&gt;191,212 (gdb)&lt;BR /&gt;191,212 242-data-evaluate-expression "(((struct tskTaskControlBlock *) 0x20000970)-&amp;gt;xEventListItem.pxContainer)"&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;191,237 242^error,msg="There is no member named pxContainer."&lt;/FONT&gt;&lt;BR /&gt;191,237 (gdb)&lt;BR /&gt;191,239 243-data-evaluate-expression pxOverflowDelayedTaskList.uxNumberOfItems&lt;BR /&gt;191,262 243^done,value="0"&lt;BR /&gt;191,262 (gdb)&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;It seems that there is a problem on accessing to pxContainer field, but I'm not able to understand it.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 16:53:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Freertos-debug-issue/m-p/1403362#M7753</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2022-01-21T16:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Freertos debug issue</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Freertos-debug-issue/m-p/1403387#M7754</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/65478"&gt;@biafra&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;pxContainer is an internal struct field inside the kernel, or better: it is used for the kernel lists. You should be able to see this your grep the RTOS sources:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ErichStyger_0-1642788370612.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/168508i4604D77D621CEE48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ErichStyger_0-1642788370612.png" alt="ErichStyger_0-1642788370612.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There could be multiple reasons why it is not able to find it. Most likely you are using an older RTOS (I believe in older FreeRTOS versions that field name was different). In order to have the plugin detect and deal with different RTOS versions, it needs to know this with e.g. with the file freertos_task_c_additions.h which you should have present in your project.You can see this file for example in &lt;A href="https://mcuoneclipse.com/2020/05/31/tutorial-adding-freertos-to-where-there-is-no-freertos/" target="_blank" rel="noopener"&gt;https://mcuoneclipse.com/2020/05/31/tutorial-adding-freertos-to-where-there-is-no-freertos/&lt;/A&gt;&amp;nbsp; or here: &lt;A href="https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/FreeRTOS/Source/include/freertos_tasks_c_additions.h" target="_blank" rel="noopener"&gt;https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/FreeRTOS/Source/include/freertos_tasks_c_additions.h&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From your log, it seems that you already have that part present:&lt;BR /&gt;16:49:48.643 INFO: [FreeRtosTadModel] FreeRTOS version has been identified from FreeRTOSDebugConfig structure as 10.4.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, the stock FreeRTOS.org and nxp.com FreeRTOS sometimes is not able to deal with higher level compiler and linker optimizations. This is why I maintain a special FreeRTOS port on &lt;A href="https://github.com/ErichStyger/McuOnEclipseLibrary" target="_blank" rel="noopener"&gt;https://github.com/ErichStyger/McuOnEclipseLibrary&lt;/A&gt; . You could use that one as a drop-in replacement, just in case.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 18:13:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Freertos-debug-issue/m-p/1403387#M7754</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-01-21T18:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Freertos debug issue</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Freertos-debug-issue/m-p/1403837#M7758</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the reason, in my FreeRTOSConfig.h there was:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#define configENABLE_BACKWARD_COMPATIBILITY 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I've modified as:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#define configENABLE_BACKWARD_COMPATIBILITY 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In FreeRTOS.h there is this code:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#if configENABLE_BACKWARD_COMPATIBILITY == 1
    ...
    #define pxContainer pvContainer
#endif /* configENABLE_BACKWARD_COMPATIBILITY */&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Biafra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 08:25:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Freertos-debug-issue/m-p/1403837#M7758</guid>
      <dc:creator>biafra</dc:creator>
      <dc:date>2022-01-24T08:25:31Z</dc:date>
    </item>
  </channel>
</rss>

