Hello: On Sunday 31 May 2009 12:58:16 jie.zeng wrote: > Hi list, > > I've got a new problem. When I use the command `flash probe 0' after > telnet to the server. It cannot probe the flash. > > My core is arm926ejs and flash used CFI interface, so go into the code > and I found something is not normal. > > # my flash config > flash bank cfi 0x10000000 0x00800000 2 2 0
What is the addres at which the flash is located and what is its size?. Do you use a 16bit bus chip/cpu? > > At flash/cfi.c > cfi_probe() { > > /* snip */ > > /* detect manufacturer ID */ > unlock2 = 0x2AA; > cfi_command(bank, 0x55, command); > if((retval = write_memory(target, flash_addr(bank, 0, unlock2), > buf->width, 1, command)) != ERROR_OK) > { > return retval; > } > /* snip */ > > } I can't find this exact code in the file, could you point the line number? > > I found the flash_address is not correct(my fault?), and address is > 0x10000554. > > >From cfi flash spec, detect manufacturer ID, the byte addr should be > > base + 0x555 I think. The address depends on your layout, depends on the chip and bus width. > > After changed manually, it unlucily... SO, in this function, I adjust > write_memory() to target_write_u8() and it can probe success. > I 've no more idea about that. > > What's wrong? Is it a bug? > > Regards > > -- > ZJ > Regards, -- Raúl Sánchez Siles Departamento de Montaje INFOGLOBAL, S. A. * C/ Virgilio, 2. Ciudad de la Imagen. 28223 Pozuelo de Alarcón (Madrid), España * T: +34 91 506 40 00 * F: +34 91 506 40 01 _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development