<?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: How to exit serial download mode with sdphost (RT1050) in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-exit-serial-download-mode-with-sdphost-RT1050/m-p/1174980#M10985</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/56840"&gt;@jeremyzhou&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, I seem to know the problem.&amp;nbsp; First, I forced BOOT_CFG Pin = 01 to enter sdp mode.&lt;/P&gt;&lt;P&gt;After that, upload flashloader image and run. At this moment, even though I change pin setting to internal boot mode&lt;/P&gt;&lt;P&gt;while flashloader is still running. BOOT_CFG Pin setting will be only latch once after power-on reset.&lt;/P&gt;&lt;P&gt;Also, Blhost --reset command is not equal power-on reset. So, it will always boot into serial download mode.&lt;/P&gt;&lt;P&gt;Am I right ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2020 04:50:08 GMT</pubDate>
    <dc:creator>eric_yp_chen</dc:creator>
    <dc:date>2020-10-29T04:50:08Z</dc:date>
    <item>
      <title>How to exit serial download mode with sdphost (RT1050)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-exit-serial-download-mode-with-sdphost-RT1050/m-p/1174502#M10960</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/56840"&gt;@jeremyzhou&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to exit serial download mode by using sdphost's write-register command ?&lt;/P&gt;&lt;P&gt;First, I've already upload bootable image into SPI flash through blhost.&lt;/P&gt;&lt;P&gt;After I send blhost --reset command , the device seems boot abnormally.&lt;/P&gt;&lt;P&gt;It boot into serial download mode again. However, if I re-plug in the power , or press the POR reset button. It can boot normally into my application.&lt;/P&gt;&lt;P&gt;I'd like to know what's wrong with this condition ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 12:02:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-exit-serial-download-mode-with-sdphost-RT1050/m-p/1174502#M10960</guid>
      <dc:creator>eric_yp_chen</dc:creator>
      <dc:date>2020-10-28T12:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to exit serial download mode with sdphost (RT1050)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-exit-serial-download-mode-with-sdphost-RT1050/m-p/1174961#M10983</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;1) I'd like to know what's wrong with this condition?&lt;BR /&gt;-- I think the source code of handling the Reset command can give us the answer.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;//! @brief Reset command handler.
void handle_reset(uint8_t *packet, uint32_t packetLength)
{
    command_packet_t *commandPacket = (command_packet_t *)packet;
    send_generic_response(kStatus_Success, commandPacket-&amp;gt;commandTag);

    // Wait for the ack from the host to the generic response
    g_bootloaderContext.activePeripheral-&amp;gt;packetInterface-&amp;gt;finalize(g_bootloaderContext.activePeripheral);

    // Prepare for shutdown.
    shutdown_cleanup(kShutdownType_Reset);
#if defined(BL_FEATURE_6PINS_PERIPHERAL) &amp;amp;&amp;amp; BL_FEATURE_6PINS_PERIPHERAL
    shutdown_cleanup(kShutdownType_Cleanup);
#endif // BL_FEATURE_6PINS_PERIPHERAL

    NVIC_SystemReset();
    // Does not get here.
    assert(0);
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;After going through the code, we can find that the handle_reset function will execute the NVIC_SystemReset() to trigger a reset event, then MCU will boot from the mode which is determined by either boot pins or fuse set, and I think it can explain the phenomenon you encountered.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 03:05:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-exit-serial-download-mode-with-sdphost-RT1050/m-p/1174961#M10983</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-10-29T03:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to exit serial download mode with sdphost (RT1050)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-exit-serial-download-mode-with-sdphost-RT1050/m-p/1174980#M10985</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/56840"&gt;@jeremyzhou&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, I seem to know the problem.&amp;nbsp; First, I forced BOOT_CFG Pin = 01 to enter sdp mode.&lt;/P&gt;&lt;P&gt;After that, upload flashloader image and run. At this moment, even though I change pin setting to internal boot mode&lt;/P&gt;&lt;P&gt;while flashloader is still running. BOOT_CFG Pin setting will be only latch once after power-on reset.&lt;/P&gt;&lt;P&gt;Also, Blhost --reset command is not equal power-on reset. So, it will always boot into serial download mode.&lt;/P&gt;&lt;P&gt;Am I right ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 04:50:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-exit-serial-download-mode-with-sdphost-RT1050/m-p/1174980#M10985</guid>
      <dc:creator>eric_yp_chen</dc:creator>
      <dc:date>2020-10-29T04:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to exit serial download mode with sdphost (RT1050)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-exit-serial-download-mode-with-sdphost-RT1050/m-p/1175028#M10988</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;1) Am I right?&lt;BR /&gt;-- No, I'm afraid not, I think the --reset command to force the MCU exit the Serial Download if the BOOT CFG pins were set to internal boot mode before.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 06:01:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-exit-serial-download-mode-with-sdphost-RT1050/m-p/1175028#M10988</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-10-29T06:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to exit serial download mode with sdphost (RT1050)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-exit-serial-download-mode-with-sdphost-RT1050/m-p/1175564#M11010</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/56840"&gt;@jeremyzhou&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My verification steps as below:&amp;nbsp; ( using IMXRT1050-EVKB)&lt;/P&gt;&lt;P&gt;1. Modify SW7 to 0001 (Set as serial download).&lt;/P&gt;&lt;P&gt;2. Use MCUBootUtility upload flashloader.&lt;/P&gt;&lt;P&gt;3. Use MCUBootUtility upload bootable image into nor-flash.&lt;/P&gt;&lt;P&gt;4. Modify SW7 to 0010 (Set as internal boot).&lt;/P&gt;&lt;P&gt;5. Press "reset device" button on MCUBootUtility --&amp;gt; this will trigger sending blhost --reset command&lt;/P&gt;&lt;P&gt;After these steps, mcu still stuck in serial download mode.&lt;/P&gt;&lt;P&gt;At this moment, you could try using&amp;nbsp;this command "sdphost -t 50000 -u 0x1FC9,0x0130 -- read-register 1074757660 32 4"&lt;/P&gt;&lt;P&gt;This register represent SRC_SBMR2 which include BootMode Pin setting.&lt;/P&gt;&lt;P&gt;It always shows BootMode = 01, that means mcu didn't latch new setting when we sending blhost--reset&lt;/P&gt;&lt;P&gt;command through usb.&lt;/P&gt;&lt;P&gt;I've tried over 30 times or more..., the results were all the same.&amp;nbsp; BOOT_CFG Pin setting will be only latch once after&amp;nbsp;POR_B hardware reset triggered. Otherwise it won't be changed.&lt;/P&gt;&lt;P&gt;You could try by yourself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 01:25:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-exit-serial-download-mode-with-sdphost-RT1050/m-p/1175564#M11010</guid>
      <dc:creator>eric_yp_chen</dc:creator>
      <dc:date>2020-10-30T01:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to exit serial download mode with sdphost (RT1050)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-exit-serial-download-mode-with-sdphost-RT1050/m-p/1175673#M11015</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for sharing the detailed steps and I replicated the phenomenon on my side too.&lt;BR /&gt;According to the testing, we can jump to conclusion that the BOOT_MODE is initialized by sampling the BOOT_MODE0 and BOOT_MODE1 inputs on the rising edge of the POR_B.&lt;BR /&gt;Hope this is clear.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 05:58:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/How-to-exit-serial-download-mode-with-sdphost-RT1050/m-p/1175673#M11015</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-10-30T05:58:13Z</dc:date>
    </item>
  </channel>
</rss>

