<?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: Kinetis K82 FLASH_ReadOnce always gives ACCESS error</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1757428#M65704</link>
    <description>&lt;P&gt;Dear Raul,&lt;/P&gt;&lt;P&gt;Thank you very much for your response. However, I had already taken a look at pflash example, and there is no use at all of&amp;nbsp;&lt;EM&gt;FLASH_ReadResource or&amp;nbsp;FLASH_ReadOnce&lt;/EM&gt; routines, at least in my SDK (SDK_2.x_MK80FN256xxx15). Could it be SDK dependant? Maybe old versions of the SDK had a more complete example?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2023 07:59:39 GMT</pubDate>
    <dc:creator>cabl</dc:creator>
    <dc:date>2023-11-15T07:59:39Z</dc:date>
    <item>
      <title>Kinetis K82 FLASH_ReadOnce always gives ACCESS error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1754882#M65683</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I´m trying to test Flash IFR reading/writing on a K82 Kinetis MCU and I´m stuck on reading (not yet tried to write, which I guess is more complex).&lt;/P&gt;&lt;P&gt;I´m using MCUXpresso and&amp;nbsp;fsl_ftfx_flash driver to just:&lt;/P&gt;&lt;P&gt;- Init flash driver (FLASH_Init(&amp;amp;config) --&amp;gt; OK)&lt;/P&gt;&lt;P&gt;- get properties (FLASH_GetSecurityState(&amp;amp;config, &amp;amp;securityStatus)--&amp;gt;OK--&amp;gt;UNSECURE)&lt;/P&gt;&lt;P&gt;- read IFR bytes (FLASH_ReadOnce and FLASH_ReadResource --&amp;gt; ACCESS ERROR)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I receive this access error whatever index, start values or read size I try. I also tried in DEBUG mode (PEMicro probe) and "normal" run mode (erase all flash and program firmware with KinetisFlashTool).&lt;/P&gt;&lt;P&gt;Could someone give a clue on this? I´m only trying to read the user available IFR bytes from firmware, which I think should be possible. Or is this funtionality restricted to ROM bootloader?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 10:07:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1754882#M65683</guid>
      <dc:creator>cabl</dc:creator>
      <dc:date>2023-11-09T10:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K82 FLASH_ReadOnce always gives ACCESS error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1756400#M65690</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/15600"&gt;@cabl&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Could you please test the &lt;A href="https://mcuxpresso.nxp.com/en/welcome" target="_self"&gt;SDK&lt;/A&gt;'s &lt;EM&gt;pflash &lt;/EM&gt;example?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;On the example, after checking if the flash is unsecure, could you please run the &lt;EM&gt;FLASH_ReadOnce&lt;/EM&gt; or &lt;EM&gt;FLASH_ReadResource&lt;/EM&gt;?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 16:32:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1756400#M65690</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-11-13T16:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K82 FLASH_ReadOnce always gives ACCESS error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1757428#M65704</link>
      <description>&lt;P&gt;Dear Raul,&lt;/P&gt;&lt;P&gt;Thank you very much for your response. However, I had already taken a look at pflash example, and there is no use at all of&amp;nbsp;&lt;EM&gt;FLASH_ReadResource or&amp;nbsp;FLASH_ReadOnce&lt;/EM&gt; routines, at least in my SDK (SDK_2.x_MK80FN256xxx15). Could it be SDK dependant? Maybe old versions of the SDK had a more complete example?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 07:59:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1757428#M65704</guid>
      <dc:creator>cabl</dc:creator>
      <dc:date>2023-11-15T07:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K82 FLASH_ReadOnce always gives ACCESS error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1759186#M65712</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/15600"&gt;@cabl&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Sorry for the confusion. The example does not include the&amp;nbsp;&lt;EM&gt;FLASH_ReadResource&lt;/EM&gt;&amp;nbsp;or &lt;EM&gt;FLASH_ReadOnce&lt;/EM&gt;. Nonetheless, it could be a good idea to add them in the example after checking if the flash is unsecure.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;/* Test pflash basic opeation only if flash is unsecure. */
if (kFTFx_SecurityStateNotSecure == securityStatus) {&lt;/LI-CODE&gt;
&lt;P class="lia-align-justify"&gt;Could you please test the example and add the &lt;EM&gt;FLASH_ReadResource&lt;/EM&gt;&amp;nbsp;and/or &lt;EM&gt;FLASH_ReadOnce&lt;/EM&gt;&amp;nbsp;at some point after the lines above?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 18:20:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1759186#M65712</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-11-17T18:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K82 FLASH_ReadOnce always gives ACCESS error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1759952#M65716</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thanks, Raul, for your suggestion.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I did so and manage to read IFR registers; then I copied the code to my project and it failed again, so I guess there must something in my initialization code:&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;BOARD_InitBootPins();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BOARD_InitBootClocks();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BOARD_InitBootPeripherals();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;that is making the IFR read fail. Can you think of a reason why the same code can fail with different Pins/clocks/peripheral initialization?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Nov 2023 15:10:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1759952#M65716</guid>
      <dc:creator>cabl</dc:creator>
      <dc:date>2023-11-20T15:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K82 FLASH_ReadOnce always gives ACCESS error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1759962#M65717</link>
      <description>&lt;P&gt;I´m pretty sure it has to do with clocks configuration of my project; after copying clock setup from pflash example, IFR read works as expected (with all the code, peripherals and pins of my project up and running).&lt;/P&gt;&lt;P&gt;I´ll keep investigating further what exactly makes IFR read fail in my HSRUN clock setup.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 15:47:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1759962#M65717</guid>
      <dc:creator>cabl</dc:creator>
      <dc:date>2023-11-20T15:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K82 FLASH_ReadOnce always gives ACCESS error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1760577#M65718</link>
      <description>&lt;P&gt;Finally I´ve found that IFR read cannot be done under HSRUN configuration, no matter that the core, system, flash...frequencies are the same as in RUN mode: in HSRUN IFR read do not work, whereas in RUN mode does.&lt;/P&gt;&lt;P&gt;On pag. 76 of the Reference Manual the NOTE says: "Flash erase and programming operations are not allowed in HSRUN modes", but Iy says nothing about IFR read.&lt;/P&gt;&lt;P&gt;On page 830 it says: "Attempts to launch a flash command in HSRUN mode will be trapped with the ACCERR flag being set". I think now the problem is clear: many procedures of fsl_ftfx_flash driver (Init, GetProperty, GetSecurityState...) depend only on software or reading registries, but operations related to launching flash commands always fail because they are prohibited in HSRUN mode.&lt;/P&gt;&lt;P&gt;Thanks again for your support.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 08:47:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K82-FLASH-ReadOnce-always-gives-ACCESS-error/m-p/1760577#M65718</guid>
      <dc:creator>cabl</dc:creator>
      <dc:date>2023-11-21T08:47:54Z</dc:date>
    </item>
  </channel>
</rss>

