STR912 flash verification of image fails when using PLL

Good day, people

<Running OpenOCD SVN revision 913 (Build: 13/8/2008)>

I’ve got a peculiar problem. When I run a program on my ST STR912 with the fMaster clock set to the external ossilator (24mHz) the command ‘verify image main.hex 0 ihex’ verifies my downloaded image (main.hex) correctly.

If I update the program to activate the PLL at 96mHz and set fMaster to PLL the ’ verify image…’ command fails.

Can someone please shed some light on the relationship between the fMaster clock speed and the effect that it might have on the flash and the JTAG? I’m running a parallel port wiggler, so I guess it has some speed constraints as well.

I’ve included the following:

  1. OCD server init file

  2. OCD client side “telnet” script

  3. OCD debug output (level2)

Regards,

Frikkie Thirion

#----- OpenOCD server script --------

script for str9

jtag speed. We need to stick to 16kHz until we’ve finished reset.

#daemon configuration

telnet_port 4000

gdb_port 2000

#interface

interface parport

#parport_port 0x378

parport_port 0

parport_cable wiggler

jtag_speed 1

#jtag_khz 16

#proc target_0_pre_reset {} {

jtag_khz 16

#}

#proc target_0_post_reset {} {

# We can increase speed now that we know the target is halted.

jtag_khz 3000

# – Enable 96K RAM

# PFQBC enabled / DTCM & AHB wait-states disabled

mww 0x5C002034 0x0191

str9x flash_config 0 4 2 0 0x80000

flash protect 0 0 7 off

#}

jtag_nsrst_delay 100

jtag_ntrst_delay 100

#use combined on interfaces or targets that can’t set TRST/SRST separately

reset_config trst_and_srst separate

#jtag scan chain

#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)

jtag_device 8 0x1 0x1 0xfe

jtag_device 4 0x1 0xf 0xe

jtag_device 5 0x1 0x1 0x1e

#target

#target arm7tdmi

target arm966e little 1 arm966e

#target_script 0 reset event/str912_reset.script

#target_script 0 gdb_program_config event/str912_program.script

#Area in ram to be used by the debugger

#working_area 0 0x50000000 16384 nobackup

working_area 0 0x4000000 16384 nobackup

#flash bank str9x 0 0 <target#>

flash bank str9x 0x00000000 0x00080000 0 0 0

flash bank str9x 0x00080000 0x00008000 0 0 0

#----- Telnet script --------

#! /bin/sh

( echo open localhost 4000

sleep 1

echo “reset halt”

sleep 1

echo “flash protect 0 0 0 off”

echo “arm7_9 dcc_downloads enable”

echo “flash erase_sector 0 0 0”

sleep 2

echo “flash write_image main.hex 0 ihex”

sleep 2

echo “verify image main.hex 0 ihex”

sleep 2

echo “reset run”

sleep 1

echo exit ) | telnet

#----- Debug output while telnet script was running --------

User: 6766 773455 command.c:360 command_print(): checksum mismatch - attempting binary compare

Debug: 6767 773456 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000004, count: 0x000006f4

User: 6768 775471 command.c:360 command_print(): Verify operation failed address 0x00000000. Was 0x48 instead of 0x18

Debug: 6769 775473 command.c:404 run_command(): Command failed with error code -4

User: 6770 775473 command.c:604 openocd_jim_vfprintf(): Runtime error, file “?”, line 1:

User: 6771 775474 command.c:604 openocd_jim_vfprintf(): checksum mismatch - attempting binary compare

Verify operation failed address 0x00000000. Was 0x48 instead of 0x18

User: 6772 775477 command.c:604 openocd_jim_vfprintf(): In procedure ‘verify’ called at file “?”, line 1

User: 6773 775478 command.c:604 openocd_jim_vfprintf(): In procedure ‘unknown’ called at file “?”, line 1

User: 6774 775479 command.c:604 openocd_jim_vfprintf(): In procedure ‘verify_image’ called at file “?”, line 1

Revision 913

Info: 795 31880 server.c:81 add_connection(): accepting ‘telnet’ connection from 0

Debug: 797 32868 command.c:79 script_command(): script_command - reset

Debug: 798 32868 command.c:96 script_command(): script_command - reset, argv[0]=ocd_reset

Debug: 799 32868 command.c:96 script_command(): script_command - reset, argv[1]=halt

Debug: 800 32868 jtag.c:1607 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / TLR

Debug: 801 32868 jtag.c:1003 jtag_add_reset(): SRST line released

Debug: 802 32868 jtag.c:1022 jtag_add_reset(): TRST line asserted

Debug: 803 32868 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)

Debug: 804 32868 jtag.c:1301 jtag_reset_callback(): -

Debug: 805 32868 jtag.c:1301 jtag_reset_callback(): -

Debug: 806 32868 jtag.c:1301 jtag_reset_callback(): -

Debug: 807 32868 jtag.c:999 jtag_add_reset(): SRST line asserted

Debug: 808 32868 jtag.c:1022 jtag_add_reset(): TRST line asserted

Debug: 809 32868 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)

Debug: 810 32868 jtag.c:1301 jtag_reset_callback(): -

Debug: 811 32868 jtag.c:1301 jtag_reset_callback(): -

Debug: 812 32868 jtag.c:1301 jtag_reset_callback(): -

Debug: 813 32868 jtag.c:999 jtag_add_reset(): SRST line asserted

Debug: 814 32868 jtag.c:1003 jtag_add_reset(): SRST line released

Debug: 815 32868 parport.c:233 parport_reset(): trst: 1, srst: 0

Debug: 816 32968 parport.c:233 parport_reset(): trst: 1, srst: 1

Debug: 817 32968 parport.c:233 parport_reset(): trst: 0, srst: 1

Debug: 818 33068 parport.c:233 parport_reset(): trst: 0, srst: 0

Debug: 819 33268 jtag.c:1563 jtag_init_inner(): Init JTAG chain

Debug: 820 33268 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)

Debug: 821 33268 jtag.c:1301 jtag_reset_callback(): -

Debug: 822 33268 jtag.c:1301 jtag_reset_callback(): -

Debug: 823 33268 jtag.c:1301 jtag_reset_callback(): -

Info: 824 33274 jtag.c:1418 jtag_examine_chain(): JTAG device found: 0x04570041 (Manufacturer: 0x020, Part: 0x4570, Version: 0x0)

Info: 825 33274 jtag.c:1418 jtag_examine_chain(): JTAG device found: 0x25966041 (Manufacturer: 0x020, Part: 0x5966, Version: 0x2)

Info: 826 33274 jtag.c:1418 jtag_examine_chain(): JTAG device found: 0x2457f041 (Manufacturer: 0x020, Part: 0x457f, Version: 0x2)

Debug: 827 33274 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)

Debug: 828 33274 jtag.c:1301 jtag_reset_callback(): -

Debug: 829 33274 jtag.c:1301 jtag_reset_callback(): -

Debug: 830 33274 jtag.c:1301 jtag_reset_callback(): -

Debug: 831 33276 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000000

Debug: 832 33276 arm7_9_common.c:770 arm7_9_assert_reset(): target->state: running

Debug: 833 33276 embeddedice.c:400 embeddedice_write_reg(): 2: 0x00000001

Debug: 834 33276 jtag.c:999 jtag_add_reset(): SRST line asserted

Debug: 835 33276 arm7_9_common.c:831 arm7_9_deassert_reset(): target->state: reset

Debug: 836 33276 jtag.c:1003 jtag_add_reset(): SRST line released

Debug: 837 33276 parport.c:233 parport_reset(): trst: 0, srst: 1

Debug: 838 33427 parport.c:233 parport_reset(): trst: 0, srst: 0

Debug: 839 33628 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 840 33628 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 841 33628 arm7_9_common.c:1095 arm7_9_debug_entry(): target entered debug from ARM state

Debug: 842 33648 arm7_9_common.c:1127 arm7_9_debug_entry(): target entered debug state in Supervisor mode

Debug: 843 33650 arm7_9_common.c:1158 arm7_9_debug_entry(): r0: 0xe1811002

Debug: 844 33650 arm7_9_common.c:1158 arm7_9_debug_entry(): r1: 0x00000050

Debug: 845 33650 arm7_9_common.c:1158 arm7_9_debug_entry(): r2: 0x0001ca00

Debug: 846 33650 arm7_9_common.c:1158 arm7_9_debug_entry(): r3: 0xe14b30be

Debug: 847 33651 arm7_9_common.c:1158 arm7_9_debug_entry(): r4: 0x0000004c

Debug: 848 33651 arm7_9_common.c:1158 arm7_9_debug_entry(): r5: 0xe2833001

Debug: 849 33651 arm7_9_common.c:1158 arm7_9_debug_entry(): r6: 0xe1520003

Debug: 850 33651 arm7_9_common.c:1158 arm7_9_debug_entry(): r7: 0x9afffff7

Debug: 851 33652 arm7_9_common.c:1158 arm7_9_debug_entry(): r8: 0xe15b31b0

Debug: 852 33652 arm7_9_common.c:1158 arm7_9_debug_entry(): r9: 0xe1520003

Debug: 853 33652 arm7_9_common.c:1158 arm7_9_debug_entry(): r10: 0xe14b31b0

Debug: 854 33652 arm7_9_common.c:1158 arm7_9_debug_entry(): r11: 0xe15b21b0

Debug: 855 33652 arm7_9_common.c:1158 arm7_9_debug_entry(): r12: 0xe15b31b4

Debug: 856 33653 arm7_9_common.c:1158 arm7_9_debug_entry(): r13: 0x000003ab

Debug: 857 33653 arm7_9_common.c:1158 arm7_9_debug_entry(): r14: 0x3affffed

Debug: 858 33653 arm7_9_common.c:1158 arm7_9_debug_entry(): r15: 0x00000000

Debug: 859 33653 arm7_9_common.c:1164 arm7_9_debug_entry(): entered debug state at PC 0x0

Debug: 860 33659 target.c:613 target_call_event_callbacks(): target event 0

User: 861 33660 target.c:849 target_arch_state(): target state: halted

User: 862 33661 armv4_5.c:307 armv4_5_arch_state(): target halted in ARM state due to debug request, current mode: Supervisor

cpsr: 0x000000d3 pc: 0x00000000

Debug: 864 33664 target.c:339 target_process_reset(): Waiting for halted stated as appropriate

Debug: 866 33872 command.c:79 script_command(): script_command - protect

Debug: 867 33873 command.c:96 script_command(): script_command - protect, argv[0]=ocd_flash_protect

Debug: 868 33873 command.c:96 script_command(): script_command - protect, argv[1]=0

Debug: 869 33873 command.c:96 script_command(): script_command - protect, argv[2]=0

Debug: 870 33873 command.c:96 script_command(): script_command - protect, argv[3]=0

Debug: 871 33873 command.c:96 script_command(): script_command - protect, argv[4]=off

Debug: 872 33873 target.c:1165 target_write_u16(): address: 0x00000000, value: 0x00000060

Debug: 873 33873 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 874 33888 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 875 33895 target.c:1165 target_write_u16(): address: 0x00000000, value: 0x000000d0

Debug: 876 33946 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 877 33981 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 878 33999 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 879 34018 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x80

Debug: 880 34018 target.c:1165 target_write_u16(): address: 0x00000000, value: 0x00000050

Debug: 881 34018 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 882 34054 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 883 34061 target.c:1165 target_write_u16(): address: 0x00000000, value: 0x000000ff

Debug: 884 34061 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 885 34103 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

User: 886 34110 command.c:360 command_print(): cleared protection for sectors 0 through 0 on flash bank 0

Debug: 888 34137 command.c:79 script_command(): script_command - dcc_downloads

Debug: 889 34137 command.c:96 script_command(): script_command - dcc_downloads, argv[0]=ocd_arm7_9_dcc_downloads

Debug: 890 34137 command.c:96 script_command(): script_command - dcc_downloads, argv[1]=enable

User: 891 34137 command.c:360 command_print(): dcc downloads are enabled

Debug: 893 34139 command.c:79 script_command(): script_command - erase_sector

Debug: 894 34139 command.c:96 script_command(): script_command - erase_sector, argv[0]=ocd_flash_erase_sector

Debug: 895 34139 command.c:96 script_command(): script_command - erase_sector, argv[1]=0

Debug: 896 34139 command.c:96 script_command(): script_command - erase_sector, argv[2]=0

Debug: 897 34139 command.c:96 script_command(): script_command - erase_sector, argv[3]=0

Debug: 898 34139 target.c:1165 target_write_u16(): address: 0x00000000, value: 0x00000020

Debug: 899 34139 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 900 34186 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 901 34193 target.c:1165 target_write_u16(): address: 0x00000000, value: 0x000000d0

Debug: 902 34193 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 903 34217 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 904 34223 target.c:1165 target_write_u16(): address: 0x00000000, value: 0x00000070

Debug: 905 34223 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 906 34272 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 907 34279 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 908 34303 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 909 34305 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 910 34320 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 911 34321 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 912 34336 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 913 34338 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 914 34372 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 915 34374 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 916 34389 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 917 34390 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 918 34405 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 919 34407 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 920 34441 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 921 34442 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 922 34457 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 923 34459 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 924 34474 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 925 34475 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 926 34509 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 927 34510 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 928 34529 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 929 34530 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 930 34545 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 931 34547 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 932 34581 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 933 34583 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 934 34601 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 935 34626 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 936 34641 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 937 34643 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 938 34659 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 939 34660 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 940 34675 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 941 34677 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 942 34713 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 943 34715 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 944 34732 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 945 34738 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 946 34753 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 947 34760 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 948 34785 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 949 34786 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 950 34805 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 951 34806 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 952 34821 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 953 34823 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 954 34859 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 955 34860 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 956 34879 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 957 34881 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 958 34896 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 959 34897 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 960 34931 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 961 34932 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 962 34948 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 963 34950 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 964 34965 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 965 34966 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 966 35004 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 967 35005 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 968 35020 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 969 35022 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 970 35037 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 971 35038 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 972 35073 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 973 35074 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 974 35089 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 975 35090 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 976 35105 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 977 35107 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 978 35140 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 979 35142 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 980 35160 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 981 35162 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 982 35177 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 983 35178 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 984 35212 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 985 35213 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 986 35232 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 987 35233 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 988 35249 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 989 35250 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 990 35296 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 991 35298 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 992 35313 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 993 35314 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 994 35344 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 995 35346 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 996 35362 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x00

Debug: 997 35363 arm7_9_common.c:1846 arm7_9_read_memory(): address: 0x00000000, size: 0x00000001, count: 0x00000001

Debug: 998 35393 target.c:1123 target_read_u8(): address: 0x00000000, value: 0x80

Debug: 999 35393 target.c:1165 target_write_u16(): address: 0x00000000, value: 0x00000050

Debug: 1000 35394 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1001 35404 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1002 35412 target.c:1165 target_write_u16(): address: 0x00000000, value: 0x000000ff

Debug: 1003 35412 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1004 35443 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

User: 1005 35450 command.c:360 command_print(): erased sectors 0 through 0 on flash bank 0 in 1.311305s

Debug: 1007 35887 command.c:79 script_command(): script_command - write_image

Debug: 1008 35887 command.c:96 script_command(): script_command - write_image, argv[0]=ocd_flash_write_image

Debug: 1009 35887 command.c:96 script_command(): script_command - write_image, argv[1]=main.hex

Debug: 1010 35887 command.c:96 script_command(): script_command - write_image, argv[2]=0

Debug: 1011 35887 command.c:96 script_command(): script_command - write_image, argv[3]=ihex

Debug: 1012 35887 configuration.c:88 find_file(): found main.hex

Debug: 1013 35890 target.c:730 target_alloc_working_area(): allocating new working area

Debug: 1014 35890 target.c:865 target_write_buffer(): writing buffer of 76 byte at 0x04000000

Debug: 1015 35890 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1016 35953 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1017 35960 target.c:730 target_alloc_working_area(): allocating new working area

Debug: 1018 35960 target.c:865 target_write_buffer(): writing buffer of 7120 byte at 0x0400004c

Debug: 1019 35960 target.c:730 target_alloc_working_area(): allocating new working area

Debug: 1020 35960 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1021 35991 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1022 35998 arm7_9_common.c:1488 arm7_9_resume(): -

Debug: 1023 35998 arm7_9_common.c:1285 arm7_9_restore_context(): -

Debug: 1024 35999 arm7_9_common.c:1304 arm7_9_restore_context(): examining User mode

Debug: 1025 35999 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r0

Debug: 1026 35999 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r1

Debug: 1027 35999 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r2

Debug: 1028 36000 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r3

Debug: 1029 36000 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r4

Debug: 1030 36000 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r5

Debug: 1031 36000 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r6

Debug: 1032 36001 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r7

Debug: 1033 36001 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r8

Debug: 1034 36001 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r9

Debug: 1035 36001 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r10

Debug: 1036 36001 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r11

Debug: 1037 36002 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r12

Debug: 1038 36002 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: pc

Debug: 1039 36002 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 0 of mode User with value 0x0400004c

Debug: 1040 36002 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 1 of mode User with value 0x00000050

Debug: 1041 36003 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 2 of mode User with value 0x0001ca00

Debug: 1042 36003 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 3 of mode User with value 0xe14b30be

Debug: 1043 36003 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 4 of mode User with value 0x0000004c

Debug: 1044 36003 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 5 of mode User with value 0xe2833001

Debug: 1045 36004 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 6 of mode User with value 0xe1520003

Debug: 1046 36004 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 7 of mode User with value 0x9afffff7

Debug: 1047 36004 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 8 of mode User with value 0xe15b31b0

Debug: 1048 36004 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 9 of mode User with value 0xe1520003

Debug: 1049 36005 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 10 of mode User with value 0xe14b31b0

Debug: 1050 36005 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 11 of mode User with value 0xe15b21b0

Debug: 1051 36005 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 12 of mode User with value 0xe15b31b4

Debug: 1052 36005 arm7_9_common.c:1304 arm7_9_restore_context(): examining FIQ mode

Debug: 1053 36006 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: pc

Debug: 1054 36006 arm7_9_common.c:1304 arm7_9_restore_context(): examining IRQ mode

Debug: 1055 36006 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: pc

Debug: 1056 36006 arm7_9_common.c:1304 arm7_9_restore_context(): examining Supervisor mode

Debug: 1057 36007 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r13_svc

Debug: 1058 36007 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: lr_svc

Debug: 1059 36007 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: pc

Debug: 1060 36007 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 13 of mode Supervisor with value 0x000003ab

Debug: 1061 36007 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 14 of mode Supervisor with value 0x3affffed

Debug: 1062 36008 arm7_9_common.c:1304 arm7_9_restore_context(): examining Abort mode

Debug: 1063 36008 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: pc

Debug: 1064 36008 arm7_9_common.c:1304 arm7_9_restore_context(): examining Undefined mode

Debug: 1065 36008 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: pc

Debug: 1066 36009 arm7_9_common.c:1406 arm7_9_restore_context(): writing PC with value 0x0400204c

Debug: 1067 36009 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1068 36078 target.c:613 target_call_event_callbacks(): target event 4

Debug: 1069 36078 arm7_9_common.c:1598 arm7_9_resume(): target resumed

Debug: 1070 36078 embeddedice.c:400 embeddedice_write_reg(): 5: 0xe59ff018

Debug: 1071 36079 embeddedice.c:400 embeddedice_write_reg(): 5: 0x000003ab

Debug: 1072 36079 arm7_9_common.c:999 arm7_9_halt(): target->state: debug_running

Debug: 1073 36079 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000006

Debug: 1074 36764 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1075 36765 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1076 36766 arm7_9_common.c:1095 arm7_9_debug_entry(): target entered debug from ARM state

Debug: 1077 36797 arm7_9_common.c:1127 arm7_9_debug_entry(): target entered debug state in Supervisor mode

Debug: 1078 36798 arm7_9_common.c:1158 arm7_9_debug_entry(): r0: 0x04001c1c

Debug: 1079 36798 arm7_9_common.c:1158 arm7_9_debug_entry(): r1: 0x60000000

Debug: 1080 36798 arm7_9_common.c:1158 arm7_9_debug_entry(): r2: 0x0001ca00

Debug: 1081 36799 arm7_9_common.c:1158 arm7_9_debug_entry(): r3: 0xe14b30be

Debug: 1082 36799 arm7_9_common.c:1158 arm7_9_debug_entry(): r4: 0x0000004c

Debug: 1083 36799 arm7_9_common.c:1158 arm7_9_debug_entry(): r5: 0xe2833001

Debug: 1084 36799 arm7_9_common.c:1158 arm7_9_debug_entry(): r6: 0xe1520003

Debug: 1085 36800 arm7_9_common.c:1158 arm7_9_debug_entry(): r7: 0x9afffff7

Debug: 1086 36800 arm7_9_common.c:1158 arm7_9_debug_entry(): r8: 0xe15b31b0

Debug: 1087 36800 arm7_9_common.c:1158 arm7_9_debug_entry(): r9: 0xe1520003

Debug: 1088 36800 arm7_9_common.c:1158 arm7_9_debug_entry(): r10: 0xe14b31b0

Debug: 1089 36800 arm7_9_common.c:1158 arm7_9_debug_entry(): r11: 0xe15b21b0

Debug: 1090 36801 arm7_9_common.c:1158 arm7_9_debug_entry(): r12: 0xe15b31b4

Debug: 1091 36801 arm7_9_common.c:1158 arm7_9_debug_entry(): r13: 0x000003ab

Debug: 1092 36801 arm7_9_common.c:1158 arm7_9_debug_entry(): r14: 0x3affffed

Debug: 1093 36801 arm7_9_common.c:1158 arm7_9_debug_entry(): r15: 0x04002050

Debug: 1094 36802 arm7_9_common.c:1164 arm7_9_debug_entry(): entered debug state at PC 0x4002050

Debug: 1095 36807 target.c:613 target_call_event_callbacks(): target event 3

Debug: 1096 36808 armv4_5.c:480 armv4_5_run_algorithm(): Running algorithm

Debug: 1097 36808 armv4_5.c:541 armv4_5_run_algorithm(): setting core_mode: 0x13

Debug: 1098 36808 breakpoints.c:93 breakpoint_add(): added hardware breakpoint at 0x04000048 of length 0x00000004

Debug: 1099 36808 arm7_9_common.c:1488 arm7_9_resume(): -

Debug: 1100 36809 embeddedice.c:400 embeddedice_write_reg(): 8: 0x04000048

Debug: 1101 36809 embeddedice.c:400 embeddedice_write_reg(): 9: 0x00000003

Debug: 1102 36809 embeddedice.c:400 embeddedice_write_reg(): 11: 0xffffffff

Debug: 1103 36809 embeddedice.c:400 embeddedice_write_reg(): 13: 0x000000f7

Debug: 1104 36810 embeddedice.c:400 embeddedice_write_reg(): 12: 0x00000100

Debug: 1105 36812 arm7_9_common.c:1285 arm7_9_restore_context(): -

Debug: 1106 36813 arm7_9_common.c:1304 arm7_9_restore_context(): examining User mode

Debug: 1107 36813 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r0

Debug: 1108 36813 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r1

Debug: 1109 36813 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r2

Debug: 1110 36814 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r3

Debug: 1111 36814 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: pc

Debug: 1112 36814 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: cpsr

Debug: 1113 36814 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 0 of mode User with value 0x0400004c

Debug: 1114 36815 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 1 of mode User with value 0x00000000

Debug: 1115 36815 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 2 of mode User with value 0x00000de8

Debug: 1116 36815 arm7_9_common.c:1366 arm7_9_restore_context(): writing register 3 of mode User with value 0xb7faa198

Debug: 1117 36815 arm7_9_common.c:1304 arm7_9_restore_context(): examining FIQ mode

Debug: 1118 36816 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: pc

Debug: 1119 36816 arm7_9_common.c:1304 arm7_9_restore_context(): examining IRQ mode

Debug: 1120 36816 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: pc

Debug: 1121 36816 arm7_9_common.c:1304 arm7_9_restore_context(): examining Supervisor mode

Debug: 1122 36817 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: pc

Debug: 1123 36817 arm7_9_common.c:1304 arm7_9_restore_context(): examining Abort mode

Debug: 1124 36817 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: pc

Debug: 1125 36817 arm7_9_common.c:1304 arm7_9_restore_context(): examining Undefined mode

Debug: 1126 36818 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: pc

Debug: 1127 36818 arm7_9_common.c:1399 arm7_9_restore_context(): writing cpsr with value 0x400000d3

Debug: 1128 36818 arm9tdmi.c:548 arm9tdmi_write_xpsr(): xpsr: 400000d3, spsr: 0

Debug: 1129 36818 arm7_9_common.c:1406 arm7_9_restore_context(): writing PC with value 0x04000000

Debug: 1130 36819 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1131 36878 target.c:613 target_call_event_callbacks(): target event 4

Debug: 1132 36878 arm7_9_common.c:1598 arm7_9_resume(): target resumed

Debug: 1133 36918 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1134 36918 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1135 36920 arm7_9_common.c:1095 arm7_9_debug_entry(): target entered debug from ARM state

Debug: 1136 36940 arm7_9_common.c:1127 arm7_9_debug_entry(): target entered debug state in Supervisor mode

Debug: 1137 36942 arm7_9_common.c:1158 arm7_9_debug_entry(): r0: 0x04001c1c

Debug: 1138 36942 arm7_9_common.c:1158 arm7_9_debug_entry(): r1: 0x00001bd0

Debug: 1139 36942 arm7_9_common.c:1158 arm7_9_debug_entry(): r2: 0x00000000

Debug: 1140 36942 arm7_9_common.c:1158 arm7_9_debug_entry(): r3: 0x00000080

Debug: 1141 36943 arm7_9_common.c:1158 arm7_9_debug_entry(): r4: 0x00001bcc

Debug: 1142 36943 arm7_9_common.c:1158 arm7_9_debug_entry(): r5: 0x000000ff

Debug: 1143 36943 arm7_9_common.c:1158 arm7_9_debug_entry(): r6: 0xe1520003

Debug: 1144 36943 arm7_9_common.c:1158 arm7_9_debug_entry(): r7: 0x9afffff7

Debug: 1145 36944 arm7_9_common.c:1158 arm7_9_debug_entry(): r8: 0xe15b31b0

Debug: 1146 36944 arm7_9_common.c:1158 arm7_9_debug_entry(): r9: 0xe1520003

Debug: 1147 36944 arm7_9_common.c:1158 arm7_9_debug_entry(): r10: 0xe14b31b0

Debug: 1148 36944 arm7_9_common.c:1158 arm7_9_debug_entry(): r11: 0xe15b21b0

Debug: 1149 36944 arm7_9_common.c:1158 arm7_9_debug_entry(): r12: 0xe15b31b4

Debug: 1150 36945 arm7_9_common.c:1158 arm7_9_debug_entry(): r13: 0x000003ab

Debug: 1151 36945 arm7_9_common.c:1158 arm7_9_debug_entry(): r14: 0x3affffed

Debug: 1152 36945 arm7_9_common.c:1158 arm7_9_debug_entry(): r15: 0x04000048

Debug: 1153 36945 arm7_9_common.c:1164 arm7_9_debug_entry(): entered debug state at PC 0x4000048

Debug: 1154 36951 target.c:613 target_call_event_callbacks(): target event 3

Debug: 1155 36952 embeddedice.c:400 embeddedice_write_reg(): 12: 0x00000000

Debug: 1156 36953 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r0 with value 0xe1811002

Debug: 1157 36953 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r1 with value 0x00000050

Debug: 1158 36954 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r2 with value 0x0001ca00

Debug: 1159 36954 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r3 with value 0xe14b30be

Debug: 1160 36954 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r4 with value 0x0000004c

Debug: 1161 36954 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r5 with value 0xe2833001

Debug: 1162 36954 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r6 with value 0xe1520003

Debug: 1163 36955 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r7 with value 0x9afffff7

Debug: 1164 36955 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r8 with value 0xe15b31b0

Debug: 1165 36955 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r9 with value 0xe1520003

Debug: 1166 36955 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r10 with value 0xe14b31b0

Debug: 1167 36956 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r11 with value 0xe15b21b0

Debug: 1168 36956 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r12 with value 0xe15b31b4

Debug: 1169 36956 armv4_5.c:618 armv4_5_run_algorithm(): restoring register r13_svc with value 0x000003ab

Debug: 1170 36956 armv4_5.c:618 armv4_5_run_algorithm(): restoring register lr_svc with value 0x3affffed

Debug: 1171 36957 armv4_5.c:618 armv4_5_run_algorithm(): restoring register pc with value 0x00000000

Debug: 1172 36957 armv4_5.c:618 armv4_5_run_algorithm(): restoring register spsr_svc with value 0x00000010

User: 1173 36957 command.c:360 command_print(): wrote 7120 byte from file main.hex in 1.070234s (6.496827 kb/s)

Debug: 1175 37898 command.c:79 script_command(): script_command - verify_image

Debug: 1176 37898 command.c:96 script_command(): script_command - verify_image, argv[0]=ocd_verify_image

Debug: 1177 37898 command.c:96 script_command(): script_command - verify_image, argv[1]=main.hex

Debug: 1178 37898 command.c:96 script_command(): script_command - verify_image, argv[2]=0

Debug: 1179 37898 command.c:96 script_command(): script_command - verify_image, argv[3]=ihex

Debug: 1180 37898 configuration.c:88 find_file(): found main.hex

Debug: 1181 37902 target.c:730 target_alloc_working_area(): allocating new working area

Debug: 1182 37902 target.c:1144 target_write_u32(): address: 0x04002064, value: 0xe1a02000

Debug: 1183 37902 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1184 37917 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1185 37926 target.c:1144 target_write_u32(): address: 0x04002068, value: 0xe3e00000

Debug: 1186 37927 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1187 37937 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1188 37944 target.c:1144 target_write_u32(): address: 0x0400206c, value: 0xe1a03001

Debug: 1189 37945 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1190 37996 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1191 38006 target.c:1144 target_write_u32(): address: 0x04002070, value: 0xe3a04000

Debug: 1192 38006 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1193 38017 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1194 38024 target.c:1144 target_write_u32(): address: 0x04002074, value: 0xea00000b

Debug: 1195 38024 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1196 38055 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1197 38062 target.c:1144 target_write_u32(): address: 0x04002078, value: 0xe7d21004

Debug: 1198 38062 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1199 38073 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1200 38080 target.c:1144 target_write_u32(): address: 0x0400207c, value: 0xe59f7030

Debug: 1201 38081 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1202 38091 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1203 38120 target.c:1144 target_write_u32(): address: 0x04002080, value: 0xe0200c01

Debug: 1204 38120 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1205 38141 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1206 38148 target.c:1144 target_write_u32(): address: 0x04002084, value: 0xe3a05000

Debug: 1207 38148 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1208 38172 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1209 38179 target.c:1144 target_write_u32(): address: 0x04002088, value: 0xe3500000

Debug: 1210 38179 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1211 38202 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1212 38209 target.c:1144 target_write_u32(): address: 0x0400208c, value: 0xe1a06080

Debug: 1213 38209 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1214 38220 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1215 38227 target.c:1144 target_write_u32(): address: 0x04002090, value: 0xe2855001

Debug: 1216 38227 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1217 38257 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1218 38264 target.c:1144 target_write_u32(): address: 0x04002094, value: 0xe1a00006

Debug: 1219 38265 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1220 38276 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1221 38283 target.c:1144 target_write_u32(): address: 0x04002098, value: 0xb0260007

Debug: 1222 38283 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1223 38313 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1224 38320 target.c:1144 target_write_u32(): address: 0x0400209c, value: 0xe3550008

Debug: 1225 38320 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1226 38344 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1227 38351 target.c:1144 target_write_u32(): address: 0x040020a0, value: 0x1afffff8

Debug: 1228 38351 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1229 38374 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1230 38381 target.c:1144 target_write_u32(): address: 0x040020a4, value: 0xe2844001

Debug: 1231 38381 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1232 38408 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1233 38415 target.c:1144 target_write_u32(): address: 0x040020a8, value: 0xe1540003

Debug: 1234 38415 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1235 38437 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1236 38444 target.c:1144 target_write_u32(): address: 0x040020ac, value: 0x1afffff1

Debug: 1237 38445 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1238 38456 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1239 38462 target.c:1144 target_write_u32(): address: 0x040020b0, value: 0xeafffffe

Debug: 1240 38463 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1241 38493 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1242 38500 target.c:1144 target_write_u32(): address: 0x040020b4, value: 0x04c11db7

Debug: 1243 38500 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004

Debug: 1244 38523 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005

Debug: 1245 38530 armv4_5.c:480 armv4_5_run_algorithm(): Running algorithm

Debug: 1246 38531 armv4_5.c:541 armv4_5_run_algorithm(): setting core_mode: 0x13

Debug: 1247 38531 breakpoints.c:93 breakpoint_add(): added hardware breakpoint at 0x040020b0 of length 0x00000004

Debug: 1248 38531 arm7_9_common.c:1488 arm7_9_resume(): -

Debug: 1249 38531 embeddedice.c:400 embeddedice_write_reg(): 8: 0x040020b0

Debug: 1250 38532 embeddedice.c:400 embeddedice_write_reg(): 9: 0x00000003

Debug: 1251 38532 embeddedice.c:400 embeddedice_write_reg(): 11: 0xffffffff

Debug: 1252 38532 embeddedice.c:400 embeddedice_write_reg(): 13: 0x000000f7

Debug: 1253 38532 embeddedice.c:400 embeddedice_write_reg(): 12: 0x00000100

Debug: 1254 38535 arm7_9_common.c:1285 arm7_9_restore_context(): -

Debug: 1255 38535 arm7_9_common.c:1304 arm7_9_restore_context(): examining User mode

Debug: 1256 38536 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r0

Debug: 1257 38536 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r1

Debug: 1258 38536 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r2

Debug: 1259 38536 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r3

Debug: 1260 38537 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r4

Debug: 1261 38537 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r5

Debug: 1262 38537 arm7_9_common.c:1318 arm7_9_restore_context(): examining dirty reg: r6

Debug: 1263 38537 arm7_9_common.c:1318 arm7_9_restore_cont

with the str9 you will always need the following lines before programming:

i am assuming you are using bank 0 as the boot bank.

str9x flash_config 0 4 2 0 0x80000

flash protect 0 0 7 off

looks like the lines you have commented out.

Cheers

Spen