<?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>topic Re: Mcuxpresso 10.0.2, FreeRTOS and Segger Thread Aware Debugging in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Mcuxpresso-10-0-2-FreeRTOS-and-Segger-Thread-Aware-Debugging/m-p/690548#M747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;I suspect something is overwriting your RAM. It seems that your uxTopUsedPriority variable has the value 0x72 which is indeed too high and does not make any sense.&lt;/P&gt;&lt;P&gt;I recommend to increase the task stack size (see &lt;A class="link-titled" href="https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/" title="https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/"&gt;Troubleshooting Tips for FreeRTOS Thread Aware Debugging in Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp;), and if this does not help, set a watchpoint on uxTopUsedPriority (see &lt;A class="link-titled" href="https://mcuoneclipse.com/2014/05/17/cc-watchpoints-with-eclipse-kepler/" title="https://mcuoneclipse.com/2014/05/17/cc-watchpoints-with-eclipse-kepler/"&gt;C/C++ Watchpoints with Eclipse Kepler | MCU on Eclipse&lt;/A&gt; , same principle works with MCUXpresso IDE too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2017 13:36:43 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2017-08-01T13:36:43Z</dc:date>
    <item>
      <title>Mcuxpresso 10.0.2, FreeRTOS and Segger Thread Aware Debugging</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Mcuxpresso-10-0-2-FreeRTOS-and-Segger-Thread-Aware-Debugging/m-p/690547#M746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello i have a problem setting breakpoints with a firmware that use the Freertos. I have different thread so i want to use the&amp;nbsp;Thread Aware Debugging.&lt;/P&gt;&lt;P&gt;I have this setting&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/7446i69F5EFB6B8960DCC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but there is this error in red:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[01-8-2017 12:30:26] Executing Server: C:\Program Files (x86)\SEGGER\JLink_V616b\JLinkGDBServerCL.exe -nosilent -swoport 2337 -select USB=269307964 -telnetport 2338 -singlerun -endian little -noir -speed auto -rtos GDBServer/RTOSPlugin_FreeRTOS -port 2339 -vd -device MK22FX512Axxx12 -if SWD -halt -reportuseraction&lt;BR /&gt;SEGGER J-Link GDB Server V6.16b Command Line Version&lt;/P&gt;&lt;P&gt;JLinkARM.dll V6.16b (DLL compiled Jun 9 2017 18:03:30)&lt;/P&gt;&lt;P&gt;-----GDB Server start settings-----&lt;BR /&gt;GDBInit file: none&lt;BR /&gt;GDB Server Listening port: 2339&lt;BR /&gt;SWO raw output listening port: 2337&lt;BR /&gt;Terminal I/O port: 2338&lt;BR /&gt;Accept remote connection: localhost only&lt;BR /&gt;Generate logfile: off&lt;BR /&gt;Verify download: on&lt;BR /&gt;Init regs on start: off&lt;BR /&gt;Silent mode: off&lt;BR /&gt;Single run mode: on&lt;BR /&gt;Target connection timeout: 0 ms&lt;BR /&gt;------J-Link related settings------&lt;BR /&gt;J-Link Host interface: USB&lt;BR /&gt;J-Link script: none&lt;BR /&gt;J-Link settings file: none&lt;BR /&gt;------Target related settings------&lt;BR /&gt;Target device: MK22FX512Axxx12&lt;BR /&gt;Target interface: SWD&lt;BR /&gt;Target interface speed: auto&lt;BR /&gt;Target endian: little&lt;/P&gt;&lt;P&gt;Connecting to J-Link...&lt;BR /&gt;$$UserActionStart$$: Terms of use&lt;BR /&gt;$$UserActionEnd$$: Terms of use&lt;BR /&gt;J-Link is connected.&lt;BR /&gt;Device "MK22FX512AXXX12" selected.&lt;BR /&gt;Firmware: J-Link V9 compiled Jun 16 2017 16:15:10&lt;BR /&gt;Hardware: V9.30&lt;BR /&gt;S/N: 269307964&lt;BR /&gt;OEM: SEGGER-EDU&lt;BR /&gt;Feature(s): FlashBP, GDB&lt;BR /&gt;Checking target voltage...&lt;BR /&gt;Target voltage: 3.35 V&lt;BR /&gt;Listening on TCP/IP port 2339&lt;BR /&gt;Connecting to target...Executing InitTarget()&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;Scanning APs, stopping at first AHB-AP found.&lt;BR /&gt;AP[0] IDR: 0x24770011 (AHB-AP)&lt;BR /&gt;AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)&lt;BR /&gt;CPUID reg: 0x410FC241. Implementer code: 0x41 (ARM)&lt;BR /&gt;Found Cortex-M4 r0p1, Little endian.&lt;BR /&gt;FPUnit: 6 code (BP) slots and 2 literal slots&lt;BR /&gt;CoreSight components:&lt;BR /&gt;ROMTbl[0] @ E00FF000&lt;BR /&gt;ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS&lt;BR /&gt;ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT&lt;BR /&gt;ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB&lt;BR /&gt;ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM&lt;BR /&gt;ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU&lt;BR /&gt;ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM&lt;BR /&gt;ROMTbl[0][6]: E0042000, CID: B105900D, PID: 003BB907 ETB&lt;BR /&gt;ROMTbl[0][7]: E0043000, CID: B105900D, PID: 001BB908 CSTF&lt;BR /&gt;Executing InitTarget()&lt;BR /&gt;Found SW-DP with ID 0x2BA01477&lt;BR /&gt;Using pre-configured AP[0] as AHB-AP to communicate with core&lt;BR /&gt;AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)&lt;BR /&gt;CPUID reg: 0x410FC241. Implementer code: 0x41 (ARM)&lt;BR /&gt;Found Cortex-M4 r0p1, Little endian.&lt;BR /&gt;FPUnit: 6 code (BP) slots and 2 literal slots&lt;BR /&gt;CoreSight components:&lt;BR /&gt;ROMTbl[0] @ E00FF000&lt;BR /&gt;ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS&lt;BR /&gt;ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT&lt;BR /&gt;ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB&lt;BR /&gt;ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM&lt;BR /&gt;ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU&lt;BR /&gt;ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM&lt;BR /&gt;ROMTbl[0][6]: E0042000, CID: B105900D, PID: 003BB907 ETB&lt;BR /&gt;ROMTbl[0][7]: E0043000, CID: B105900D, PID: 001BB908 CSTF&lt;BR /&gt;Connected to target&lt;BR /&gt;Waiting for GDB connection...Connected to 127.0.0.1&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00006018 (Data = 0x2B0A681B)&lt;BR /&gt;Read 4 bytes @ address 0x00021C0E (Data = 0x330168FB)&lt;BR /&gt;Reading 64 bytes @ address 0x20005800&lt;BR /&gt;Loading RTOS plugin: GDBServer/RTOSPlugin_FreeRTOS...&lt;BR /&gt;RTOS plugin (v1.0) loaded successfully&lt;BR /&gt;RTOS plugin initialized successfully.&lt;BR /&gt;Received symbol: pxCurrentTCB (0x2000C1B0)&lt;BR /&gt;Received symbol: pxReadyTasksLists (0x2000C1B4)&lt;BR /&gt;Received symbol: xDelayedTaskList1 (0x2000C254)&lt;BR /&gt;Received symbol: xDelayedTaskList2 (0x2000C268)&lt;BR /&gt;Received symbol: pxDelayedTaskList (0x2000C27C)&lt;BR /&gt;Received symbol: pxOverflowDelayedTaskList (0x2000C280)&lt;BR /&gt;Received symbol: xPendingReadyList (0x2000C284)&lt;BR /&gt;Received symbol: xTasksWaitingTermination (0x2000C298)&lt;BR /&gt;Received symbol: xSuspendedTaskList (0x2000C2B0)&lt;BR /&gt;Received symbol: uxCurrentNumberOfTasks (0x2000C2C4)&lt;BR /&gt;Received symbol: uxTopUsedPriority (0x00000000)&lt;BR /&gt;Received symbol: uxTopReadyPriority (0x2000C2CC)&lt;BR /&gt;Received symbol: vPortEnableVFP (0x00016548)&lt;BR /&gt;All mandatory symbols successfully loaded.&lt;BR /&gt;Setting AIRCR.SYSRESETREQ&lt;BR /&gt;Executing AfterResetTarget()&lt;BR /&gt;Resetting target&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x000001F4 (Data = 0xB672B510)&lt;BR /&gt;Downloading 16048 bytes @ address 0x00000000 - Verified OK&lt;BR /&gt;Downloading 16000 bytes @ address 0x00003EB0 - Verified OK&lt;BR /&gt;Downloading 15984 bytes @ address 0x00007D30 - Verified OK&lt;BR /&gt;Downloading 15728 bytes @ address 0x0000BBA0 - Verified OK&lt;BR /&gt;Downloading 15904 bytes @ address 0x0000F910 - Verified OK&lt;BR /&gt;Downloading 16096 bytes @ address 0x00013730 - Verified OK&lt;BR /&gt;Downloading 16016 bytes @ address 0x00017610 - Verified OK&lt;BR /&gt;Downloading 16048 bytes @ address 0x0001B4A0 - Verified OK&lt;BR /&gt;Downloading 16080 bytes @ address 0x0001F350 - Verified OK&lt;BR /&gt;Downloading 16032 bytes @ address 0x00023220 - Verified OK&lt;BR /&gt;Downloading 16240 bytes @ address 0x000270C0 - Verified OK&lt;BR /&gt;Downloading 13392 bytes @ address 0x0002B030 - Verified OK&lt;BR /&gt;Downloading 1376 bytes @ address 0x0002E480 - Verified OK&lt;BR /&gt;Writing register (PC = 0x000001F4)&lt;BR /&gt;Read 4 bytes @ address 0x000001F4 (Data = 0xB672B510)&lt;BR /&gt;Read 2 bytes @ address 0x00007068 (Data = 0xF00D)&lt;BR /&gt;Read 2 bytes @ address 0x00007068 (Data = 0xF00D)&lt;BR /&gt;Read 2 bytes @ address 0x000064B6 (Data = 0x2300)&lt;BR /&gt;Read 2 bytes @ address 0x00006526 (Data = 0xF002)&lt;BR /&gt;Read 2 bytes @ address 0x00007068 (Data = 0xF00D)&lt;BR /&gt;Read 2 bytes @ address 0x00007068 (Data = 0xF00D)&lt;BR /&gt;Read 2 bytes @ address 0x00007068 (Data = 0xF00D)&lt;BR /&gt;All mandatory symbols successfully loaded.&lt;BR /&gt;Read 2 bytes @ address 0x00007068 (Data = 0xF00D)&lt;BR /&gt;Read 2 bytes @ address 0x00007068 (Data = 0xF00D)&lt;BR /&gt;Read 2 bytes @ address 0x000064B6 (Data = 0x2300)&lt;BR /&gt;Read 2 bytes @ address 0x00006526 (Data = 0xF002)&lt;BR /&gt;Read 2 bytes @ address 0x00007068 (Data = 0xF00D)&lt;BR /&gt;Read 2 bytes @ address 0x00007068 (Data = 0xF00D)&lt;BR /&gt;Read 2 bytes @ address 0x00007068 (Data = 0xF00D)&lt;BR /&gt;All mandatory symbols successfully loaded.&lt;BR /&gt;Reading all registers&lt;BR /&gt;J-Link: Flash download: Flash download skipped. Flash contents already match&lt;BR /&gt;Read 4 bytes @ address 0x000001F4 (Data = 0xB672B510)&lt;BR /&gt;Read 2 bytes @ address 0x00007068 (Data = 0xF00D)&lt;BR /&gt;Read 2 bytes @ address 0x00007068 (Data = 0xF00D)&lt;BR /&gt;Read 2 bytes @ address 0x00007068 (Data = 0xF00D)&lt;BR /&gt;Setting AIRCR.SYSRESETREQ&lt;BR /&gt;Executing AfterResetTarget()&lt;BR /&gt;Resetting target&lt;BR /&gt;Semi-hosting enabled (Handle on BKPT)&lt;BR /&gt;Executed SetRestartOnClose=1&lt;BR /&gt;Setting breakpoint @ address 0x00006526, Size = 2, BPHandle = 0x0001&lt;BR /&gt;Setting breakpoint @ address 0x00007068, Size = 2, BPHandle = 0x0002&lt;BR /&gt;Starting target CPU...&lt;BR /&gt;...Breakpoint reached @ address 0x00007068&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00007068 (Data = 0xFC72F00D)&lt;BR /&gt;Removing breakpoint @ address 0x00006526, Size = 2&lt;BR /&gt;Removing breakpoint @ address 0x00007068, Size = 2&lt;BR /&gt;Setting breakpoint @ address 0x00006526, Size = 2, BPHandle = 0x0003&lt;BR /&gt;Starting target CPU...&lt;BR /&gt;...Breakpoint reached @ address 0x00006526&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR: FreeRTOS maximum used priority is unreasonably big, not proceeding: 00000072.&lt;/SPAN&gt;&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00006526 (Data = 0xFEE9F002)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Removing breakpoint @ address 0x00006526, Size = 2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;can you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in FreeRTOSconfig.h i have set&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define configMAX_PRIORITIES (8)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 10:36:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Mcuxpresso-10-0-2-FreeRTOS-and-Segger-Thread-Aware-Debugging/m-p/690547#M746</guid>
      <dc:creator>ypkdani</dc:creator>
      <dc:date>2017-08-01T10:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Mcuxpresso 10.0.2, FreeRTOS and Segger Thread Aware Debugging</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Mcuxpresso-10-0-2-FreeRTOS-and-Segger-Thread-Aware-Debugging/m-p/690548#M747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;I suspect something is overwriting your RAM. It seems that your uxTopUsedPriority variable has the value 0x72 which is indeed too high and does not make any sense.&lt;/P&gt;&lt;P&gt;I recommend to increase the task stack size (see &lt;A class="link-titled" href="https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/" title="https://mcuoneclipse.com/2017/07/27/troubleshooting-tips-for-freertos-thread-aware-debugging-in-eclipse/"&gt;Troubleshooting Tips for FreeRTOS Thread Aware Debugging in Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp;), and if this does not help, set a watchpoint on uxTopUsedPriority (see &lt;A class="link-titled" href="https://mcuoneclipse.com/2014/05/17/cc-watchpoints-with-eclipse-kepler/" title="https://mcuoneclipse.com/2014/05/17/cc-watchpoints-with-eclipse-kepler/"&gt;C/C++ Watchpoints with Eclipse Kepler | MCU on Eclipse&lt;/A&gt; , same principle works with MCUXpresso IDE too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 13:36:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Mcuxpresso-10-0-2-FreeRTOS-and-Segger-Thread-Aware-Debugging/m-p/690548#M747</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-08-01T13:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mcuxpresso 10.0.2, FreeRTOS and Segger Thread Aware Debugging</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Mcuxpresso-10-0-2-FreeRTOS-and-Segger-Thread-Aware-Debugging/m-p/690549#M748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello and thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have find the solution following this post&amp;nbsp;&lt;A href="https://community.nxp.com/thread/440321"&gt;BUG: KDS debug call-stack fails with Segger JLink&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;TT style="border: 0px; font-weight: inherit;"&gt;Create a dummy symbol uxTopUsedPriority (will be preferred to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/TT&gt;&lt;/SPAN&gt;&lt;TT style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&lt;TT style="border: 0px; font-weight: inherit;"&gt;uxTopReadyPriority&lt;/TT&gt;) and set it to configMAX_PRIORITIES.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:24:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Mcuxpresso-10-0-2-FreeRTOS-and-Segger-Thread-Aware-Debugging/m-p/690549#M748</guid>
      <dc:creator>ypkdani</dc:creator>
      <dc:date>2017-08-03T09:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mcuxpresso 10.0.2, FreeRTOS and Segger Thread Aware Debugging</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Mcuxpresso-10-0-2-FreeRTOS-and-Segger-Thread-Aware-Debugging/m-p/690550#M749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See here:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/502360"&gt;https://community.nxp.com/thread/502360&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2019 22:35:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Mcuxpresso-10-0-2-FreeRTOS-and-Segger-Thread-Aware-Debugging/m-p/690550#M749</guid>
      <dc:creator>FreeRTOS_org</dc:creator>
      <dc:date>2019-05-08T22:35:32Z</dc:date>
    </item>
  </channel>
</rss>

