<?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中的主题 S32K144 Bootloader example project not working</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-Bootloader-example-project-not-working/m-p/1953235#M40879</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to create bootloader project for S32K144. I'm using below code for reference.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K144-Bootloader-Example/td-p/1011855" target="_blank"&gt;https://community.nxp.com/t5/S32K/S32K144-Bootloader-Example/td-p/1011855&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I'm not able to run the bootloader.&lt;/P&gt;&lt;P&gt;I'm getting warning as -&amp;gt; No source available for "WDOG_EWM_IRQHandler() at 0x10000048"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.PNG" style="width: 775px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298794iA5F5CD2CB6C6B6EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.PNG" alt="error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Memory configuration of Bootloader project:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mem err.PNG" style="width: 586px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298792iECA18CF1F2768A0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="mem err.PNG" alt="mem err.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Memory configuration of Application project:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mem err app.PNG" style="width: 628px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298793iA7EB9C80CD0DD8FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="mem err app.PNG" alt="mem err app.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to ask why m_text region starts at address 0x10000000 in Linker file of Bootloader project? It must be 0x00000410? Is this is an error? Please correct me if I'm wrong.&lt;/P&gt;&lt;P&gt;I'm attaching my project for your reference.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2024 07:49:09 GMT</pubDate>
    <dc:creator>emb02</dc:creator>
    <dc:date>2024-09-12T07:49:09Z</dc:date>
    <item>
      <title>S32K144 Bootloader example project not working</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-Bootloader-example-project-not-working/m-p/1953235#M40879</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to create bootloader project for S32K144. I'm using below code for reference.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K144-Bootloader-Example/td-p/1011855" target="_blank"&gt;https://community.nxp.com/t5/S32K/S32K144-Bootloader-Example/td-p/1011855&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I'm not able to run the bootloader.&lt;/P&gt;&lt;P&gt;I'm getting warning as -&amp;gt; No source available for "WDOG_EWM_IRQHandler() at 0x10000048"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.PNG" style="width: 775px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298794iA5F5CD2CB6C6B6EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.PNG" alt="error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Memory configuration of Bootloader project:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mem err.PNG" style="width: 586px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298792iECA18CF1F2768A0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="mem err.PNG" alt="mem err.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Memory configuration of Application project:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mem err app.PNG" style="width: 628px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/298793iA7EB9C80CD0DD8FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="mem err app.PNG" alt="mem err app.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to ask why m_text region starts at address 0x10000000 in Linker file of Bootloader project? It must be 0x00000410? Is this is an error? Please correct me if I'm wrong.&lt;/P&gt;&lt;P&gt;I'm attaching my project for your reference.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 07:49:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-Bootloader-example-project-not-working/m-p/1953235#M40879</guid>
      <dc:creator>emb02</dc:creator>
      <dc:date>2024-09-12T07:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 Bootloader example project not working</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-Bootloader-example-project-not-working/m-p/1954374#M40941</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/122048"&gt;@emb02&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is not original bootloader from application note AN12218, so we won't support this. It's just some modified version from another community user, not from NXP.&lt;/P&gt;
&lt;P&gt;I recommend to start with original AN12218:&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;The document also says, why data flash memory is used for the bootloader:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1726241861346.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299090iDAB2B7C295D4FDEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1726241861346.png" alt="lukaszadrapa_0-1726241861346.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="lukaszadrapa_1-1726241879490.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299091i6CB09EFD5B5188DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1726241879490.png" alt="lukaszadrapa_1-1726241879490.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Another reason is that Read-While-Write is supported between the data flash and program flash, so it makes the bootloader simpler because it's not necessary to run the code from RAM during programming.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 15:39:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-Bootloader-example-project-not-working/m-p/1954374#M40941</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2024-09-13T15:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 Bootloader example project not working</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-Bootloader-example-project-not-working/m-p/1954608#M40948</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;I have mapped memory in linker as per below configuration.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mem mapping.PNG" style="width: 335px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299146i861279DBABCBAF17/image-size/large?v=v2&amp;amp;px=999" role="button" title="Mem mapping.PNG" alt="Mem mapping.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can't share bootloader project as per company's policy. But I'm using below memory configuration in Linker.&lt;/P&gt;&lt;P&gt;Bootloader Memory mapping:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BL mem.PNG" style="width: 528px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299147iEE79007FFDCB814C/image-size/large?v=v2&amp;amp;px=999" role="button" title="BL mem.PNG" alt="BL mem.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Application Memory mapping:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="APP mem.PNG" style="width: 536px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299148i709C66260EFC3F1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="APP mem.PNG" alt="APP mem.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is our code routine:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code.PNG" style="width: 635px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299152i6A69E8664662C6B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="code.PNG" alt="code.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am able to jump &lt;STRONG&gt;from bootloader&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;to application &lt;/STRONG&gt;using my code, but not able to jump&amp;nbsp;&lt;STRONG&gt;from application to bootloader.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please guide me with this.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2024 07:03:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-Bootloader-example-project-not-working/m-p/1954608#M40948</guid>
      <dc:creator>emb02</dc:creator>
      <dc:date>2024-09-14T07:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 Bootloader example project not working</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-Bootloader-example-project-not-working/m-p/1955118#M40971</link>
      <description>&lt;P&gt;What can you see in core registers when stepping over the jump instruction? I mean in asm, not in C. Is correct address loaded in the registers? Does it jump to the entry point? If yes, does it crash later in the application? Where?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 10:04:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-Bootloader-example-project-not-working/m-p/1955118#M40971</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2024-09-16T10:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 Bootloader example project not working</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-Bootloader-example-project-not-working/m-p/1960700#M41284</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795" target="_blank"&gt;@lukaszadrapa&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response. I've checked&amp;nbsp;core registers&amp;nbsp;and now I'm able to jump to bootloader from firmware.&lt;/P&gt;&lt;P&gt;Now I want to use primary and secondary bootloader so I'm using 24 KB for Primary bootloader and 64 KB for secondary bootloader.&lt;/P&gt;&lt;P&gt;Flash configuration in Primary bootloader:&lt;/P&gt;&lt;P&gt;static const flash_user_config_t _xFlashFirmwareInitCfg =&lt;BR /&gt;{&lt;BR /&gt;.PFlashBase = 0x0U,&lt;BR /&gt;.PFlashSize = 0x16000U, // 24KB + 64KB = 88KB&lt;BR /&gt;.DFlashBase = 0x10000000U,&lt;BR /&gt;.EERAMBase = 0x14000000U,&lt;BR /&gt;.CallBack = NULL_CALLBACK&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;Flash configuration in Secondary bootloader:&lt;/P&gt;&lt;P&gt;static const flash_user_config_t _xFlashFirmwareInitCfg =&lt;BR /&gt;{&lt;BR /&gt;.PFlashBase = 0x6000U,&lt;BR /&gt;.PFlashSize = 0x7A000U, // 64KB + 424KB = 448KB&lt;BR /&gt;.DFlashBase = 0x10000000U,&lt;BR /&gt;.EERAMBase = 0x14000000U,&lt;BR /&gt;.CallBack = NULL_CALLBACK&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;With this configuration I'm not able write or erase flash memory at address 0x16000 in secondary bootloader project.&lt;/P&gt;&lt;P&gt;But if I'm using below configuration for secondary bootloader then I'm able to write/erase this memory.&lt;/P&gt;&lt;P&gt;static const flash_user_config_t _xFlashFirmwareInitCfg =&lt;BR /&gt;{&lt;BR /&gt;.PFlashBase = 0x0000U,&lt;BR /&gt;.PFlashSize = 0x80000U, // 24KB + 64KB + 424KB = 512KB&lt;BR /&gt;.DFlashBase = 0x10000000U,&lt;BR /&gt;.EERAMBase = 0x14000000U,&lt;BR /&gt;.CallBack = NULL_CALLBACK&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;I'm not able to understand Why configuration of base address and flash size of primary bootloader is also required to be configured in secondary bootloader ?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 10:20:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-Bootloader-example-project-not-working/m-p/1960700#M41284</guid>
      <dc:creator>emb02</dc:creator>
      <dc:date>2024-09-24T10:20:53Z</dc:date>
    </item>
  </channel>
</rss>

