<?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: S32R274,bootloader jump to app project in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32R274-bootloader-jump-to-app-project/m-p/1094382#M6672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm used to recommend these two things:&lt;/P&gt;&lt;P&gt;- the best way: use software reset and jump to the application right after reset (using asm code in startup files) before initialization of bootloader's resources.&lt;/P&gt;&lt;P&gt;- completely de-init everything before jump. Most important - disable interrupts on all levels - by MSR[EE], by local enable bits in peripherals, by priority registers. I would also put all used peripherals back to default reset state.&lt;/P&gt;&lt;P&gt;This can save a lot of debugging and headache.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2020 12:12:49 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2020-07-16T12:12:49Z</dc:date>
    <item>
      <title>S32R274,bootloader jump to app project</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32R274-bootloader-jump-to-app-project/m-p/1094380#M6670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote a bootloader for S32R274，it can download app project files to flash, but when I jump to the app, it seems that only Z7 works，Z4_0&amp;nbsp;does not have any log output。Is there a problem with my method of jumping to the app？who can help me？thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;#define APP_StartAddr (*(uint32_t*)0x01000004)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;void app_entry(void)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt; UART_Deinit(&amp;amp;uart_pal1_instance);&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt; INT_SYS_DisableIRQGlobal();&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt; (*(void (*)(void))(APP_StartAddr))();&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;while(1);&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the flash allocation is as follows：&lt;/P&gt;&lt;P&gt;bootloader linker_flash.ld:&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt; flash_rchw : org = 0x00F98000, len = 0x4&lt;BR /&gt; cpu0_reset_vec : org = 0x00F98000+0x04, len = 0x4&lt;/P&gt;&lt;P&gt;m_text : org = 0x00F99000, len = 92K&lt;BR /&gt; m_data : org = 0x40000000, len = 426K&lt;BR /&gt; local_dmem : org = 0x50800000, len = 64K&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app linker_flash.ld&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;/*Boot flash areas*/&lt;BR /&gt; flash_rchw : org = 0x01000000, len = 0x4&lt;BR /&gt; cpu0_reset_vec : org = 0x01000004, len = 0x4&lt;BR /&gt; /*...it could go all the way up to 0x00FFFFFF*/&lt;BR /&gt; &lt;BR /&gt; /* Flash memory areas for each core */&lt;BR /&gt; c0_flash : org = &lt;SPAN&gt;0x01001000&lt;/SPAN&gt;, len = 508K&lt;BR /&gt; c1_flash : org = &lt;SPAN&gt;0x01001000&lt;/SPAN&gt;+ LENGTH(c0_flash), len = 512K&lt;BR /&gt; c2_flash : org = &lt;SPAN&gt;0x01001000&lt;/SPAN&gt;+ LENGTH(c0_flash)+LENGTH(c1_flash), len = 1K&lt;BR /&gt; common_flash : org = &lt;SPAN&gt;0x01001000&lt;/SPAN&gt;+ LENGTH(c0_flash)+LENGTH(c1_flash)+LENGTH(c2_flash), len = 256K&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 01:05:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32R274-bootloader-jump-to-app-project/m-p/1094380#M6670</guid>
      <dc:creator>chenmin1</dc:creator>
      <dc:date>2020-07-14T01:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: S32R274,bootloader jump to app project</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32R274-bootloader-jump-to-app-project/m-p/1094381#M6671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found through debugging that the program is stuck at&amp;nbsp;&amp;nbsp;init_data_bss()&amp;nbsp; in Startup.c&amp;nbsp; when copy initialized table。I also found that the Z7 core started unexpectedly，the function to open the z7 core is not executed。&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2020 09:08:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32R274-bootloader-jump-to-app-project/m-p/1094381#M6671</guid>
      <dc:creator>chenmin1</dc:creator>
      <dc:date>2020-07-16T09:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32R274,bootloader jump to app project</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32R274-bootloader-jump-to-app-project/m-p/1094382#M6672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm used to recommend these two things:&lt;/P&gt;&lt;P&gt;- the best way: use software reset and jump to the application right after reset (using asm code in startup files) before initialization of bootloader's resources.&lt;/P&gt;&lt;P&gt;- completely de-init everything before jump. Most important - disable interrupts on all levels - by MSR[EE], by local enable bits in peripherals, by priority registers. I would also put all used peripherals back to default reset state.&lt;/P&gt;&lt;P&gt;This can save a lot of debugging and headache.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:12:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32R274-bootloader-jump-to-app-project/m-p/1094382#M6672</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-07-16T12:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: S32R274,bootloader jump to app project</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32R274-bootloader-jump-to-app-project/m-p/1094383#M6673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas，&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Thank you very much for the solution，my&amp;nbsp;bootloader can now run normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards，&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 01:37:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32R274-bootloader-jump-to-app-project/m-p/1094383#M6673</guid>
      <dc:creator>chenmin1</dc:creator>
      <dc:date>2020-07-20T01:37:32Z</dc:date>
    </item>
  </channel>
</rss>

