<?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: S12P Dataflash writing problem in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12P-Dataflash-writing-problem/m-p/193759#M7656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry...sector size is 256 byte (127 words).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion or help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--- NKG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2012 13:19:13 GMT</pubDate>
    <dc:creator>nands</dc:creator>
    <dc:date>2012-09-03T13:19:13Z</dc:date>
    <item>
      <title>S12P Dataflash writing problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12P-Dataflash-writing-problem/m-p/193758#M7655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've written driver for Dataflash writing. It is working for 127 bytes (first sector) and not for other sectors. I'm erasing whole (4096 bytes) dataflash before writing data into it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm writing DFlash using PROGRAM_D_FLASH (0x11) command for single word only (not using burst sequence).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to change sector while programming it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- NKG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2012 13:59:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12P-Dataflash-writing-problem/m-p/193758#M7655</guid>
      <dc:creator>nands</dc:creator>
      <dc:date>2012-09-02T13:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: S12P Dataflash writing problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12P-Dataflash-writing-problem/m-p/193759#M7656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry...sector size is 256 byte (127 words).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion or help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--- NKG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 13:19:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12P-Dataflash-writing-problem/m-p/193759#M7656</guid>
      <dc:creator>nands</dc:creator>
      <dc:date>2012-09-03T13:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: S12P Dataflash writing problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12P-Dataflash-writing-problem/m-p/193760#M7657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey NKG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There really should be nothing special about writing to the second sector or any others vs. the first sector - incrementing the address field is all that is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if the problem is that your driver updates the address field only when trying to transition to the 2nd sector and leaves the CCOBIX set to 1?&lt;/P&gt;&lt;P&gt;Note that it must be set to between 2 and 5 which would happen naturally when you write address -&amp;gt; data, but if you were only writing the address then it might not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note also that the LSB of the address must always be 0, could you be adding 1 to the address to try and move to the next sector?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if that helps but if you can provide some more details I can help more - particularly the value of the FSTAT reg after a failed attempt to write sector 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 09:53:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12P-Dataflash-writing-problem/m-p/193760#M7657</guid>
      <dc:creator>stephenmcginty</dc:creator>
      <dc:date>2012-09-11T09:53:39Z</dc:date>
    </item>
  </channel>
</rss>

