<?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: Circular buffer using MBDT on S32K144 in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Circular-buffer-using-MBDT-on-S32K144/m-p/1340363#M6505</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/186874"&gt;@rolo90&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You are right, if you want to implement a circular buffer, for the EEPROM Write or Read block, the block should have the address as an external input/output. You can still use the FLASH_Config block f or setting the EEPROM. Once you did that, you can write a custom code function to call the following C function, where the offset, size and sourceBufferAddress have to be provided as inputs&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FLASH_DRV_EEEWrite(&amp;amp;flashSSDConfig, flashSSDConfig.EERAMBase + &amp;lt;offset&amp;gt;, &amp;lt;size&amp;gt;, &amp;lt;sourceBufferAddress&amp;gt;);&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;</description>
    <pubDate>Wed, 15 Sep 2021 07:27:05 GMT</pubDate>
    <dc:creator>mariuslucianand</dc:creator>
    <dc:date>2021-09-15T07:27:05Z</dc:date>
    <item>
      <title>Circular buffer using MBDT on S32K144</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Circular-buffer-using-MBDT-on-S32K144/m-p/1337997#M6488</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/72088"&gt;@mariuslucianand&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My application needs to write to EEPROM every 1s, and as to not wear the internal EEPROM from the S32K144, I would need to implement a circular buffer. Since there are no "Circular buffer" MBDT blocks, do I need to write custom C code to access specific registers?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rolando&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 02:10:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Circular-buffer-using-MBDT-on-S32K144/m-p/1337997#M6488</guid>
      <dc:creator>rolo90</dc:creator>
      <dc:date>2021-09-10T02:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Circular buffer using MBDT on S32K144</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Circular-buffer-using-MBDT-on-S32K144/m-p/1340363#M6505</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/186874"&gt;@rolo90&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You are right, if you want to implement a circular buffer, for the EEPROM Write or Read block, the block should have the address as an external input/output. You can still use the FLASH_Config block f or setting the EEPROM. Once you did that, you can write a custom code function to call the following C function, where the offset, size and sourceBufferAddress have to be provided as inputs&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FLASH_DRV_EEEWrite(&amp;amp;flashSSDConfig, flashSSDConfig.EERAMBase + &amp;lt;offset&amp;gt;, &amp;lt;size&amp;gt;, &amp;lt;sourceBufferAddress&amp;gt;);&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 07:27:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Circular-buffer-using-MBDT-on-S32K144/m-p/1340363#M6505</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2021-09-15T07:27:05Z</dc:date>
    </item>
  </channel>
</rss>

