<?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: KL81 MDHA issue in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-MDHA-issue/m-p/633266#M38151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I am using Kinetis SDK v1.3 for KL81. Can you please give me a link of Kinetis SDK v2.2 for KL81? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Apr 2017 23:13:55 GMT</pubDate>
    <dc:creator>daweiy</dc:creator>
    <dc:date>2017-04-05T23:13:55Z</dc:date>
    <item>
      <title>KL81 MDHA issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-MDHA-issue/m-p/633262#M38147</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;I use KL81's SHA256 to calculate Flash's Hash. It works fine with some data in RAM. But when I tried to calculate my whole firmware's SHA256, I got some problems.The firmware is running in flash, starts from 0x00000000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the LTC driver to do the calculation, I found one of the functions, LTC_DRV_hash_update(), has a check on input buffer:&lt;/P&gt;&lt;P&gt;if ((NULL == ctx) || (NULL == input))&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return kStatus_LTC_InvalidInput;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;So my calculation failed because the input address is 0. I tried to remove this check, the code stuck in function ltc_drv_wait().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I changed the input address from 0 to 0x4, the code stuck in function ltc_drv_wait() as well.&lt;/P&gt;&lt;P&gt;If I copy my firmware from Flash to a big buffer in RAM and calculate the SHA256, the code hang in ltc_drv_wait() as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code size is 0x8A30 bytes. It looks like if the code try to calculate the hash of itself, the LTC module cannot finish the calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Did anyone has this problem before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dawei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 06:12:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-MDHA-issue/m-p/633262#M38147</guid>
      <dc:creator>daweiy</dc:creator>
      <dc:date>2017-03-30T06:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: KL81 MDHA issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-MDHA-issue/m-p/633263#M38148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing I found this morning was if the data length is 0xfef, SHA256 works, not hang. If the data length is 0xff0, code hang in ltc_drv_wait().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 23:18:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-MDHA-issue/m-p/633263#M38148</guid>
      <dc:creator>daweiy</dc:creator>
      <dc:date>2017-03-30T23:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: KL81 MDHA issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-MDHA-issue/m-p/633264#M38149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dawei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the later reply.&lt;/P&gt;&lt;P&gt;I am checking this issue with Kinetis product team and will let you know later.&lt;/P&gt;&lt;P&gt;Thank you for the patience.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Wed, 05 Apr 2017 06:35:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-MDHA-issue/m-p/633264#M38149</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-04-05T06:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: KL81 MDHA issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-MDHA-issue/m-p/633265#M38150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dawei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, the KSDK software version is V2.2, which with many difference about LTC module driver.&lt;/P&gt;&lt;P&gt;We would recommend to update the KSDK software to the latest V2.2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the current version LTC driver, please try with below ways:&lt;/P&gt;&lt;P&gt;1&amp;gt; Remove "NULL == input" in &amp;lt;hash.c&amp;gt; file;&lt;/P&gt;&lt;P&gt;2&amp;gt; Modify &lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;“#undef SECLIB_LTC_DRV_INTERRUPT_MODE” in ltc_driver.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Wed, 05 Apr 2017 09:10:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-MDHA-issue/m-p/633265#M38150</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-04-05T09:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: KL81 MDHA issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-MDHA-issue/m-p/633266#M38151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I am using Kinetis SDK v1.3 for KL81. Can you please give me a link of Kinetis SDK v2.2 for KL81? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 23:13:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-MDHA-issue/m-p/633266#M38151</guid>
      <dc:creator>daweiy</dc:creator>
      <dc:date>2017-04-05T23:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: KL81 MDHA issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-MDHA-issue/m-p/633267#M38152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dawei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am checking with our marketing team to provide the latest version KSDK for KL81 software to you.&lt;/P&gt;&lt;P&gt;Thank you for the patience.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Thu, 06 Apr 2017 02:46:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL81-MDHA-issue/m-p/633267#M38152</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-04-06T02:46:44Z</dc:date>
    </item>
  </channel>
</rss>

