<?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: NXPS32K358: FreeRTOS Tasks Not Running After Bootloader Jumps to Application in S32K</title>
    <link>https://community.nxp.com/t5/S32K/NXPS32K358-FreeRTOS-Tasks-Not-Running-After-Bootloader-Jumps-to/m-p/2398787#M60042</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/264938"&gt;@Indhumathi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;To narrow down the root cause, could you please verify whether the following interrupt handlers are actually being executed?&lt;/P&gt;
&lt;P&gt;SVC handler (vPortSVCHandler) — responsible for starting the first FreeRTOS task&lt;/P&gt;
&lt;P&gt;PendSV handler (vPortPendSVHandler) — responsible for context switching between tasks&lt;/P&gt;
&lt;P&gt;SysTick handler (vPortSysTickHandler / xPortSysTickHandler) — responsible for the FreeRTOS tick&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The simplest way to check is to place a breakpoint or a GPIO toggle at the entry of each handler in the application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2026 12:55:51 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2026-07-24T12:55:51Z</dc:date>
    <item>
      <title>NXPS32K358: FreeRTOS Tasks Not Running After Bootloader Jumps to Application</title>
      <link>https://community.nxp.com/t5/S32K/NXPS32K358-FreeRTOS-Tasks-Not-Running-After-Bootloader-Jumps-to/m-p/2398130#M60009</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We have created a sample application project and are using it as the bootloader. The actual application project is identical, with the only difference being the flash start address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The bootloader successfully jumps to the application, and the application starts executing. However, within the application, the xTaskCreate() function does not executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any additional configuration required when jumping from a bootloader to a FreeRTOS-based application? For example, are there any startup, interrupt, vector table, stack pointer, or scheduler-related configurations that must be performed before the application can create and execute FreeRTOS tasks?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I referred the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A title="https://community.nxp.com/t5/S32K-Knowledge-Base/Unified-bootloader-Demo/ta-p/1423099" href="https://community.nxp.com/t5/S32K-Knowledge-Base/Unified-bootloader-Demo/ta-p/1423099" target="_blank" rel="noopener noreferrer"&gt;&lt;SPAN class=""&gt;Unified bootloader Demo&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ticket from community. I didn't get the solution. Issue is only when we include FreeRTOS, without RTOS the application is working fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Its working for S32K344 not for NXPS32K358.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if any additional information is required.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2026 08:47:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/NXPS32K358-FreeRTOS-Tasks-Not-Running-After-Bootloader-Jumps-to/m-p/2398130#M60009</guid>
      <dc:creator>Indhumathi</dc:creator>
      <dc:date>2026-07-23T08:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: NXPS32K358: FreeRTOS Tasks Not Running After Bootloader Jumps to Application</title>
      <link>https://community.nxp.com/t5/S32K/NXPS32K358-FreeRTOS-Tasks-Not-Running-After-Bootloader-Jumps-to/m-p/2398137#M60011</link>
      <description>&lt;P&gt;Bootloader-to-Application Jump Code Used in Our Project:&lt;/P&gt;&lt;DIV&gt;void Boot_JumpToApp(uint32 i_AppAddr)&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;uint32_t appStack;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;uint32_t func;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;uint8 i;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DisableAllInterrupts();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;S32_SysTick-&amp;gt;CSRr = 0;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;S32_SysTick-&amp;gt;RVR = 0;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;S32_SysTick-&amp;gt;CVR = 0;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; for(i = 0; i &amp;lt; 10; i++)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; S32_NVIC-&amp;gt;ICER[i] = 0xFFFFFFFFU;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; S32_NVIC-&amp;gt;ICPR[i] = 0xFFFFFFFFU;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; appStack = *(volatile uint32_t *)0x00442000;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;__set_MSP(appStack);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;S32_SCB-&amp;gt;VTOR = 0x00442000;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;func = *(uint32_t volatile *)(((uint32_t)0x00442004));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(* (void (*) (void)) func)();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2026 09:00:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/NXPS32K358-FreeRTOS-Tasks-Not-Running-After-Bootloader-Jumps-to/m-p/2398137#M60011</guid>
      <dc:creator>Indhumathi</dc:creator>
      <dc:date>2026-07-23T09:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: NXPS32K358: FreeRTOS Tasks Not Running After Bootloader Jumps to Application</title>
      <link>https://community.nxp.com/t5/S32K/NXPS32K358-FreeRTOS-Tasks-Not-Running-After-Bootloader-Jumps-to/m-p/2398324#M60019</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/264938"&gt;@Indhumathi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This "xTaskCreate() does not execute" is ambiguous and could mean different things.&lt;/P&gt;
&lt;P&gt;Can you check the following?&lt;/P&gt;
&lt;P&gt;1. Execution never reaches xTaskCreate()&lt;BR /&gt;The application starts, but something hangs or faults before the call.&lt;/P&gt;
&lt;P&gt;2. xTaskCreate() is called but returns an error&lt;BR /&gt;The function is called and returns an error, for example errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY.&lt;/P&gt;
&lt;P&gt;3. Tasks are created, but the scheduler never runs them&lt;BR /&gt;xTaskCreate() succeeds (returns pdPASS) and the tasks are created, but vTaskStartScheduler() is never called, fails, or SysTick/PendSV are not operating correctly after the bootloader jump. As a result, the tasks remain in the Ready state and never get CPU time.&lt;/P&gt;
&lt;P&gt;Also, is vApplicationMallocFailedHook() called?&lt;/P&gt;
&lt;P&gt;Which heap implementation are you using?&lt;/P&gt;
&lt;P&gt;What is the state of CM7_2? Is it running, held in reset, or started by the bootloader?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2026 13:12:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/NXPS32K358-FreeRTOS-Tasks-Not-Running-After-Bootloader-Jumps-to/m-p/2398324#M60019</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2026-07-23T13:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: NXPS32K358: FreeRTOS Tasks Not Running After Bootloader Jumps to Application</title>
      <link>https://community.nxp.com/t5/S32K/NXPS32K358-FreeRTOS-Tasks-Not-Running-After-Bootloader-Jumps-to/m-p/2398787#M60042</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/264938"&gt;@Indhumathi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;To narrow down the root cause, could you please verify whether the following interrupt handlers are actually being executed?&lt;/P&gt;
&lt;P&gt;SVC handler (vPortSVCHandler) — responsible for starting the first FreeRTOS task&lt;/P&gt;
&lt;P&gt;PendSV handler (vPortPendSVHandler) — responsible for context switching between tasks&lt;/P&gt;
&lt;P&gt;SysTick handler (vPortSysTickHandler / xPortSysTickHandler) — responsible for the FreeRTOS tick&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The simplest way to check is to place a breakpoint or a GPIO toggle at the entry of each handler in the application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2026 12:55:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/NXPS32K358-FreeRTOS-Tasks-Not-Running-After-Bootloader-Jumps-to/m-p/2398787#M60042</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2026-07-24T12:55:51Z</dc:date>
    </item>
  </channel>
</rss>

