<?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 MicrocontrollersのトピックRe: K64 Reflash - HardFault - but why</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Reflash-HardFault-but-why/m-p/626668#M37597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just thinking out loud ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does Kinetis/K64 have any of it's registers that are sensitive to VCC abrupt changes that would remain in a non-default state after power is removed or reset applied?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following K64 modules ... SIM, UART, SPI, ENET, DMA, PORT, I2C, I2S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I am counting on the default values being is their associated registers. &amp;nbsp;If a Power event (as described above) affected one of these associated registers in a way that prevents the default value upon power on or reset, (and I don't set the value myself but depend on the default value) they could&amp;nbsp;throw a HardFault - Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any comments on this line of thinking?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Nov 2016 22:12:06 GMT</pubDate>
    <dc:creator>JHinkle</dc:creator>
    <dc:date>2016-11-26T22:12:06Z</dc:date>
    <item>
      <title>K64 Reflash - HardFault - but why</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Reflash-HardFault-but-why/m-p/626667#M37596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;K64 has my Bootloader installed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has an Application that loads at 0x1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two boards - same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both boards were working fine for a week. &amp;nbsp;My tester (in Canada) was helping debug the application and cycled power to the micro. &amp;nbsp;Power had NOT go all the way to zero before it came back on. &amp;nbsp;Same situation&amp;nbsp;- both boards - different days. After this power cycle event -- the App fails to run -- I think a Hardfault is occurring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Bootloader performs a checksum which passes but when it jumps to the App -- it just dies. I have an LED that is suppose to light when a HardFault occurs and it's lit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a remote loader that would talk to the Bootloader and update the Application. &amp;nbsp;Process tested on my bench works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the two subject boards - the new Application is made available to the Bootloader. &amp;nbsp;It flashes the new App into the K64 - and verifies each block that is flashed -- also verifies overall checksum. &amp;nbsp;All pass - but fails when it jumps to the App.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not think of a failure mode associated with power cycling that would do something to the micro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do You have any ideas or comments?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect the failure is NOT flash related since It just performed a reflash and verified itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone think of a component within the micro that can be suspect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas or comments are welcomed -- this one has me puzzled!!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way ... I've the the flash protected so I can't connect a jtag debugger to see what's going on -- got to think this one thru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2016 02:56:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Reflash-HardFault-but-why/m-p/626667#M37596</guid>
      <dc:creator>JHinkle</dc:creator>
      <dc:date>2016-11-26T02:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: K64 Reflash - HardFault - but why</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Reflash-HardFault-but-why/m-p/626668#M37597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just thinking out loud ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does Kinetis/K64 have any of it's registers that are sensitive to VCC abrupt changes that would remain in a non-default state after power is removed or reset applied?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following K64 modules ... SIM, UART, SPI, ENET, DMA, PORT, I2C, I2S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I am counting on the default values being is their associated registers. &amp;nbsp;If a Power event (as described above) affected one of these associated registers in a way that prevents the default value upon power on or reset, (and I don't set the value myself but depend on the default value) they could&amp;nbsp;throw a HardFault - Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any comments on this line of thinking?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2016 22:12:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Reflash-HardFault-but-why/m-p/626668#M37597</guid>
      <dc:creator>JHinkle</dc:creator>
      <dc:date>2016-11-26T22:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: K64 Reflash - HardFault - but why</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Reflash-HardFault-but-why/m-p/626669#M37598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, most hard fault issue was generated with " trying to write some module register and its(related module's) clock gate is disable at SIM_SCGCn register".&lt;/P&gt;&lt;P&gt;And another issue also could trigger "hard fault/ bus fault": &lt;SPAN style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;overprogramming the flash (Flash sector did not be erased before it was programed).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;Please check if there with above situations happened with the application code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 07:52:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-Reflash-HardFault-but-why/m-p/626669#M37598</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-11-28T07:52:39Z</dc:date>
    </item>
  </channel>
</rss>

