> 
> Load the init script: "reset init"
> 
> For flashing test.hex: "flash write_image test.hex"

Salvador, thank you, I forgot "reset init". Anyway, programming and debugging 
is terribly slow. I use Segger JLink with TCK set to 200 kHz. Programming of 
the chip is even incorrect. So I tried to burn the code with Pickit3 and then 
connect with OpenOCD. single step takes about 20 seconds - excerpt of the 
Openocd log is below.

I don't know if it is a problem of PIC32 target or JLink interface. I tried 
different TCK settings but still the same. Can somebody else check where is the 
problem ?

Vaclav

Debug: 2673 2096469 gdb_server.c:2049 gdb_input_inner(): received packet: 'Hc0'
Debug: 2674 2096469 gdb_server.c:2049 gdb_input_inner(): received packet: 's'
Debug: 2675 2096469 target.c:1290 target_call_event_callbacks(): target event 7 
(gdb-start)
Debug: 2676 2096469 gdb_server.c:1360 gdb_step_continue_packet(): -
Debug: 2677 2096484 gdb_server.c:1376 gdb_step_continue_packet(): step
Debug: 2681 2098297 target.c:1290 target_call_event_callbacks(): target event 4 
(resumed)
Debug: 2682 2098297 mips_m4k.c:785 mips_m4k_read_memory(): address: 0xff300000, 
size: 0x00000004, count: 0x00000001
Debug: 2684 2098578 target.c:1908 target_read_u32(): address: 0xff300000, 
value: 0x0003c41b
Debug: 2685 2098578 target.c:1974 target_write_u32(): address: 0xff300000, 
value: 0x0003c40b
Debug: 2686 2098578 mips_m4k.c:844 mips_m4k_write_memory(): address: 
0xff300000, size: 0x00000004, count: 0x00000001
Debug: 2688 2099312 mips_m4k.c:434 mips_m4k_step(): target stepped
Debug: 2694 2102078 mips_m4k.c:112 mips_m4k_debug_entry(): entered debug state 
at PC 0x9d000ca0, target->state: halted
Debug: 2695 2102078 target.c:1290 target_call_event_callbacks(): target event 2 
(gdb-halt)
Debug: 2696 2102094 target.c:1290 target_call_event_callbacks(): target event 3 
(halted)
Debug: 2697 2102094 target.c:1290 target_call_event_callbacks(): target event 8 
(gdb-end)
Debug: 2698 2102094 gdb_server.c:2049 gdb_input_inner(): received packet: 'g'
Debug: 2699 2102109 gdb_server.c:2049 gdb_input_inner(): received packet: 
'Z1,9d000c9c,4'
Debug: 2700 2102109 gdb_server.c:1395 gdb_breakpoint_watchpoint_packet(): -
Debug: 2701 2102109 target.c:1974 target_write_u32(): address: 0xff301100, 
value: 0x9d000c9c
Debug: 2702 2102125 mips_m4k.c:844 mips_m4k_write_memory(): address: 
0xff301100, size: 0x00000004, count: 0x00000001
Debug: 2704 2102828 target.c:1974 target_write_u32(): address: 0xff301108, 
value: 0x00000000
Debug: 2705 2102828 mips_m4k.c:844 mips_m4k_write_memory(): address: 
0xff301108, size: 0x00000004, count: 0x00000001
Debug: 2707 2103531 target.c:1974 target_write_u32(): address: 0xff301118, 
value: 0x00000001
Debug: 2708 2103547 mips_m4k.c:844 mips_m4k_write_memory(): address: 
0xff301118, size: 0x00000004, count: 0x00000001
Debug: 2711 2104250 mips_m4k.c:485 mips_m4k_set_breakpoint(): bpid: 5, bp_num 0 
bp_value 0x9d000c9c
Debug: 2712 2104250 breakpoints.c:106 breakpoint_add_internal(): added hardware 
breakpoint at 0x9d000c9c of length 0x00000004, (BP
ID: 5)
Warn : 2713 2104265 gdb_server.c:609 gdb_get_packet_inner(): negative 
acknowledgment, but no packet pending
Debug: 2714 2104265 gdb_server.c:2049 gdb_input_inner(): received packet: 'Hc0'
Debug: 2715 2104265 gdb_server.c:2049 gdb_input_inner(): received packet: 's'
Debug: 2716 2104265 target.c:1290 target_call_event_callbacks(): target event 7 
(gdb-start)
Debug: 2717 2104281 gdb_server.c:1360 gdb_step_continue_packet(): -
Debug: 2718 2104281 gdb_server.c:1376 gdb_step_continue_packet(): step
Debug: 2722 2106094 target.c:1290 target_call_event_callbacks(): target event 4 
(resumed)
Debug: 2723 2106094 mips_m4k.c:785 mips_m4k_read_memory(): address: 0xff300000, 
size: 0x00000004, count: 0x00000001
Debug: 2725 2106375 target.c:1908 target_read_u32(): address: 0xff300000, 
value: 0x0003c40b
Debug: 2726 2106390 mips_m4k.c:434 mips_m4k_step(): target stepped
Debug: 2732 2109172 mips_m4k.c:112 mips_m4k_debug_entry(): entered debug state 
at PC 0x9d000ca4, target->state: halted
Debug: 2733 2109172 target.c:1290 target_call_event_callbacks(): target event 2 
(gdb-halt)
Debug: 2734 2109172 target.c:1290 target_call_event_callbacks(): target event 3 
(halted)
Debug: 2735 2109187 target.c:1290 target_call_event_callbacks(): target event 8 
(gdb-end)
Debug: 2736 2109187 gdb_server.c:2049 gdb_input_inner(): received packet: 'g'
Debug: 2737 2109187 gdb_server.c:2049 gdb_input_inner(): received packet: 's'
Debug: 2738 2109203 target.c:1290 target_call_event_callbacks(): target event 7 
(gdb-start)
Debug: 2739 2109203 gdb_server.c:1360 gdb_step_continue_packet(): -
Debug: 2740 2109203 gdb_server.c:1376 gdb_step_continue_packet(): step
Debug: 2744 2111015 target.c:1290 target_call_event_callbacks(): target event 4 
(resumed)
Debug: 2745 2111031 mips_m4k.c:785 mips_m4k_read_memory(): address: 0xff300000, 
size: 0x00000004, count: 0x00000001
Debug: 2747 2111312 target.c:1908 target_read_u32(): address: 0xff300000, 
value: 0x0003c40b
Debug: 2748 2111328 mips_m4k.c:434 mips_m4k_step(): target stepped
Debug: 2754 2114109 mips_m4k.c:112 mips_m4k_debug_entry(): entered debug state 
at PC 0x9d000ca8, target->state: halted
Debug: 2755 2114109 target.c:1290 target_call_event_callbacks(): target event 2 
(gdb-halt)
Debug: 2756 2114125 target.c:1290 target_call_event_callbacks(): target event 3 
(halted)
Debug: 2757 2114125 target.c:1290 target_call_event_callbacks(): target event 8 
(gdb-end)
Debug: 2758 2114125 gdb_server.c:2049 gdb_input_inner(): received packet: 'g'
Debug: 2759 2114140 gdb_server.c:2049 gdb_input_inner(): received packet: 
'z1,9d000c9c,4'
Debug: 2760 2114140 gdb_server.c:1395 gdb_breakpoint_watchpoint_packet(): -
Debug: 2761 2114140 mips_m4k.c:556 mips_m4k_unset_breakpoint(): bpid: 5 - 
releasing hw: 0
Debug: 2762 2114156 target.c:1974 target_write_u32(): address: 0xff301118, 
value: 0x00000000
Debug: 2763 2114156 mips_m4k.c:844 mips_m4k_write_memory(): address: 
0xff301118, size: 0x00000004, count: 0x00000001
Debug: 2765 2114859 breakpoints.c:309 breakpoint_free(): free BPID: 5 --> 0

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to