Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

How to access Micron MT25Q nor flash

Ken101

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
Joined
Apr 17, 2014
Messages
17,302
Helped
3,916
Reputation
7,830
Reaction score
3,779
Trophy points
113
Activity points
114,847
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
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
Joined
Jan 22, 2008
Messages
46,791
Helped
13,893
Reputation
28,034
Reaction score
12,524
Trophy points
1,393
Location
Bochum, Germany
Activity points
273,052
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
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
 

Toggle Sidebar

Part and Inventory Search


Welcome to EDABoard.com

Sponsor

Sponsor

Design Fast


×
Top