Need help in find tutorial [using M25P64 flash]

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
I am looking for tutorial for code on M25P64 flash memory connecting to ATMEGA88.
I wrote a code, and I am able to read status register and Device Identification but not able to rad or write. When I am reading it always read 0.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I doubt you'll find a hand-holding tutorial - you just need to follow the data sheet for doing the write operations (setting WREN beforehand etc).

Post your code - without it, I'm guessing there is a problem at line 42.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quite a few chips have a "lock" that prevents accidental writes and erases. It's often the case you need to start by sending an unlock sequence first. Maybe this chip is like that?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thans for help. I can not post the code here now I have multplie files and I have to edit that.

Quote:

Quite a few chips have a "lock" that prevents accidental writes and erases. It's often the case you need to start by sending an unlock sequence first. Maybe this chip is like that?

Where I can find that unlock sequence code?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Where I can find that unlock sequence code?

In the data sheet for the chip?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

http://www.numonyx.com/Documents...

Quote:
4.1 Page Programming
To program one data byte, two instructions are required: Write Enable (WREN), which is one byte, and a Page Program (PP) sequence, which consists of four bytes plus data. This is followed by the internal Program cycle (of duration tPP).

(were you seriously trying to use this chip without having first read the datasheet??)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
http://www.numonyx.com/Documents...

Quote:
4.1 Page Programming
To program one data byte, two instructions are required: Write Enable (WREN), which is one byte, and a Page Program (PP) sequence, which consists of four bytes plus data. This is followed by the internal Program cycle (of duration tPP).

(were you seriously trying to use this chip without having first read the datasheet??)

I thought there might be some value( unlock code) to unlock write function.I followed th following sequence code.
Quote:
The Page Program (PP) instruction is entered by driving Chip Select (S) Low, followed by
the instruction code, three address bytes and at least one data byte on Serial Data Input (D).

Anyway I was able to do bulk erase once and I also write the data starting from address 0. Now if I tried to write different data on same address it does not work and bulk erase is also not working.

May be I shold read the data sheet more throughly.