Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

External NOR Flash Issue for TMS570LS3137 MCU

$
0
0

I have connected a 16MB NOR flash(M29W128GL) to the EMIF (using CS2) of TMS570LS3137. Data Bus width of Flash is 16 bit. The connection of the Flash with MCU is shown below
TMS570LS3137             NOR Flash
Address BUS:
             BA1-----------------> A0
             A0   -----------------> A1
                            .
                            .
                            .
             A21----------------> A22

Data BUS:
              D0 ---------------->DQ0
              D1 ---------------->DQ1
                           .
                           .
                           .
             D15--------------->DQ15A-1

I am able to reset/read and CFI Query by using single cycle command as shown below
Reset/Read Command:
              *(unsigned short*)(0x60000000) = 0xF0;
CFI Query Command:
                *(unsigned short*)(0x600000AA) = 0x98;

But the flash is not working for multi-cycles commands like Auto Select Manufacturer code, Device code etc command as shown below
                *(unsigned short*)(0x60000AAA) = 0xAA; //0x555 <----- 0xAA
                *(unsigned short*)(0x60000554) = 0x55; //0x2AA <----- 0x55
                *(unsigned short*)(0x60000AAA) = 0x90; //0x555 <----- 0x90

I have seen there is repeated access for a single access instruction. I know for normal mode R4 CPU will consider the memory to be accessed as RAM and there could be repeated access for a single access instruction. To avoid this problem I have configured access control to "strongly ordered" but still I am facing the same problem. I think somehow I am not able to configure the R4 CPU properly.

So,it will be very helpful if anybody helps me regarding this NOR Flash issue with TMS570LS3137.

Thanks and regards
Srikanta


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>