jedec probe problem

Thomas Gleixner tglx at linutronix.de
Wed Jan 1 09:03:13 EST 2003


On Wednesday 01 January 2003 14:42, thierry wrote:
> my flash is hy29lv160 in word mode and buswidth is 16 bit.
> I use jedec_probe_chip() to detect my flash.
> According to the data sheet of my flash,I set:
> cfi->addr_unlock1 = 0x555;
> cfi->addr_unlock2 = 0x2aa;
> but when it execute:
> 	cfi_send_gen_cmd(0xaa, cfi->addr_unlock1, base, map, cfi,
> CFI_DEVICETYPE_X16, NULL); cfi_send_gen_cmd(0x55, cfi->addr_unlock2, base,
> map, cfi, CFI_DEVICETYPE_X16, NULL); cfi_send_gen_cmd(0x90,
> cfi->addr_unlock1, base, map, cfi, CFI_DEVICETYPE_X16, NULL); cfi->mfr =
> jedec_read_mfr(map, base, osf);
> it stop after the third cfi_send_gen_cmd and can't read the manufacture
> code. Can someone point out my mistake?
> Thanks!
Please use cfi_probe. 
Check, if this works. 
If yes, study the code and you have a pointer. 
If not, enable debugging and provide detailed logs.

-- 
Thomas
____________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx at linutronix.de




More information about the linux-mtd mailing list