I have a SW256N 32MB NOR flash connected to CS0 of my i.MX27 SoC.

In my board cfg file I have included the following lines describing 3
banks of my NOR which has 16 banks:

# The Visstrim SM10 board has a NOR flash on CS0
flash bank cfi 0xc0000000 0x00200000 2 2 imx27.cpu
flash bank cfi 0xc2000000 0x00200000 2 2 imx27.cpu
flash bank cfi 0xc4000000 0x00200000 2 2 imx27.cpu


However, if I try doing "flash probe 0" this is what I get. It can
read properly manufacturer ID and device ID but it is unable to read
QRY string properly:

Debug: 255 156350 command.c:68 script_debug(): command - probe
Debug: 256 156360 command.c:77 script_debug(): probe - argv[0]=ocd_flash_probe
Debug: 257 156370 command.c:77 script_debug(): probe - argv[1]=0
Debug: 258 156380 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000004
Debug: 259 156390 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000005
Debug: 260 156400 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000004
Debug: 261 156410 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000005
Debug: 262 156420 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000004
Debug: 263 156440 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000005
Debug: 264 156450 arm7_9_common.c:2264 arm7_9_read_memory(): address:
0xc0000000, size: 0x00000002, count: 0x00000001
Debug: 265 156460 target.c:1359 target_read_u16(): address:
0xc0000000, value: 0x0001
Debug: 266 156470 arm7_9_common.c:2264 arm7_9_read_memory(): address:
0xc0000002, size: 0x00000002, count: 0x00000001
Debug: 267 156490 target.c:1359 target_read_u16(): address:
0xc0000002, value: 0x227e
Info : 268 156500 cfi.c:2181 cfi_probe(): Flash Manufacturer/Device:
0x0001 0x227e
Debug: 269 156510 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000004
Debug: 270 156520 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000005
Debug: 271 156530 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000004
Debug: 272 156540 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000005
Debug: 273 156550 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000004
Debug: 274 156560 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000005
Debug: 275 156580 arm7_9_common.c:2264 arm7_9_read_memory(): address:
0xc0000020, size: 0x00000002, count: 0x00000001
Debug: 276 156590 arm7_9_common.c:2264 arm7_9_read_memory(): address:
0xc0000022, size: 0x00000002, count: 0x00000001
Debug: 277 156610 arm7_9_common.c:2264 arm7_9_read_memory(): address:
0xc0000024, size: 0x00000002, count: 0x00000001
Debug: 278 156620 cfi.c:2219 cfi_probe(): CFI qry returned: 0x20 0xf0 0x80
Debug: 279 156630 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000004
Debug: 280 156640 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000005
Debug: 281 156650 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000004
Debug: 282 156670 embeddedice.c:451 embeddedice_write_reg(): 0: 0x00000005
Error: 283 156680 cfi.c:2233 cfi_probe(): Could not probe bank: no QRY
User : 284 156690 command.c:400 command_print(): probing failed for
flash bank '#0' at 0xc0000000

Does anyone know what could I try to solve this problem?

Thank you.

--
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to