<?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: s32k148 boot loader in S32K</title>
    <link>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901267#M4525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Diana Batrlova,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delayed reply, after vacation I start to work from today on this bootloader implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the detailed info. I am trying this solution and able to build the code today, unable to debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e during bootup(after power ON) if the terminal(or teratem) is connected via comport, we can able to see the boot sequence in terminal console. But this facility is seems not available in s32k148.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we connect s32k148 with terminal, then&amp;nbsp; the bootup sequence can be seen in terminal console.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2019 12:02:54 GMT</pubDate>
    <dc:creator>sathish_sekar</dc:creator>
    <dc:date>2019-04-24T12:02:54Z</dc:date>
    <item>
      <title>s32k148 boot loader</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901265#M4523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on to modify the bootloader / startup sequence for s32k148.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Able to identify the bootloader code, but i required to modify the&amp;nbsp;&lt;SPAN&gt;startup code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i.e in startupcode I want to select the another bootloader(i require to use multi bootloader, selection is based on switch/jumper settings.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could any help me to identify the startupcode to modify?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Startup code files are available in my PC in the following path&amp;nbsp; &amp;nbsp;...\Bootloader_Software\S32K148_bootloader\Project_Settings\Startup_Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But unable to identify the sequence, from where boot loader sequence is called.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOTE:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using windows PC, and installed necessary softwares/ not using linux.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 06:52:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901265#M4523</guid>
      <dc:creator>sathish_sekar</dc:creator>
      <dc:date>2019-04-18T06:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 boot loader</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901266#M4524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sathish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to&amp;nbsp;describe a possible solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At first, I have created the function in a &lt;STRONG&gt;startup.c&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, init the related PORT and check the level of a pin and on that basis decide into which bootloader you will jump in&amp;nbsp;that function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, I have modified &lt;STRONG&gt;startup_S32K148.S&amp;nbsp;&lt;/STRONG&gt;and under the&amp;nbsp;&lt;STRONG&gt;Reset_Handler&amp;nbsp;&lt;/STRONG&gt;I call Myfunction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reset_Handler:&lt;BR /&gt; cpsid i /* Mask interrupts */&lt;/P&gt;&lt;P&gt;ldr r0,=MyFunction&lt;BR /&gt; blx r0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 14:39:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901266#M4524</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2019-04-18T14:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 boot loader</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901267#M4525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Diana Batrlova,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delayed reply, after vacation I start to work from today on this bootloader implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the detailed info. I am trying this solution and able to build the code today, unable to debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e during bootup(after power ON) if the terminal(or teratem) is connected via comport, we can able to see the boot sequence in terminal console. But this facility is seems not available in s32k148.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we connect s32k148 with terminal, then&amp;nbsp; the bootup sequence can be seen in terminal console.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 12:02:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901267#M4525</guid>
      <dc:creator>sathish_sekar</dc:creator>
      <dc:date>2019-04-24T12:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 boot loader</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901268#M4526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sathish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if I understand well your description. What do you mean by boot sequence and the facility which is not available on the S32K148?&lt;/P&gt;&lt;P&gt;Do you use our evaluation board S32K148EVB?&lt;/P&gt;&lt;P&gt;Or could you please send some screens from the terminal how your boot sequence looks like?&lt;/P&gt;&lt;P&gt;After what action are&amp;nbsp;you unable to debug the code, after jump into bootloader?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 14:37:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901268#M4526</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2019-04-24T14:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 boot loader</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901269#M4527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;S32K148EVB, in this modifying boot loader implementation is in progress.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am not using any terminal console, i want to use the terminal to print the data to debug&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Refer the below code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int bootloader1(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;/* Initialize clock */&lt;BR /&gt; clock_initi();&lt;/P&gt;&lt;P&gt;/* Initialize communication interfaces */&lt;BR /&gt; init_comm();&lt;/P&gt;&lt;P&gt;/* Initialize timeout */&lt;BR /&gt; init_timeout();&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;printf("\n Bootloader 1 is running");&lt;/STRONG&gt;&lt;BR /&gt; /* Check if boot start has been received or timeout occurred */&lt;BR /&gt; do{&lt;BR /&gt; uint8_t word_received = comm_status_rx();&lt;BR /&gt; if(word_received){&lt;BR /&gt; boot_from_comm = 1;&lt;BR /&gt; comm_download_app();&lt;BR /&gt; }&lt;BR /&gt; } while((!timeout()) &amp;amp; (!boot_from_comm));&lt;/P&gt;&lt;P&gt;/* Disable all systems and leave device as if coming out of reset */&lt;BR /&gt; disable_timeout();&lt;BR /&gt; disable_comm();&lt;BR /&gt; reset_clock();&lt;/P&gt;&lt;P&gt;/* Check if a valid application is loaded and jump to it */&lt;BR /&gt; JumpToUserApplication(*((uint32_t*)APP_START_ADDRESS), *((uint32_t*)(APP_START_ADDRESS + 4)));&lt;/P&gt;&lt;P&gt;/* Should never return from application code */&lt;BR /&gt; for (;;) {};&lt;BR /&gt; /* Never leave main */&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int bootloader2 (void)&lt;BR /&gt;{&lt;BR /&gt; &lt;STRONG&gt;printf("\n Bootloader 2 is running");&lt;/STRONG&gt;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;In startup_S32K148.S&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Reset_Handler:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;/* Init .data and .bss sections */&lt;BR /&gt; ldr r0,=init_data_bss&lt;BR /&gt; blx r0&lt;BR /&gt; cpsie i /* Unmask interrupts */&lt;BR /&gt; ldr r0,=&lt;STRONG&gt;bootloader2&lt;/STRONG&gt;&lt;BR /&gt; blx r0&lt;BR /&gt; bl &lt;STRONG&gt;bootloader1&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I would like to ensure that both print statements are&amp;nbsp;executed or not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;for that I need terminal console.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hope I have explained the issue, in case of need of more info pls write again.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 08:21:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901269#M4527</guid>
      <dc:creator>sathish_sekar</dc:creator>
      <dc:date>2019-04-25T08:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 boot loader</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901270#M4528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sathis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your comments.&amp;nbsp;I see this is about printf() implementation.&lt;/P&gt;&lt;P&gt;In that case, I would like to&amp;nbsp;direct you to link below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/484279"&gt;printf() through OpenSDA&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There can be found very useful details.&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 13:31:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901270#M4528</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2019-04-25T13:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 boot loader</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901271#M4529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Diana Batrlova,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="" data-containerid="11462" data-containertype="14" data-content-finding="Community" data-objectid="484279" data-objecttype="1" href="https://community.nxp.com/thread/484279" style="color: #3d9ce7; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;printf() through OpenSDA&lt;/A&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; is made for s32k144, I will adopt this to s32k148.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 13:25:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-boot-loader/m-p/901271#M4529</guid>
      <dc:creator>sathish_sekar</dc:creator>
      <dc:date>2019-04-30T13:25:41Z</dc:date>
    </item>
  </channel>
</rss>

