<?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>S32KのトピックRe: s32k1 bootloader examples for app notes do not compile with S32DS 3.5</title>
    <link>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2156141#M52053</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;How can I allow function execution from a pointer that I assign the address by value?&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems it is not related to RAM, specifically. my settings or something does not run if I specify the pointer to the drivers using the memory address.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried just defining a dummy function in my project and put it in the flash_driver flash space. function does not perform any flash activities If I use a function pointer that points to the function by name, it works ok. But if I point to the address in flash, to call the function, then it still throws the exception.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It generates the same code for the function, either way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems the IDE, debugger, or something does not like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;__attribute__((section(".flash_driver")))&lt;/P&gt;&lt;P&gt;__attribute__((optimize("O0")))&lt;/P&gt;&lt;P&gt;status_t test_func(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status_t result = &lt;EM&gt;STATUS_SUCCESS&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;typedef&lt;/STRONG&gt; &lt;STRONG&gt;status_t&lt;/STRONG&gt; (*&lt;STRONG&gt;test_ram_func_t&lt;/STRONG&gt;)(&lt;STRONG&gt;void&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;g_ptestFunc = (&lt;STRONG&gt;test_ram_func_t&lt;/STRONG&gt;)(&lt;STRONG&gt;uintptr_t&lt;/STRONG&gt;)0x0000E800u;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dparkinson_0-1755786075632.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353537iA572DD5E308C5E50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_0-1755786075632.png" alt="dparkinson_0-1755786075632.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="dparkinson_1-1755786101312.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353538iD3715C2339C567F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_1-1755786101312.png" alt="dparkinson_1-1755786101312.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="dparkinson_2-1755786123907.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353539i06C511FCEA5D08E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_2-1755786123907.png" alt="dparkinson_2-1755786123907.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But is ok with this &amp;nbsp;g_ptestFunc = &lt;STRONG&gt;test_func&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dparkinson_3-1755786135972.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353540iDB1D8E74DC983F5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_3-1755786135972.png" alt="dparkinson_3-1755786135972.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="dparkinson_4-1755786145281.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353541i7B9EB4827D44A799/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_4-1755786145281.png" alt="dparkinson_4-1755786145281.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Aug 2025 14:22:42 GMT</pubDate>
    <dc:creator>dparkinson</dc:creator>
    <dc:date>2025-08-21T14:22:42Z</dc:date>
    <item>
      <title>s32k1 bootloader examples for app notes do not compile with S32DS 3.5</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2146901#M51612</link>
      <description>&lt;P&gt;In starting a bootloader for my project that uses an s32k116, I found the application notes for the S32K1 with example code (s32k146, s32k148, s32k144). When import the example project into&amp;nbsp;S32 Design Studio for S32 Platform, v3.5&amp;nbsp;, it does not compile. I get the&amp;nbsp; attached error screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dparkinson_0-1754397806532.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350991i5AE7A2D27B00C83A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_0-1754397806532.png" alt="dparkinson_0-1754397806532.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dparkinson_0-1754397995534.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/350992iAB71D565F5D8AB3B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_0-1754397995534.png" alt="dparkinson_0-1754397995534.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not modified the projects in any way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used the examples for the following application notes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12218.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12218.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note-software/AN12218SW.zip" target="_blank"&gt;https://www.nxp.com/docs/en/application-note-software/AN12218SW.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12323.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12323.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note-software/AN12323SW.zip" target="_blank"&gt;https://www.nxp.com/docs/en/application-note-software/AN12323SW.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a different example for S32DS 3.5?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 12:49:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2146901#M51612</guid>
      <dc:creator>dparkinson</dc:creator>
      <dc:date>2025-08-05T12:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: s32k1 bootloader examples for app notes do not compile with S32DS 3.5</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2147076#M51618</link>
      <description>&lt;P&gt;hI&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231451"&gt;@dparkinson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These applications were developed using S32 Design Studio for Arm. Over time, updates to the IDE have introduced changes to elements such as toolchain paths, library paths, and SDK configurations.&lt;/P&gt;
&lt;P&gt;To ensure compatibility with the currently used IDE version, it is recommended to create a new project. Then, manually copy the application’s source files and any custom project settings from the original project into the new one. This approach helps avoid integration issues caused by version-specific differences.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, VaneB&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 21:02:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2147076#M51618</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2025-08-05T21:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: s32k1 bootloader examples for app notes do not compile with S32DS 3.5</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2147644#M51642</link>
      <description>&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;Are there any example S32K1 bootloader projects that work with S32DS?&lt;/P&gt;&lt;P&gt;3.5 prefer, but I'd be willing to try 3.4 or 3.6 if that's the only one available).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to start with a known working project before I started to modify it for use with the S32k116.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 12:19:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2147644#M51642</guid>
      <dc:creator>dparkinson</dc:creator>
      <dc:date>2025-08-06T12:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: s32k1 bootloader examples for app notes do not compile with S32DS 3.5</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2147860#M51649</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231451"&gt;@dparkinson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For S32K1 devices, the available bootloader applications include the ones you have already shared, as well as the &lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Unified-bootloader-Demo/ta-p/1423099" target="_blank" rel="noopener"&gt;Unified Bootloader Demo&lt;/A&gt;. At the moment, there is no bootloader application developed specifically for S32DS version 3.4 or later.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 22:11:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2147860#M51649</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2025-08-06T22:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: s32k1 bootloader examples for app notes do not compile with S32DS 3.5</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2148463#M51682</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp; I'm starting to to work on migrating code. I'll try to post if I get something that works with S32DS. progress so far&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;started with example for AN12218 on S32DS 3.5, but couldn't easily figure out where missing defines were for files under src/drivers/ subfolder, so put that on hold.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;installed S32 for Arm 2018.R1 and got all of the examples to compile ok with that IDE.&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;I started looking at the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Unified-bootloader-Demo/ta-p/1423099" target="_blank" rel="noopener"&gt;Unified Bootloader Demo&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp;the S32116 variant also compiles under S32 for Arm and compiles for me under S32DS 3.5. When in s32 for Arm, I can use the processor expert to try to figure out what the drivers are included and such.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;So, right now, I guess I'll try the unified bootloader and see if I can figure out how to migrate it to S32DS 3.5 using RTD instead of whatever drivers it's using for S32 for ARM.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 12:04:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2148463#M51682</guid>
      <dc:creator>dparkinson</dc:creator>
      <dc:date>2025-08-07T12:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: s32k1 bootloader examples for app notes do not compile with S32DS 3.5</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2155478#M52006</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I moved everything over to using the unified bootloader with RTD. However, as soon as the code reaches trying to execute the flash drivers that are executing out of RAM, the debugger throws an exception.&lt;/P&gt;&lt;P&gt;Do I need to do something special in the linker or some setting to be able to execute code from the flash_driver portion of RAM?&lt;/P&gt;&lt;P&gt;I did not rewrite the ram flash driver with RTD, since that is only provided as a binary in the unified bootloader example. I did confirm in the debugger that the flash driver is in RAM.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original project that used an old SDK works in the debugger in S32DS 3.5 and performs the bootload.&lt;/P&gt;&lt;P&gt;I'm attaching the project, if there's something you can see that is messed up?&lt;/P&gt;&lt;P&gt;I'm not attaching the toolchain files. I'm using RTD 2.0.0 for S32K1 processor. I am including the ECU-pro project that I've been testing with over the CAN bus. It skips the flash_driver.bin download. Instead, I have the flash_driver.bin converted to flash_driver.o and I compile it into a portion of flash. Then, my code copies that to RAM at startup. That modification seems to work fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are a couple screenshots from where the debugger fails. (It works when in the SDK version).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dparkinson_2-1755716445433.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353370iCA0B88412E72391E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_2-1755716445433.png" alt="dparkinson_2-1755716445433.png" /&gt;&lt;/span&gt;&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="dparkinson_0-1755716320678.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353368i95F9E7A321850AA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_0-1755716320678.png" alt="dparkinson_0-1755716320678.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;flash driver in RAM is the same as flash_driver.bin (with updates for pointer offsets)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dparkinson_1-1755716380823.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353369i37878C9D999714EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_1-1755716380823.png" alt="dparkinson_1-1755716380823.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="dparkinson_3-1755716644745.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353371iE90E305CDC65078D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_3-1755716644745.png" alt="dparkinson_3-1755716644745.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 19:04:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2155478#M52006</guid>
      <dc:creator>dparkinson</dc:creator>
      <dc:date>2025-08-20T19:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: s32k1 bootloader examples for app notes do not compile with S32DS 3.5</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2156141#M52053</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;How can I allow function execution from a pointer that I assign the address by value?&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems it is not related to RAM, specifically. my settings or something does not run if I specify the pointer to the drivers using the memory address.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried just defining a dummy function in my project and put it in the flash_driver flash space. function does not perform any flash activities If I use a function pointer that points to the function by name, it works ok. But if I point to the address in flash, to call the function, then it still throws the exception.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It generates the same code for the function, either way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems the IDE, debugger, or something does not like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;__attribute__((section(".flash_driver")))&lt;/P&gt;&lt;P&gt;__attribute__((optimize("O0")))&lt;/P&gt;&lt;P&gt;status_t test_func(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status_t result = &lt;EM&gt;STATUS_SUCCESS&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;typedef&lt;/STRONG&gt; &lt;STRONG&gt;status_t&lt;/STRONG&gt; (*&lt;STRONG&gt;test_ram_func_t&lt;/STRONG&gt;)(&lt;STRONG&gt;void&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;g_ptestFunc = (&lt;STRONG&gt;test_ram_func_t&lt;/STRONG&gt;)(&lt;STRONG&gt;uintptr_t&lt;/STRONG&gt;)0x0000E800u;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dparkinson_0-1755786075632.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353537iA572DD5E308C5E50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_0-1755786075632.png" alt="dparkinson_0-1755786075632.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="dparkinson_1-1755786101312.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353538iD3715C2339C567F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_1-1755786101312.png" alt="dparkinson_1-1755786101312.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="dparkinson_2-1755786123907.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353539i06C511FCEA5D08E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_2-1755786123907.png" alt="dparkinson_2-1755786123907.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But is ok with this &amp;nbsp;g_ptestFunc = &lt;STRONG&gt;test_func&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dparkinson_3-1755786135972.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353540iDB1D8E74DC983F5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_3-1755786135972.png" alt="dparkinson_3-1755786135972.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="dparkinson_4-1755786145281.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/353541i7B9EB4827D44A799/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparkinson_4-1755786145281.png" alt="dparkinson_4-1755786145281.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 14:22:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2156141#M52053</guid>
      <dc:creator>dparkinson</dc:creator>
      <dc:date>2025-08-21T14:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: s32k1 bootloader examples for app notes do not compile with S32DS 3.5</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2192424#M53817</link>
      <description>&lt;P&gt;Hello, bro, I have the same Question, did you transplant the code successfully?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 08:59:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2192424#M53817</guid>
      <dc:creator>jianghao</dc:creator>
      <dc:date>2025-10-24T08:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: s32k1 bootloader examples for app notes do not compile with S32DS 3.5</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2192549#M53828</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/256141"&gt;@jianghao&lt;/a&gt;&amp;nbsp;, I did get a unified bootloader version for the s32k116 that uses the RTD. It is attached. I have also attached the ECU Pro project that loads the app over CAN from the PC once the bootloader is running.&amp;nbsp;&lt;/P&gt;&lt;P&gt;notes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the flash driver is embedded in the bootloader program. This is different from the original demo. the original bootloader demo dowloaded the flash driver over CAN as part of the app update process.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;the flash driver is stored in the&amp;nbsp;m_store_flash_driver in internal flash memory. the bootloader copies this section to RAM space,&amp;nbsp;m_flash_driver at startup. see linker file.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;the flash driver runs in RAM space during update process because you can't write to internal flash while executing from it. So the flash driver has to run from RAM.&lt;/LI&gt;&lt;LI&gt;note the s32k116 has only one bank of internal flash. other variants have more banks. for those, I think it could be possible to run your flash driver from the 1 bank while updating the 2nd bank of flash.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I attributed the internal flash driver generated by the RTD so it is stored in the m_store_flash_driver space. If you re-generate the RTD driver, then you may lose this attribution.&amp;nbsp;See&amp;nbsp;Ftfc_Mem_InFls_Ip.c for example&lt;/LI&gt;&lt;LI&gt;the attribute is the following. you can search for where-used.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="c"&gt;__attribute__((section(".flexnvm_flash_driver")))​&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;Note that the flash driver is&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; stored in the flexnvm bank. Originally, I was going to put the flash driver in flexnvm and not do RAM execution, but I changed course and decided to use the flexnvm as EEPROM in my app. I did not update the attribute/section name. (I don't know if execution from flexnvm works or not as I changed course before I got that far).&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;the app is just the demo app and I don't think will jump back to bootloader for the next update. I did not really test as I moved on to using different bootloading protocol.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;built/tested with&amp;nbsp;&lt;UL&gt;&lt;LI&gt;NXP S32 Design Studio for S32 Platform v3.5&amp;nbsp;Build id 240924 (Update 14)&lt;/LI&gt;&lt;LI&gt;S32K1 Real-Time Drivers Version 2.0.0 QLP1&lt;/LI&gt;&lt;LI&gt;evaluation board s32k116EVB2Q048&lt;/LI&gt;&lt;LI&gt;EcuBus Pro v 0.8.49&lt;/LI&gt;&lt;LI&gt;PEAK PCAN-USB for PC/CAN interface&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 12:26:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2192549#M53828</guid>
      <dc:creator>dparkinson</dc:creator>
      <dc:date>2025-10-24T12:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: s32k1 bootloader examples for app notes do not compile with S32DS 3.5</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2193131#M53848</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you very much for your patient and detailed answer, which enabled me to find the solution quickly. I sincerely thank you once again.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 03:21:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-bootloader-examples-for-app-notes-do-not-compile-with/m-p/2193131#M53848</guid>
      <dc:creator>jianghao</dc:creator>
      <dc:date>2025-10-27T03:21:02Z</dc:date>
    </item>
  </channel>
</rss>

