<?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>S32 Design StudioのトピックRe: program flash data?</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/program-flash-data/m-p/743536#M2500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which MCU are you using - S32K144?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For calibration data and S32K144 is better idea use FlexNVM configured as EEEROM. With direct write into pflash you have to erase at least one sector then program it and verify. With EEEROM you only call&amp;nbsp;FLASH_DRV_EEEWrite() fucntion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look at flash_partitioning_s32k144 S32DS Example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jan 2018 14:40:03 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2018-01-02T14:40:03Z</dc:date>
    <item>
      <title>program flash data?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/program-flash-data/m-p/743535#M2499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two global variables.&lt;/P&gt;&lt;P&gt;int a = 123;&lt;/P&gt;&lt;P&gt;int F_a = 789;&lt;/P&gt;&lt;P&gt;my ld script is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;.asec&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;.data.a&lt;/P&gt;&lt;P&gt;} &amp;gt; myram; // no load address, only reserve spaces in ram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.Fsec&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;.data.F_a&lt;/P&gt;&lt;P&gt;} &amp;gt; myflash; // only load data 789 to FLASH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after boot then main then...init:&amp;nbsp; &amp;nbsp;copy F_a data in flash to .data.a 's ram address. now&amp;nbsp; a value is 789.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then calibrate a to 790 for example through can or sci or something else, and then PROGRAM 790 to F_a in the flash for next power up and init a with 790.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but&amp;nbsp;CAN NOT ERASE &amp;amp; PROGRAM&amp;nbsp;Success!&amp;nbsp; &amp;nbsp;WHY?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Dec 2017 17:14:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/program-flash-data/m-p/743535#M2499</guid>
      <dc:creator>zengxianke</dc:creator>
      <dc:date>2017-12-24T17:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: program flash data?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/program-flash-data/m-p/743536#M2500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which MCU are you using - S32K144?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For calibration data and S32K144 is better idea use FlexNVM configured as EEEROM. With direct write into pflash you have to erase at least one sector then program it and verify. With EEEROM you only call&amp;nbsp;FLASH_DRV_EEEWrite() fucntion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look at flash_partitioning_s32k144 S32DS Example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 14:40:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/program-flash-data/m-p/743536#M2500</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-01-02T14:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: program flash data?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/program-flash-data/m-p/743537#M2501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. It is a good suggestion. In fact, the flash content changed, but the debugger not update. I guess it read the data from elf file once. I use some array for check my program flash action, it is correct. Maybe debugger find that the ld script say the range is data initial value, so it doesn't update the viewer from flash volatilely. Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 00:57:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/program-flash-data/m-p/743537#M2501</guid>
      <dc:creator>zengxianke</dc:creator>
      <dc:date>2018-01-31T00:57:15Z</dc:date>
    </item>
  </channel>
</rss>

