Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to access Micron MT25Q nor flash

Status
Not open for further replies.

Ken101

Newbie level 1
Newbie level 1
Joined
Sep 29, 2017
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
0
Activity points
32
Greeting,

I have a project that create QUAD SPI controller for MT25QU device. I am able to access to all register of the flash, but not able to read back data from the memory. here is my procedure (assume that i am already in quad mode)

1. Write Enable x06h
2. Write Extended address xC5h + 00 (flash region 0)
3. Read Memory (quad input/output fast read) xEBh + 000_0000 (24bit address)

I am not getting right result back. I know at the begining of the flash my data is 0303, but I got back is 0xFF.

I looked at wave form, and my wave form is closely follow Micron datasheet.
2 clk cycle cmd
6 clk cycle address (only use 24 bits address and 2 bits for select flash region)
10 clk dummy cycles
4 clk read back ( i have 2 flashes, and read 16bits from each flashes).

Thanks
 

KlausST

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 17, 2014
Messages
23,048
Helped
4,716
Reputation
9,448
Reaction score
5,092
Trophy points
1,393
Activity points
152,683
Hi,

A lot of text, no clear question, not much we can verify...

Please give
* (a link to) the datasheet
* your code
* the scope picture
* schematic
* register contents (maybe the memory device needs some setup, or there are some write/read protections active)

Klaus
 

Ken101

Newbie level 1
Newbie level 1
Joined
Sep 29, 2017
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
0
Activity points
32
Thanks for replying to the thread.
My question: how do I access to Micron spi flash memory? Is there any procedure that I need to follow?
datasheet: https://www.micron.com/products/nor-flash/serial-nor-flash/part-catalog/mt25qu512abb8e12-0sit

the device is already set up in quad mode and verified with manID, and other flash registers.
status register: 0x00
flag status register: 0x80
volatile configuration: 0xFF
Enhanced volatile configuration register: 0x7F

Waveform:
-- Read manID waveform
mandID.JPG

-- try to read data but could not get right return
read_mem.JPG


Thanks
Ken
 

FvM

Super Moderator
Staff member
Advanced Member level 7
Joined
Jan 22, 2008
Messages
50,813
Helped
14,603
Reputation
29,481
Reaction score
13,688
Trophy points
1,393
Location
Bochum, Germany
Activity points
290,949
It's more likely that the preceding write didn't succeed.

It's not clear how the waveforms (apparently from a simulator) are related to your microprocessor hardware.
 

Ken101

Newbie level 1
Newbie level 1
Joined
Sep 29, 2017
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
0
Activity points
32
Hi FvM,

I program flash with working FPGA image. the first data at 0x0000_0000 address is 303A. I tried to read data at that address and getting 0xFF.
the wave form is the actual pin out at the FPGA. So i would assume that the FPGA did actually sending out these signal to the flash.

Ken
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top