<?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: storing data in code block 3 of internal flash memory in S32K</title>
    <link>https://community.nxp.com/t5/S32K/storing-data-in-code-block-3-of-internal-flash-memory/m-p/1832774#M33280</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231096"&gt;@Fergani&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;How do you store the data to the block?&lt;/P&gt;
&lt;P&gt;Based on the log, it seems you use a SRT instruction to store the data, as if it was SRAM not Flash.&lt;/P&gt;
&lt;P&gt;The data must be programmed using either the low-level C40_Ip driver or the MCAL FLS / FEE drivers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 08:38:37 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2024-03-21T08:38:37Z</dc:date>
    <item>
      <title>storing data in code block 3 of internal flash memory</title>
      <link>https://community.nxp.com/t5/S32K/storing-data-in-code-block-3-of-internal-flash-memory/m-p/1830723#M33147</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we want to store data inside the chip's flash. We have almost 800kB data to store and we want to use code block 3 of the internal flash. We tried to reserve some memory in ld script and successfully write with __attribute__((section(".myData"))) uint8_t ProgramFlashDataSave[]={0x1,0x2,0x3..}. However we want to save actual data in application level. when we save data in runtime in application if gives the below error;&lt;/P&gt;&lt;P&gt;MemManage: The processor attempted a load or store at a location that does not permit the operation.&lt;BR /&gt;Possible MemManage fault location: 0x00700000.&lt;BR /&gt;HardFault: A fault has been escalated to a hard fault.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ld script additions;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;int_datasave : ORIGIN = 0x00700000, LENGTH = 0x00000500&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SECTIONS&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; .my_data :&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*(.myData)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; } &amp;gt; int_datasave&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Can you help us for this? is it safe to write the code block 3 of the flash memory? ıs there any example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use RTD.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 05:23:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/storing-data-in-code-block-3-of-internal-flash-memory/m-p/1830723#M33147</guid>
      <dc:creator>Fergani</dc:creator>
      <dc:date>2024-03-19T05:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: storing data in code block 3 of internal flash memory</title>
      <link>https://community.nxp.com/t5/S32K/storing-data-in-code-block-3-of-internal-flash-memory/m-p/1832774#M33280</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231096"&gt;@Fergani&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;How do you store the data to the block?&lt;/P&gt;
&lt;P&gt;Based on the log, it seems you use a SRT instruction to store the data, as if it was SRAM not Flash.&lt;/P&gt;
&lt;P&gt;The data must be programmed using either the low-level C40_Ip driver or the MCAL FLS / FEE drivers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 08:38:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/storing-data-in-code-block-3-of-internal-flash-memory/m-p/1832774#M33280</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-03-21T08:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: storing data in code block 3 of internal flash memory</title>
      <link>https://community.nxp.com/t5/S32K/storing-data-in-code-block-3-of-internal-flash-memory/m-p/1833522#M33339</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your quick response.&lt;/P&gt;&lt;P&gt;We discovered we need to use one of them and use C40_IP example app with a wrapper around it to write whatever we want and we do it with success.&lt;/P&gt;&lt;P&gt;Actually we want to save around 800kB data and it took almost 2.5 sec. However, it is very suprizing it took that much.&lt;/P&gt;&lt;P&gt;Do we have a way to decrease the time to save data to flash memory? Actually we want to make it in order of ms(millisecond)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 07:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/storing-data-in-code-block-3-of-internal-flash-memory/m-p/1833522#M33339</guid>
      <dc:creator>Fergani</dc:creator>
      <dc:date>2024-03-22T07:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: storing data in code block 3 of internal flash memory</title>
      <link>https://community.nxp.com/t5/S32K/storing-data-in-code-block-3-of-internal-flash-memory/m-p/1833563#M33342</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231096"&gt;@Fergani&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This is within the specs of the flash, it can't get faster than that, unfortunately.&lt;/P&gt;
&lt;P&gt;Please refer to the S32K3 datasheet, rev.8.1&lt;/P&gt;
&lt;P&gt;Table 29. Flash memory program and erase specifications.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 08:28:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/storing-data-in-code-block-3-of-internal-flash-memory/m-p/1833563#M33342</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-03-22T08:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: storing data in code block 3 of internal flash memory</title>
      <link>https://community.nxp.com/t5/S32K/storing-data-in-code-block-3-of-internal-flash-memory/m-p/1833701#M33351</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It seems so.&lt;/P&gt;&lt;P&gt;Is there a way that you can offer so that we can handle that much data in that much time. We looked at some external flashes written by QSPI but they handle to save 800kByte arount 2.5sec as well?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 11:12:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/storing-data-in-code-block-3-of-internal-flash-memory/m-p/1833701#M33351</guid>
      <dc:creator>Fergani</dc:creator>
      <dc:date>2024-03-22T11:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: storing data in code block 3 of internal flash memory</title>
      <link>https://community.nxp.com/t5/S32K/storing-data-in-code-block-3-of-internal-flash-memory/m-p/1833770#M33353</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231096"&gt;@Fergani&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It depends of the flash.&lt;/P&gt;
&lt;P&gt;For example, on the S32K344 EVBs, there is MX25L6433F&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1711113806528.png" style="width: 726px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/269976iB0259F43BAFF8546/image-dimensions/726x401?v=v2" width="726" height="401" role="button" title="danielmartynek_0-1711113806528.png" alt="danielmartynek_0-1711113806528.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you have any questions about QuadSPI, please create a new thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 13:27:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/storing-data-in-code-block-3-of-internal-flash-memory/m-p/1833770#M33353</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-03-22T13:27:38Z</dc:date>
    </item>
  </channel>
</rss>

