Now I can reset, resume and halt the target with OpenOCD. However, I met another problem. I can’t talk to the external flash(SST39VF1601). Whenever I input the command “flash probe 0”, it always returns false. SST39VF1601 is CFI compatible.
Anybody can help me? Thank you in advance!
Here’s the debug output after I input flash probe 0. ##########
Debug: arm7_9_common.c:1771 arm7_9_write_memory(): address: 0x800000aa, size: 0x00000002, count: 0x00000001
Debug: embeddedice.c:155 embeddedice_read_reg_w_check(): 1
Debug: bitbang.c:198 bitbang_execute_queue(): end_state: 5
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in -1
Debug: jtag.c:957 jtag_build_buffer(): fields[0].out_value: 00
Debug: jtag.c:957 jtag_build_buffer(): fields[1].out_value: 80000917
Debug: bitbang.c:215 bitbang_execute_queue(): runtest 0 cycles, end in -1
Debug: bitbang.c:198 bitbang_execute_queue(): end_state: 5
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in -1
Debug: jtag.c:957 jtag_build_buffer(): fields[0].out_value: 00
Debug: jtag.c:957 jtag_build_buffer(): fields[1].out_value: 10010587
Debug: bitbang.c:215 bitbang_execute_queue(): runtest 0 cycles, end in -1
Debug: bitbang.c:198 bitbang_execute_queue(): end_state: 5
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in -1
Debug: jtag.c:957 jtag_build_buffer(): fields[0].out_value: 00
Debug: jtag.c:957 jtag_build_buffer(): fields[1].out_value: 10010587
Debug: bitbang.c:215 bitbang_execute_queue(): runtest 0 cycles, end in -1
Debug: bitbang.c:198 bitbang_execute_queue(): end_state: 5
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in -1
Debug: jtag.c:957 jtag_build_buffer(): fields[0].out_value: 00
Debug: jtag.c:957 jtag_build_buffer(): fields[1].out_value: 55000001
Debug: bitbang.c:215 bitbang_execute_queue(): runtest 0 cycles, end in -1
Debug: bitbang.c:198 bitbang_execute_queue(): end_state: 5
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in -1
Debug: jtag.c:957 jtag_build_buffer(): fields[0].out_value: 00
Debug: jtag.c:957 jtag_build_buffer(): fields[1].out_value: 10010587
Debug: bitbang.c:215 bitbang_execute_queue(): runtest 0 cycles, end in -1
Debug: bitbang.c:198 bitbang_execute_queue(): end_state: 5
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in -1
Debug: jtag.c:957 jtag_build_buffer(): fields[0].out_value: 00
Debug: jtag.c:957 jtag_build_buffer(): fields[1].out_value: 40000917
Debug: bitbang.c:215 bitbang_execute_queue(): runtest 0 cycles, end in -1
Debug: bitbang.c:198 bitbang_execute_queue(): end_state: 5
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in -1
Debug: jtag.c:957 jtag_build_buffer(): fields[0].out_value: 00
Debug: jtag.c:957 jtag_build_buffer(): fields[1].out_value: 10010587
Debug: bitbang.c:215 bitbang_execute_queue(): runtest 0 cycles, end in -1
Debug: bitbang.c:198 bitbang_execute_queue(): end_state: 5
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in -1
Debug: jtag.c:957 jtag_build_buffer(): fields[0].out_value: 00
Debug: jtag.c:957 jtag_build_buffer(): fields[1].out_value: 10010587
Debug: bitbang.c:215 bitbang_execute_queue(): runtest 0 cycles, end in -1
Debug: bitbang.c:198 bitbang_execute_queue(): end_state: 5
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in -1
Debug: jtag.c:957 jtag_build_buffer(): fields[0].out_value: 00
Debug: jtag.c:957 jtag_build_buffer(): fields[1].out_value: 19000000
Debug: bitbang.c:215 bitbang_execute_queue(): runtest 0 cycles, end in -1
Debug: bitbang.c:198 bitbang_execute_queue(): end_state: 5
Debug: bitbang.c:237 bitbang_execute_queue(): scan end in -1
…
…
…
###repeat many times with difference out_values.