<?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>Kinetis Software Development KitのトピックRe: MKL27Z Failing to Reset From KBOOT, KSDK 2.0</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/573090#M5830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;BR /&gt;I had the same problem 6 months ago, this bug is caused by the USB, on reboot from KBOOT, the code crash and&amp;nbsp;go to HardFault, I tryed all, the solution was implement a pushbutton to physical reset on firmware updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rafael Toledo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 16:04:46 GMT</pubDate>
    <dc:creator>rafaeltoledo</dc:creator>
    <dc:date>2016-10-18T16:04:46Z</dc:date>
    <item>
      <title>MKL27Z Failing to Reset From KBOOT, KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/573085#M5825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a project using the MKL27Z128/256. The project uses the "usb_device_hid_generic" project in KSDK 2.0 as a starting point.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On power cycle or hardware reset, my code runs just fine.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is with using the&amp;nbsp;KBOOT bootloader in the ROM to perform SW updates in the field via USB HID.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can programmatically jump to the bootloader and perform the update, but when blhost attempts to reset the device, it&amp;nbsp;doesn't come up. I don't see my debug messages on LPUART0, and it doesn't enumerate on USB.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;blhost -u 0x15a2,0x0073 flash-erase-all&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;blhost -u 0x15a2,0x0073 flash-image&amp;nbsp;code.s19&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;blhost -u 0x15a2,0x0073 reset&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another developer asked a similar question about their&amp;nbsp;&lt;SPAN&gt;MKL27Z128 design using&amp;nbsp;SDK 1.3:&amp;nbsp;&lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-objectid="395681" data-objecttype="1" href="https://community.nxp.com/thread/395681"&gt;KL27z getting crash on program booting from ROM(bootloader) using blhost reset command&lt;/A&gt;&amp;nbsp;, but I'm not sure if the solution there still applies, or how to implement it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TIA,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 22:37:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/573085#M5825</guid>
      <dc:creator>JeremyWood</dc:creator>
      <dc:date>2016-08-30T22:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: MKL27Z Failing to Reset From KBOOT, KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/573087#M5827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that equivalent to:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;SIM-&amp;gt;SCGC4 = SIM-&amp;gt;SCGC4 &amp;amp; (~SIM_SCGC4_USBFS_MASK);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I couldn't figure out how to refer to SIM_SCGC4, and used the somewhat similar register fiddling in pin_mux.c as an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is equivalent, it didn't seem to make a difference, in which case I'll dig deeper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 00:07:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/573087#M5827</guid>
      <dc:creator>JeremyWood</dc:creator>
      <dc:date>2016-09-12T00:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: MKL27Z Failing to Reset From KBOOT, KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/573088#M5828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any comment as to whether what I've done is correct? So far I have been unable to resolve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeremy Wood&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 20:01:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/573088#M5828</guid>
      <dc:creator>JeremyWood</dc:creator>
      <dc:date>2016-10-06T20:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: MKL27Z Failing to Reset From KBOOT, KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/573089#M5829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code above is equivalent. It should be placed before any USB configurations in the application code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you follow my suggestion of connecting to the running target? What did you find?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2016 02:01:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/573089#M5829</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2016-10-08T02:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: MKL27Z Failing to Reset From KBOOT, KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/573090#M5830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;BR /&gt;I had the same problem 6 months ago, this bug is caused by the USB, on reboot from KBOOT, the code crash and&amp;nbsp;go to HardFault, I tryed all, the solution was implement a pushbutton to physical reset on firmware updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rafael Toledo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 16:04:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/573090#M5830</guid>
      <dc:creator>rafaeltoledo</dc:creator>
      <dc:date>2016-10-18T16:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: MKL27Z Failing to Reset From KBOOT, KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/573091#M5831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is in KBoot in the KL27 ROM, there is no place to put the above USB Clock disable as it has nothing to do with the users code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The command "&lt;SPAN&gt;blhost -u 0x15a2,0x0073 reset" does not work when issued via USB. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;On&amp;nbsp;the USB bus analyzer it shows repeated enumeration failures, after programming and requires a board reset, what exactly happens depends on what FOPT got programmed to with the update just programmed.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;What I, and I expect other users of the KL27, want is to get the source code for the KL27 KBoot ROM implementation, then we could fix the issue and customize the code without having to reinvent the wheel, with each of us doing our own KL27 KBoot implementation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 12:12:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/573091#M5831</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2016-10-20T12:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: MKL27Z Failing to Reset From KBOOT, KSDK 2.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/1223911#M8088</link>
      <description>&lt;P&gt;I ran into the same issue yesterday. None of the suggestions here worked for me. The problem I found is that the bootloader changed the default clock source from LIRC to HIRC. This led to random crashes during startup of the application code. To workaround, I preset the MCG_C1 to its default value before any initialization code. This seems to fix the issue.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;int main(void) {
    MCG-&amp;gt;C1 = 0x40;
    BOARD_InitBootPins();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 08:34:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MKL27Z-Failing-to-Reset-From-KBOOT-KSDK-2-0/m-p/1223911#M8088</guid>
      <dc:creator>cary_chu</dc:creator>
      <dc:date>2021-02-01T08:34:42Z</dc:date>
    </item>
  </channel>
</rss>

