<?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: s32k148 bootloader to app can't work interrupt</title>
    <link>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1167179#M8475</link>
    <description>&lt;P&gt;i resolve the app can't&amp;nbsp; interrupt.&lt;/P&gt;&lt;P&gt;bootloader side :&lt;/P&gt;&lt;P&gt;canflash finishing don't use&amp;nbsp;JumpToUserApplication(...); to app.&lt;/P&gt;&lt;P&gt;because the bootloader i have use isr for can,ptc,time isr. if use&amp;nbsp;JumpToUserApplication() that isr irq may trigger,&lt;/P&gt;&lt;P&gt;than at app the&amp;nbsp;__VECTOR_TABLE incorrect trigger.&lt;/P&gt;&lt;P&gt;1.canflash finishinh so needs use&amp;nbsp;than set flag to ram PAddress=0x55aaaa55;&lt;/P&gt;&lt;P&gt;2.SystemSoftwareReset();&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.the bootloader sw reset than check&amp;nbsp;PAddress=0x55aaaa55;&lt;/P&gt;&lt;P&gt;4.go to&amp;nbsp;JumpToUserApplication()&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;app to&amp;nbsp;bootloader&amp;nbsp; don't use&amp;nbsp;JumpToUserApplication()&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.stop all isr,set ram/rom flag&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.use&amp;nbsp;SystemSoftwareReset();&amp;nbsp; than go to&amp;nbsp;bootloader&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.bootloader check the&amp;nbsp;ram/rom flag ;if set goto canflash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i think the was&amp;nbsp;startup_S32K148.s bug .&lt;/P&gt;&lt;P&gt;because the&amp;nbsp;Reset_Handler just disable&amp;nbsp;INT_SYS_DisableIRQGlobal();,but isr trigger true&amp;nbsp;exist at boot or app.&lt;/P&gt;&lt;P&gt;so the boot to app&amp;nbsp;DisableIRQGlobal only&amp;nbsp;disable&amp;nbsp;Global isr ,bit unit isr true work.&lt;/P&gt;&lt;P&gt;to go app the isr trigger at app side,than app relocal&amp;nbsp;__flash_vector_table__ can't correct trigger at app isr.&lt;/P&gt;&lt;P&gt;but detail may nxp can try it.&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>Wed, 14 Oct 2020 06:17:44 GMT</pubDate>
    <dc:creator>jaures168</dc:creator>
    <dc:date>2020-10-14T06:17:44Z</dc:date>
    <item>
      <title>s32k148 bootloader to app can't work interrupt</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1165845#M8445</link>
      <description>&lt;P&gt;i use can for bootloader and use expert to generate the can driver.&lt;/P&gt;&lt;P&gt;set boot ld&lt;/P&gt;&lt;P&gt;/* Specify the memory areas */&lt;BR /&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;/* Flash */&lt;BR /&gt;m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x00000400&lt;BR /&gt;m_flash_config (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010&lt;BR /&gt;m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0001fbf0 /*0x0017FB00*/&lt;BR /&gt;/*m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0017FB00*/&lt;BR /&gt;/*m_flash_app_head (RX) : ORIGIN = 0x0017FF10, LENGTH = 0x000000F0*/&lt;/P&gt;&lt;P&gt;/* SRAM_L */&lt;BR /&gt;m_data (RW) : ORIGIN = 0x1FFE0000, LENGTH = 0x00020000&lt;/P&gt;&lt;P&gt;/* SRAM_U */&lt;BR /&gt;m_data_2 (RW) : ORIGIN = 0x20000000, LENGTH = 0x0001EFF8&lt;BR /&gt;&lt;BR /&gt;/* Reserved 64K data flash for EEPROM emulator (m_flexram) */&lt;BR /&gt;m_flexram (RW) : ORIGIN = 0x14000000, LENGTH = 4K&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;app ld file&lt;/P&gt;&lt;P&gt;m_interrupts (RX) : ORIGIN = 0x00020000, LENGTH = 0x00000400&lt;BR /&gt;m_flash_config (RX) : ORIGIN = 0x00020400, LENGTH = 0x00000010&lt;BR /&gt;m_text (RX) : ORIGIN = 0x00020410, LENGTH = 0x0015FB00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use&amp;nbsp;JumpToUserApplication();&lt;/P&gt;&lt;P&gt;the go to 0x20000 run app that work passed.&lt;/P&gt;&lt;P&gt;but the interrupt can't work at app side.&lt;/P&gt;&lt;P&gt;the all isr can't work and lock at&amp;nbsp;OSIF_SemaWait();&lt;/P&gt;&lt;P&gt;because the isr&amp;nbsp;SysTick_Handler() not work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lock_osif.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127209i01BB358E5144D42E/image-size/large?v=v2&amp;amp;px=999" role="button" title="lock_osif.jpg" alt="lock_osif.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lock_osif2.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127210i7ECFDCF3D988E826/image-size/large?v=v2&amp;amp;px=999" role="button" title="lock_osif2.jpg" alt="lock_osif2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;attached zip file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 06:41:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1165845#M8445</guid>
      <dc:creator>jaures168</dc:creator>
      <dc:date>2020-10-12T06:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 bootloader to app can't work interrupt</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166048#M8450</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you relocated the vector table address before the jump?&lt;/P&gt;
&lt;P&gt;S32_SCB-&amp;gt;VTOR = (uint32_t)APP_START_ADDRESS;&lt;/P&gt;
&lt;P&gt;However, I have found a similar thread where is solved a similar issue:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/Interrupt-can-t-work-in-application/m-p/674635" target="_blank"&gt;https://community.nxp.com/t5/S32K/Interrupt-can-t-work-in-application/m-p/674635&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Diana&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 12:18:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166048#M8450</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-10-12T12:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 bootloader to app can't work interrupt</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166053#M8451</link>
      <description>&lt;P&gt;yes ! INT_SYS_DisableIRQGlobal();&lt;BR /&gt;JumpToUserApplication(*((uint32_t*)APP_START_ADDRESS), *((uint32_t*)(APP_START_ADDRESS + 4)));&lt;/P&gt;&lt;P&gt;APP_START_ADDRESS 0x20000&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JumpToUserApplication2.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127241iF519994BCF70B368/image-size/large?v=v2&amp;amp;px=999" role="button" title="JumpToUserApplication2.jpg" alt="JumpToUserApplication2.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JumpToUserApplication.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127240i23CF302DBD1982AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="JumpToUserApplication.jpg" alt="JumpToUserApplication.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 12:24:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166053#M8451</guid>
      <dc:creator>jaures168</dc:creator>
      <dc:date>2020-10-12T12:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 bootloader to app can't work interrupt</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166072#M8453</link>
      <description>&lt;P&gt;if i use debug tools go to&amp;nbsp;Reset_Handler() that isr can't work.&lt;/P&gt;&lt;P&gt;it's go to address 0x0000908&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="resethandler.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127245i4E3407D7D5488222/image-size/large?v=v2&amp;amp;px=999" role="button" title="resethandler.jpg" alt="resethandler.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 12:49:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166072#M8453</guid>
      <dc:creator>jaures168</dc:creator>
      <dc:date>2020-10-12T12:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 bootloader to app can't work interrupt</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166126#M8455</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have made some tests with the serial bootloader and application which uses SysTick interrupt.&lt;/P&gt;
&lt;P&gt;After adding "S32_SCB-&amp;gt;VTOR = (uint32_t)&lt;SPAN&gt;APP_START_ADDRESS&amp;nbsp;&lt;/SPAN&gt;;" into &lt;STRONG&gt;application project&lt;/STRONG&gt; the interrupt starts working.&lt;/P&gt;
&lt;P&gt;After the jump into the application project the VTOR register is reset, so, the vector table needs to be relocated directly in the application project.&lt;/P&gt;
&lt;P&gt;I believe it helps.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Diana&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 13:54:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166126#M8455</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-10-12T13:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 bootloader to app can't work interrupt</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166358#M8458</link>
      <description>&lt;P&gt;which c file add the&amp;nbsp;"S32_SCB-&amp;gt;VTOR = (uint32_t)APP_START_ADDRESS ;"?&lt;/P&gt;&lt;P&gt;void init_data_bss(void) of startup.c.&lt;/P&gt;&lt;P&gt;i don't know which file add&amp;nbsp;&amp;nbsp;&amp;nbsp;"S32_SCB-&amp;gt;VTOR = (uint32_t)APP_START_ADDRESS ;" was right.&lt;/P&gt;&lt;P&gt;please tell me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VECTOR_TABLE.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127287iEF3F8AF37C3A1EFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="VECTOR_TABLE.jpg" alt="VECTOR_TABLE.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 00:58:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166358#M8458</guid>
      <dc:creator>jaures168</dc:creator>
      <dc:date>2020-10-13T00:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 bootloader to app can't work interrupt</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166502#M8462</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm sorry, I have used it in main.c.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dianabatrlova_0-1602569229604.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127315i3338444703B000C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dianabatrlova_0-1602569229604.png" alt="dianabatrlova_0-1602569229604.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Diana&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 06:08:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166502#M8462</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-10-13T06:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 bootloader to app can't work interrupt</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166574#M8468</link>
      <description>&lt;P&gt;add&amp;nbsp;S32_SCB-&amp;gt;VTOR= (uint32_t)0x20000; at main&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I TRY the interrupt can't work.&lt;/P&gt;&lt;P&gt;please tell me how to debug the&amp;nbsp;Global&amp;nbsp;interrupt address.&lt;/P&gt;&lt;P&gt;the ptc isr can't work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vtor1.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127320iBB1469F424C24C53/image-size/large?v=v2&amp;amp;px=999" role="button" title="vtor1.jpg" alt="vtor1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 07:47:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1166574#M8468</guid>
      <dc:creator>jaures168</dc:creator>
      <dc:date>2020-10-13T07:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: s32k148 bootloader to app can't work interrupt</title>
      <link>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1167179#M8475</link>
      <description>&lt;P&gt;i resolve the app can't&amp;nbsp; interrupt.&lt;/P&gt;&lt;P&gt;bootloader side :&lt;/P&gt;&lt;P&gt;canflash finishing don't use&amp;nbsp;JumpToUserApplication(...); to app.&lt;/P&gt;&lt;P&gt;because the bootloader i have use isr for can,ptc,time isr. if use&amp;nbsp;JumpToUserApplication() that isr irq may trigger,&lt;/P&gt;&lt;P&gt;than at app the&amp;nbsp;__VECTOR_TABLE incorrect trigger.&lt;/P&gt;&lt;P&gt;1.canflash finishinh so needs use&amp;nbsp;than set flag to ram PAddress=0x55aaaa55;&lt;/P&gt;&lt;P&gt;2.SystemSoftwareReset();&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.the bootloader sw reset than check&amp;nbsp;PAddress=0x55aaaa55;&lt;/P&gt;&lt;P&gt;4.go to&amp;nbsp;JumpToUserApplication()&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;app to&amp;nbsp;bootloader&amp;nbsp; don't use&amp;nbsp;JumpToUserApplication()&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.stop all isr,set ram/rom flag&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.use&amp;nbsp;SystemSoftwareReset();&amp;nbsp; than go to&amp;nbsp;bootloader&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.bootloader check the&amp;nbsp;ram/rom flag ;if set goto canflash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i think the was&amp;nbsp;startup_S32K148.s bug .&lt;/P&gt;&lt;P&gt;because the&amp;nbsp;Reset_Handler just disable&amp;nbsp;INT_SYS_DisableIRQGlobal();,but isr trigger true&amp;nbsp;exist at boot or app.&lt;/P&gt;&lt;P&gt;so the boot to app&amp;nbsp;DisableIRQGlobal only&amp;nbsp;disable&amp;nbsp;Global isr ,bit unit isr true work.&lt;/P&gt;&lt;P&gt;to go app the isr trigger at app side,than app relocal&amp;nbsp;__flash_vector_table__ can't correct trigger at app isr.&lt;/P&gt;&lt;P&gt;but detail may nxp can try it.&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>Wed, 14 Oct 2020 06:17:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k148-bootloader-to-app-can-t-work-interrupt/m-p/1167179#M8475</guid>
      <dc:creator>jaures168</dc:creator>
      <dc:date>2020-10-14T06:17:44Z</dc:date>
    </item>
  </channel>
</rss>

