From: jie.zeng <jie...@so...> - 2009-05-31 12:58:26
|
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 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 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. 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 |