Hi Jeroen, look at address bus mapping of the flash. You should write to addresses AAA, 555, AAA. And in your log, there is AAA, 554, AAA. It means that address 0 is always zero (16bit access). You might need to shift address value ? Or to switch to 8bit communication ?
Vaclav > > I took a closer look, and it seems that dma mode is triggered correctly. In > the > logs I found the following > > Debug: 265 369 mips_ejtag.c:299 mips_ejtag_init(): impcode: 0x00800904 > Debug: 266 369 mips_ejtag.c:306 mips_ejtag_init(): EJTAG: Version 1 or 2.0 > Detected > Debug: 267 370 mips_ejtag.c:328 mips_ejtag_init(): EJTAG: features: R4k DMA > MIPS32 > Debug: 268 370 mips_ejtag.c:331 mips_ejtag_init(): EJTAG: DMA Access Mode > Support Enabled > > Which detects the impcode as expected. I can halt my target succesfully, too > > Debug: 9844 161472 mips32_pracc.c:140 wait_for_pracc_rw(): DEBUGMODULE: No > memory access in progress! > Debug: 9845 161472 mips_m4k.c:112 mips_m4k_debug_entry(): entered debug state > at > PC 0x0, target->state: halted > Debug: 9846 161472 target.c:1290 target_call_event_callbacks(): target event 2 > (gdb-halt) > Debug: 9847 161472 target.c:1290 target_call_event_callbacks(): target event 3 > (halted) > User : 9848 161472 target.c:1663 target_arch_state(): target state: halted > User : 9849 161473 mips32.c:241 mips32_arch_state(): target halted in MIPS32 > mode due to debug-request, pc: 0x00000000 > > But when probing for the flash memory, I get the following output (filtered > the > output a bit) > > Debug: 9935 163572 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_flash probe 0 > Debug: 9936 163572 command.c:145 script_debug(): command - ocd_flash ocd_flash > probe 0 > > Debug: 9943 163578 mips_m4k.c:844 mips_m4k_write_memory(): address: > 0x9fc00aaa, > size: 0x00000002, count: 0x00000001 > Debug: 9972 163658 mips_m4k.c:844 mips_m4k_write_memory(): address: > 0x9fc00554, > size: 0x00000002, count: 0x00000001 > Debug: 10001 163738 mips_m4k.c:844 mips_m4k_write_memory(): address: > 0x9fc00aaa, > size: 0x00000002, count: 0x00000001 > Debug: 10030 163818 mips_m4k.c:785 mips_m4k_read_memory(): address: > 0x9fc00000, > size: 0x00000002, count: 0x00000001 > Debug: 10060 163898 mips_m4k.c:785 mips_m4k_read_memory(): address: > 0x9fc00002, > size: 0x00000002, count: 0x00000001 > Info : 10090 163978 cfi.c:2619 cfi_probe(): Flash Manufacturer/Device: 0xffff > 0xffff ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel