<?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: configASSERT(( pxQueue )); error in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/configASSERT-pxQueue-error/m-p/1985679#M66895</link>
    <description>P.S. Apologies for not typesetting the code, but the web app ignored me when I tried.</description>
    <pubDate>Thu, 31 Oct 2024 15:55:53 GMT</pubDate>
    <dc:creator>robertholm73</dc:creator>
    <dc:date>2024-10-31T15:55:53Z</dc:date>
    <item>
      <title>configASSERT(( pxQueue )); error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/configASSERT-pxQueue-error/m-p/1985674#M66894</link>
      <description>&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;void vMenuTask(void* pvParameters) {&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* The parameter value is expected to be 1 as 1 is passed in the&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;pvParameters value in the call to xTaskCreate() below. */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//configASSERT(((uintptr_t)pvParameters) == 1);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for (;;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf("Test\n\n");&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vTaskDelay(pdMS_TO_TICKS(100));&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;}void vInitMenuTask(void) {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Create the task dynamically&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;BaseType_t xTaskCreated = xTaskCreate(vMenuTask,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Task function&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Menu Task",&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Task name&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MENU_TASK_STACK_SIZE, // Stack size&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(void*)1,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Task parameter&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MENU_TASK_PRIORITY, // Priority&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;xMenuTaskHandle&amp;nbsp; // Task handle&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if (xTaskCreated == pdPASS) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;safePrintf("Menu task created successfully.\n");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;else {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;safeFprintf(stderr, "Failed to create menu task. Not enough heap RAM.\n");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;P&gt;vInitMenuTask();&lt;/P&gt;&lt;P&gt;safePrintf("FreeRTOS initialization complete.\n");&lt;/P&gt;&lt;P&gt;vTaskStartScheduler();&lt;BR /&gt;/* vTaskStartScheduler should not return, but if it does, enter an infinite loop: */&lt;BR /&gt;for (;;) {&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Hi, I have a strange problem with a MKV59F24F24C. I am running he latest edition of FreeRTOS and trying to create a very simple task. The debugger gets stuck at&amp;nbsp;configASSERT(( pxQueue )); in queue.c.&amp;nbsp; My code is shown above.&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Any insights from anyone please?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 15:45:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/configASSERT-pxQueue-error/m-p/1985674#M66894</guid>
      <dc:creator>robertholm73</dc:creator>
      <dc:date>2024-10-31T15:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: configASSERT(( pxQueue )); error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/configASSERT-pxQueue-error/m-p/1985679#M66895</link>
      <description>P.S. Apologies for not typesetting the code, but the web app ignored me when I tried.</description>
      <pubDate>Thu, 31 Oct 2024 15:55:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/configASSERT-pxQueue-error/m-p/1985679#M66895</guid>
      <dc:creator>robertholm73</dc:creator>
      <dc:date>2024-10-31T15:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: configASSERT(( pxQueue )); error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/configASSERT-pxQueue-error/m-p/1986741#M66900</link>
      <description>&lt;P&gt;H&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is &lt;/SPAN&gt;&lt;SPAN&gt;configASSERT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;x) definition in FreeRTOSConfig.h&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 2px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'Consolas'; font-size: 10pt; white-space: pre;"&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;/* Define to trap errors during development. */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;#define&lt;/SPAN&gt; &lt;SPAN&gt;configASSERT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;x) &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(( x) == 0) {taskDISABLE_INTERRUPTS(); &lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; (;;);}&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;It means that&amp;nbsp; when the x is zero, it is a wrong case, the core will trap error.&lt;/P&gt;
&lt;P&gt;But I think this is a wrong calling configASSERT(((uintptr_t)pvParameters) == 1);, you should call it as&lt;/P&gt;
&lt;P&gt;configASSERT(pvParameters);&lt;/P&gt;
&lt;P&gt;Pls have a check.&lt;/P&gt;
&lt;P&gt;But I do not see the configASSERT(((uintptr_t)pvParameters) == 1); in queue.c,&lt;/P&gt;
&lt;P&gt;can you post a screen shot for the configASSERT(((uintptr_t)pvParameters) == 1);?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1730699910507.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/308320iDCF20040C4F780A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1730699910507.png" alt="xiangjun_rong_0-1730699910507.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 06:07:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/configASSERT-pxQueue-error/m-p/1986741#M66900</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-11-04T06:07:17Z</dc:date>
    </item>
  </channel>
</rss>

