<?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 MPC5744P bootloader in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-bootloader/m-p/702394#M8902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;/* Configure FCCU */ &lt;BR /&gt;FCCU_SetProtocol(FCCU_BI_STABLE); //set Bi-Stable protocol if not in the SAFE mode &lt;BR /&gt;&lt;BR /&gt;/* Init MODE ENTRY module */ &lt;BR /&gt;MC_MODE_INIT(); /* (pll_init) Setup the MCU clocks and modes */ &lt;BR /&gt;&lt;BR /&gt;xcptn_xmpl (); /* Configure and Eable Interrupts */ &lt;BR /&gt;&lt;BR /&gt;dcache_disable(); &lt;BR /&gt;&lt;BR /&gt;PIT_Init(); &lt;BR /&gt;&lt;BR /&gt;PIT_Setup(0,50000000, 0.005); &lt;BR /&gt;&lt;BR /&gt;MC33908_Init(); &lt;BR /&gt;&lt;BR /&gt;DSPI_Init(EEROM_DSPI_NB,MASTER,DSPI_CLK,EEROM_DSPI_BR,0); &lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;BR /&gt;if(Get_AppValid()) &lt;BR /&gt;{ &lt;BR /&gt;__asm__(" e_lis %r3, 0x0104"); &lt;BR /&gt;__asm__(" e_ori %r3,%r3,0x0000"); &lt;BR /&gt;__asm__(" se_mtlr %r3"); &lt;BR /&gt;__asm__(" se_blr"); &lt;BR /&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;......&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;&lt;P&gt;&lt;SPAN&gt;The above code runs in the bootloader main () function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Get_AppValid () detects valid flags for applications in flash. The flags is stored at flash 0x11C0000. When the application download finished , the flags is set to 0x5555AAAA. The Get_AppValid () function check passes through assembly instructions jump to the application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The application start address is 0x1040000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now after the download finished, bootloader reset, restart, run to the Get_AppValid (), jump into the 0x1040000 operation. As a result, IVOR1 interrupts are generated. Single step debugging to see, the program jumped to the 0x1040000, and running 4 instructions, and then into the ivor1 interrupt.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope technical support can help solve. Determines whether or not to change the jump mode, or the chip needs to do relevant settings to modify the machine check function.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2017 04:13:28 GMT</pubDate>
    <dc:creator>huangchuo</dc:creator>
    <dc:date>2017-08-21T04:13:28Z</dc:date>
    <item>
      <title>MPC5744P bootloader</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-bootloader/m-p/702394#M8902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;/* Configure FCCU */ &lt;BR /&gt;FCCU_SetProtocol(FCCU_BI_STABLE); //set Bi-Stable protocol if not in the SAFE mode &lt;BR /&gt;&lt;BR /&gt;/* Init MODE ENTRY module */ &lt;BR /&gt;MC_MODE_INIT(); /* (pll_init) Setup the MCU clocks and modes */ &lt;BR /&gt;&lt;BR /&gt;xcptn_xmpl (); /* Configure and Eable Interrupts */ &lt;BR /&gt;&lt;BR /&gt;dcache_disable(); &lt;BR /&gt;&lt;BR /&gt;PIT_Init(); &lt;BR /&gt;&lt;BR /&gt;PIT_Setup(0,50000000, 0.005); &lt;BR /&gt;&lt;BR /&gt;MC33908_Init(); &lt;BR /&gt;&lt;BR /&gt;DSPI_Init(EEROM_DSPI_NB,MASTER,DSPI_CLK,EEROM_DSPI_BR,0); &lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;BR /&gt;if(Get_AppValid()) &lt;BR /&gt;{ &lt;BR /&gt;__asm__(" e_lis %r3, 0x0104"); &lt;BR /&gt;__asm__(" e_ori %r3,%r3,0x0000"); &lt;BR /&gt;__asm__(" se_mtlr %r3"); &lt;BR /&gt;__asm__(" se_blr"); &lt;BR /&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;......&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;&lt;P&gt;&lt;SPAN&gt;The above code runs in the bootloader main () function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Get_AppValid () detects valid flags for applications in flash. The flags is stored at flash 0x11C0000. When the application download finished , the flags is set to 0x5555AAAA. The Get_AppValid () function check passes through assembly instructions jump to the application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The application start address is 0x1040000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now after the download finished, bootloader reset, restart, run to the Get_AppValid (), jump into the 0x1040000 operation. As a result, IVOR1 interrupts are generated. Single step debugging to see, the program jumped to the 0x1040000, and running 4 instructions, and then into the ivor1 interrupt.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope technical support can help solve. Determines whether or not to change the jump mode, or the chip needs to do relevant settings to modify the machine check function.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 04:13:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-bootloader/m-p/702394#M8902</guid>
      <dc:creator>huangchuo</dc:creator>
      <dc:date>2017-08-21T04:13:28Z</dc:date>
    </item>
  </channel>
</rss>

