<?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>LPC MicrocontrollersのトピックSpifi memory mapping shifted 1 byte???</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523062#M5698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by diederikloos on Thu Dec 10 08:52:05 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Setup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC4357&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;custom board&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;eclipse, using arm-gcc-none-eabi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;flash: S25FL512S&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OS: ChibiOS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use the SPIFI library in combination with spansion S25FL512s flash memory. I managed to get the library working on LPC4357, but when i memory map the device, all the data I inserted seems to be shifted 1 byte to the left, even though I defined the base address as 0x14000000. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I try to write 4 bytes, and then switch to memmapped mode, i can only see 3 bytes have been written. We tried to add 1 to the base addres, but then the last byte of the page (byte 512) will not be written. I've checked whether the buffers were 32 bit alligned (by (address &amp;amp; 0x03)). Does anyone have a clue why the memory mapping is shifted 1 byte?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:42:13 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:42:13Z</dc:date>
    <item>
      <title>Spifi memory mapping shifted 1 byte???</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523062#M5698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by diederikloos on Thu Dec 10 08:52:05 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Setup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC4357&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;custom board&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;eclipse, using arm-gcc-none-eabi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;flash: S25FL512S&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OS: ChibiOS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use the SPIFI library in combination with spansion S25FL512s flash memory. I managed to get the library working on LPC4357, but when i memory map the device, all the data I inserted seems to be shifted 1 byte to the left, even though I defined the base address as 0x14000000. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I try to write 4 bytes, and then switch to memmapped mode, i can only see 3 bytes have been written. We tried to add 1 to the base addres, but then the last byte of the page (byte 512) will not be written. I've checked whether the buffers were 32 bit alligned (by (address &amp;amp; 0x03)). Does anyone have a clue why the memory mapping is shifted 1 byte?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:42:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523062#M5698</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Spifi memory mapping shifted 1 byte???</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523063#M5699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by diederikloos on Fri Dec 11 02:20:34 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yesterday, I saw this post about the reset boolean parameter that is part of the spifiInit function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This morning I've set this boolean to false, and suddenly the memory mapping is alligned properly. I will try to troubleshoot this further, but so far, it seems that resetting the spifi controller causes this weird bug.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:42:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523063#M5699</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Spifi memory mapping shifted 1 byte???</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523064#M5700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by diederikloos on Sat Dec 12 02:17:22 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the solution for this problem. It has to do with S25Fl512S.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that toggling quad mode caused the bytes to shift as well. Then i started looking at the datasheets more thoroughly, and i found that there are latency codes included (latency codes depict how many dummy cycles there are between the address and the actual data during a read command). Basically, what happened was that the writing to flash succeeded, but when reading, there were one or multiple dummy cycles included, causing the data to shift 1 byte. In the spifilib, there is another spansion chip mentioned, where the latency bits are set to zero when initializing the device. By writing 2 zero's to the 14th and 15th bit of the status register, i disabled this latency mode, and suddenly the memory was alligned again. Hope this helps anyone else who might have the same problem in the future.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:42:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523064#M5700</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Spifi memory mapping shifted 1 byte???</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523065#M5701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Sat Dec 12 09:14:58 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for sharing!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is too much 'hit and run' sometimes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:42:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523065#M5701</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Spifi memory mapping shifted 1 byte???</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523066#M5702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lintovincent88 on Thu Feb 11 03:06:02 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for sharing...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;by &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Linto vincent&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:42:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523066#M5702</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Spifi memory mapping shifted 1 byte???</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523067#M5703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by avenuti on Fri Feb 12 11:22:15 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran into this exact same problem two days ago, and also determined that the latency code was the issue (for once I actually should have checked this forum first - up until now it never has helped my specific problems). Good find!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@NXP: Why does the LPC SPIFI lib not control these latency codes for most of the flash chips it supports?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:42:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523067#M5703</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Spifi memory mapping shifted 1 byte???</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523068#M5704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Fri Feb 12 12:46:32 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi avenuti,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for bringing it up. We missed it. We had dummy code support in our old SPIFI library. It was an oversight.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:42:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Spifi-memory-mapping-shifted-1-byte/m-p/523068#M5704</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:42:17Z</dc:date>
    </item>
  </channel>
</rss>

