<?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: NOR Flash MX29LV800 + LPC1788 writing problems in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/NOR-Flash-MX29LV800-LPC1788-writing-problems/m-p/522062#M4698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by FlySnake on Tue Sep 03 09:02:08 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This problem solved (bad soldering). Another appeared.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't write first 3 words. Regardless of the address, when I write a few words in turn first 3 will not be written.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:52:26 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:52:26Z</dc:date>
    <item>
      <title>NOR Flash MX29LV800 + LPC1788 writing problems</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NOR-Flash-MX29LV800-LPC1788-writing-problems/m-p/522061#M4697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by FlySnake on Tue Sep 03 03:36:53 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to access NOR Flash MX29LV800. As a starting point I've got SST39VF320 example from lpcopen. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Base address 0x80000000 (CS0 is used). Address shifting in SCS disabled (1). A0 flash -&amp;gt; A1 MCU and so on with 1 bit shift. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Initialiation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
config.CSn = 0;
config.AddressMirror = 0;
config.ByteLane = 1;
config.DataWidth = 16;
config.ExtendedWait = 1;//0;
config.PageMode = 0;
config.WaitWEn = 2;
config.WaitOEn = 2;
config.WaitWr = 0x1f;
config.WaitPage = 0x1f;
config.WaitRd = 0x1f;
config.WaitTurn = 0x1f;
StaticMem_Init(&amp;amp;config);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;Trying to read ID:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
ip&amp;nbsp; = GET_ADDR(0x0555);
*ip = 0x00AA;
ip&amp;nbsp; = GET_ADDR(0x02AA);
*ip = 0x0055;
ip&amp;nbsp; = GET_ADDR(0x0555);
*ip = 0x0090;
delay(10);

ip&amp;nbsp; = GET_ADDR(0x0000);
id1 = *ip;
ip&amp;nbsp; = GET_ADDR(0x0001);
id2 = *ip;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yields to 0xD3A1 and 0xC280. It seems like these words are located in 0 and 1 address because if I just read these addresses:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;for(unsigned long i = 0; i &amp;lt; 10u; i++)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; ip&amp;nbsp; = GET_ADDR(i);
&amp;nbsp;&amp;nbsp;&amp;nbsp; xprintf("== 0x%X\n", *ip);
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;I get 0xd3A1, 0xC280 and so on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It ignores write commands completely. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to switch to CS1. Nothing changed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With oscilloscope I see impulses on OE, WE and CE pins and they seems to be OK. RY/BY is always high.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I don't understand this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: "MX29LV800's datasheet"&lt;/STRONG&gt;&lt;BR /&gt;The MX29LV800C T/B also features the chip unprotected&lt;BR /&gt;mode, so that all sectors are unprotected after chip un-&lt;BR /&gt;protected is completed to incorporate any changes in the&lt;BR /&gt;code. It is recommended to protect all sectors before&lt;BR /&gt;activating chip unprotected mode.&lt;BR /&gt;To activate this mode, the programming equipment must&lt;BR /&gt;force VID on control pin OE# and address pin A9. The&lt;BR /&gt;CE# pins must be set at VIL. Pins A6 must be set to&lt;BR /&gt;VIH. Refer to chip unprotected algorithm and waveform&lt;BR /&gt;for the chip unprotected algorithm. The unprotection&lt;BR /&gt;mechanism begins on the falling edge of the WE# pulse&lt;BR /&gt;and is terminated on the rising edge.&lt;BR /&gt;It is also possible to determine if the chip is unprotected&lt;BR /&gt;in the system by writing the Read Silicon ID command.&lt;BR /&gt;Performing a read operation with A1=VIH, it will produce&lt;BR /&gt;00H at data outputs (Q0-Q7) for an unprotected sector.&lt;BR /&gt;It is noted that all sectors are unprotected after the chip&lt;BR /&gt;unprotected algorithm is completed.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if this chip is unprotected what should I get on Q0-Q7? And if protected?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This chip is not new, I've got it from old notebook, so it might be protected, but I can't understand how this protection works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, why in lpcopen example commands are 0x5555, 0x2AAA where they must be 0x555, 0x2AA ? I tried both, nothing changed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:52:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NOR-Flash-MX29LV800-LPC1788-writing-problems/m-p/522061#M4697</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: NOR Flash MX29LV800 + LPC1788 writing problems</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NOR-Flash-MX29LV800-LPC1788-writing-problems/m-p/522062#M4698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by FlySnake on Tue Sep 03 09:02:08 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This problem solved (bad soldering). Another appeared.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't write first 3 words. Regardless of the address, when I write a few words in turn first 3 will not be written.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:52:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NOR-Flash-MX29LV800-LPC1788-writing-problems/m-p/522062#M4698</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:52:26Z</dc:date>
    </item>
  </channel>
</rss>

