<?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 HiK64 Kinetis SDK flash driver : FLASH_ReadResource  return error Status_FLASH_InvalidArgument in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/HiK64-Kinetis-SDK-flash-driver-FLASH-ReadResource-return-error/m-p/650285#M7019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;am working on the kinetis K64 controller with SDK 2.0&lt;/P&gt;&lt;P&gt;started with the flash driver example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the write success ok , but now i want to read back using the function&amp;nbsp;&lt;/P&gt;&lt;P&gt;FLASH_ReadResource&lt;/P&gt;&lt;P&gt;So i call to:&lt;/P&gt;&lt;P&gt;result = FLASH_ReadResource(&amp;amp;flashDriver, destAdrss, data1, sizeof(data1), kFLASH_resourceOptionFlashIfr);&lt;BR /&gt; if (kStatus_FLASH_Success != result)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;showError(result);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;PRINTF("Error Flash 310\r\n");&lt;BR /&gt; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i am getting error of &amp;nbsp;&amp;nbsp;kStatus_FLASH_InvalidArgument&lt;/P&gt;&lt;P&gt;It is NOT from this code inside the function:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; if ((config == NULL) || (dst == NULL))&lt;BR /&gt; {&lt;BR /&gt; return kStatus_FLASH_InvalidArgument;&lt;BR /&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;BUT from this code:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;returnCode = flash_check_resource_range(start, lengthInBytes, flashInfo.resourceCmdAddressAligment, option);&lt;BR /&gt; if (returnCode != kStatus_FLASH_Success)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; PRINTF("flash_check_resource_range = %d\r\n" , returnCode); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HERE IS THE ERROR&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;return returnCode;&lt;BR /&gt; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me to read data back?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Sep 2016 12:51:19 GMT</pubDate>
    <dc:creator>eliar</dc:creator>
    <dc:date>2016-09-25T12:51:19Z</dc:date>
    <item>
      <title>HiK64 Kinetis SDK flash driver : FLASH_ReadResource  return error Status_FLASH_InvalidArgument</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/HiK64-Kinetis-SDK-flash-driver-FLASH-ReadResource-return-error/m-p/650285#M7019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;am working on the kinetis K64 controller with SDK 2.0&lt;/P&gt;&lt;P&gt;started with the flash driver example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the write success ok , but now i want to read back using the function&amp;nbsp;&lt;/P&gt;&lt;P&gt;FLASH_ReadResource&lt;/P&gt;&lt;P&gt;So i call to:&lt;/P&gt;&lt;P&gt;result = FLASH_ReadResource(&amp;amp;flashDriver, destAdrss, data1, sizeof(data1), kFLASH_resourceOptionFlashIfr);&lt;BR /&gt; if (kStatus_FLASH_Success != result)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;showError(result);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;PRINTF("Error Flash 310\r\n");&lt;BR /&gt; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i am getting error of &amp;nbsp;&amp;nbsp;kStatus_FLASH_InvalidArgument&lt;/P&gt;&lt;P&gt;It is NOT from this code inside the function:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; if ((config == NULL) || (dst == NULL))&lt;BR /&gt; {&lt;BR /&gt; return kStatus_FLASH_InvalidArgument;&lt;BR /&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;BUT from this code:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;returnCode = flash_check_resource_range(start, lengthInBytes, flashInfo.resourceCmdAddressAligment, option);&lt;BR /&gt; if (returnCode != kStatus_FLASH_Success)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; PRINTF("flash_check_resource_range = %d\r\n" , returnCode); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HERE IS THE ERROR&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;return returnCode;&lt;BR /&gt; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me to read data back?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Sep 2016 12:51:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/HiK64-Kinetis-SDK-flash-driver-FLASH-ReadResource-return-error/m-p/650285#M7019</guid>
      <dc:creator>eliar</dc:creator>
      <dc:date>2016-09-25T12:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: HiK64 Kinetis SDK flash driver : FLASH_ReadResource  return error Status_FLASH_InvalidArgument</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/HiK64-Kinetis-SDK-flash-driver-FLASH-ReadResource-return-error/m-p/650286#M7020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eli:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can check your parameters. Please refer to the API reference&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8125iBA0E217DAAD91EE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8170i85689F8C601114C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 15:12:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/HiK64-Kinetis-SDK-flash-driver-FLASH-ReadResource-return-error/m-p/650286#M7020</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-09-26T15:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: HiK64 Kinetis SDK flash driver : FLASH_ReadResource  return error Status_FLASH_InvalidArgument</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/HiK64-Kinetis-SDK-flash-driver-FLASH-ReadResource-return-error/m-p/650287#M7021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel, which SDK manual are you using ? &amp;nbsp;The SDK v2 manual that I have (titled "Kinetis SDK v.2.0 API Reference Manual",&amp;nbsp;Rev 0, Jan 2016)&amp;nbsp;has the C90TFS Flash Driver in Chapter 19, and there is no reference in that chapter to a ReadResource command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 11:26:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/HiK64-Kinetis-SDK-flash-driver-FLASH-ReadResource-return-error/m-p/650287#M7021</guid>
      <dc:creator>geoff_s</dc:creator>
      <dc:date>2016-10-31T11:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: HiK64 Kinetis SDK flash driver : FLASH_ReadResource  return error Status_FLASH_InvalidArgument</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/HiK64-Kinetis-SDK-flash-driver-FLASH-ReadResource-return-error/m-p/650288#M7022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Manul is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/7671i8DA1425492EF77DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 11:41:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/HiK64-Kinetis-SDK-flash-driver-FLASH-ReadResource-return-error/m-p/650288#M7022</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-10-31T11:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: HiK64 Kinetis SDK flash driver : FLASH_ReadResource  return error Status_FLASH_InvalidArgument</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/HiK64-Kinetis-SDK-flash-driver-FLASH-ReadResource-return-error/m-p/650289#M7023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. &amp;nbsp;I didn't realise there was a separate SDK document for the K64's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 22:16:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/HiK64-Kinetis-SDK-flash-driver-FLASH-ReadResource-return-error/m-p/650289#M7023</guid>
      <dc:creator>geoff_s</dc:creator>
      <dc:date>2016-10-31T22:16:34Z</dc:date>
    </item>
  </channel>
</rss>

