<?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>Model-Based Design Toolbox (MBDT)中的主题 Re: DataMemWrite and DataMemRead to access FlexRAM</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DataMemWrite-and-DataMemRead-to-access-FlexRAM/m-p/999279#M3966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Maciek"&gt;Maciek&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The memory blocks DataMemRead and DataMemWrite, allows you on S32K access any memory memory address.&lt;/P&gt;&lt;P&gt;For example, the DataMemWrite Block allows you to write a Pointer Type value at the Address + Offset memory address.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97200iBCABAF714075F325/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the actual generated code&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/* write to memory address */&lt;BR /&gt; {&lt;BR /&gt;&amp;lt;Pointer type&amp;gt; * address;&lt;BR /&gt; address = (&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;lt;Pointer type&amp;gt;&lt;/SPAN&gt; *) 0x%&amp;lt;Address + Offset&amp;gt;;&lt;BR /&gt; *(address) = &amp;lt;Input Value&amp;gt;;&lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However, I had a look on the S32SDK on the Flash Memory (Flash) Driver and I see that there is a driver that allows the user to write and read the memory as if dealing with an Eeprom using the f&lt;STRONG&gt;lash_driver.c&lt;/STRONG&gt;. If you have a short working example, I can add support to the functions you call directly from Simulink using custom code, the third method I've told you in the other thread. If not, just give me a few days to provide a working Simulink model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2020 11:55:37 GMT</pubDate>
    <dc:creator>mariuslucianand</dc:creator>
    <dc:date>2020-03-09T11:55:37Z</dc:date>
    <item>
      <title>DataMemWrite and DataMemRead to access FlexRAM</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DataMemWrite-and-DataMemRead-to-access-FlexRAM/m-p/999278#M3965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we write to and read from FlexRAM memory on S32k1xx using DataMemWrite and DataMemRead blocks ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Maciek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2020 21:01:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DataMemWrite-and-DataMemRead-to-access-FlexRAM/m-p/999278#M3965</guid>
      <dc:creator>Maciek</dc:creator>
      <dc:date>2020-03-08T21:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: DataMemWrite and DataMemRead to access FlexRAM</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DataMemWrite-and-DataMemRead-to-access-FlexRAM/m-p/999279#M3966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Maciek"&gt;Maciek&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The memory blocks DataMemRead and DataMemWrite, allows you on S32K access any memory memory address.&lt;/P&gt;&lt;P&gt;For example, the DataMemWrite Block allows you to write a Pointer Type value at the Address + Offset memory address.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97200iBCABAF714075F325/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the actual generated code&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/* write to memory address */&lt;BR /&gt; {&lt;BR /&gt;&amp;lt;Pointer type&amp;gt; * address;&lt;BR /&gt; address = (&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;lt;Pointer type&amp;gt;&lt;/SPAN&gt; *) 0x%&amp;lt;Address + Offset&amp;gt;;&lt;BR /&gt; *(address) = &amp;lt;Input Value&amp;gt;;&lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However, I had a look on the S32SDK on the Flash Memory (Flash) Driver and I see that there is a driver that allows the user to write and read the memory as if dealing with an Eeprom using the f&lt;STRONG&gt;lash_driver.c&lt;/STRONG&gt;. If you have a short working example, I can add support to the functions you call directly from Simulink using custom code, the third method I've told you in the other thread. If not, just give me a few days to provide a working Simulink model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 11:55:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DataMemWrite-and-DataMemRead-to-access-FlexRAM/m-p/999279#M3966</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2020-03-09T11:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: DataMemWrite and DataMemRead to access FlexRAM</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DataMemWrite-and-DataMemRead-to-access-FlexRAM/m-p/999280#M3967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to do something similar, I haven't got to get working a short example on the S32 SDK yet.&lt;/P&gt;&lt;P&gt;An example Simulink model would be great to get us started, I'm pretty sure this is a useful feature to have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gustavo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 19:24:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DataMemWrite-and-DataMemRead-to-access-FlexRAM/m-p/999280#M3967</guid>
      <dc:creator>gramirezv</dc:creator>
      <dc:date>2020-03-09T19:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: DataMemWrite and DataMemRead to access FlexRAM</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DataMemWrite-and-DataMemRead-to-access-FlexRAM/m-p/999281#M3968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for Your quick response&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mariuslucianandrei"&gt;mariuslucianandrei&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I'm looking forward for Your example model!&lt;/P&gt;&lt;P&gt;I didn't start writing anything yet - I was still reading documentation.&lt;/P&gt;&lt;P&gt;If I understand correctly, there is a way of configuring and using EEPROM without flash_driver. The configuration can be done with appropriate settings of "advanced options" of the debugger in S32DS (program partition command). Then a structure with user data fields can be put directly in FlexRAM region. But this solution&amp;nbsp;seems to have&amp;nbsp;some disadvantages:&lt;/P&gt;&lt;P&gt;- at some point we have to 'exit' Matlab/Simulink and use S32DS&lt;/P&gt;&lt;P&gt;- we have to adjust/change the linker file (I think the linker file used by S32K1xx MBD toolbox has no definitions of FlexRAM regions)&lt;/P&gt;&lt;P&gt;- we still have to write 'driver blocks' for reading/writing the user data structure in FlexRAM&lt;/P&gt;&lt;P&gt;If I'm wrong with the above - please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In our application, we have non-volatile data that will be re-configured very rarely - so for this writing and reading FlexNVM would be sufficient. But we also have run-time data that need to be saved frequently - for this we need EEPROM functionality. In summary working EEPROM is enough to meet the customer requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;If You can prepare a very simple example model with Matlab Function blocks for initial configuration of memory partition and for reading and writing EEPROM (via configured FlexRAM; all of this using flash_driver) it would help us significantly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maciek&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 23:40:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DataMemWrite-and-DataMemRead-to-access-FlexRAM/m-p/999281#M3968</guid>
      <dc:creator>Maciek</dc:creator>
      <dc:date>2020-03-09T23:40:44Z</dc:date>
    </item>
  </channel>
</rss>

