today I’ve written some testprograms for my STR711 Evalboard - it worked proper, but now I am not able to flash my device anymore! This is the OOCD-Log:
Opening OOCD
unknown target request: 0f
Trying to flash
Flash Programming with OpenOCD...
'C:\Programme\openocd\bin\'openocd-pp.exe -f D:\Work\STR71x\Source\openocd-configs\str71x-configs\str71x_pp-flash-program.cfg
Info: openocd.c:93 main(): Open On-Chip Debugger (2007-12-15 15:00 CET) svn: 231
Info: openocd.c:94 main(): $URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Info: jtag.c:1291 jtag_examine_chain(): JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
Error: embeddedice.c:181 embeddedice_build_reg_cache(): unknown EmbeddedICE version (comms ctrl: 0x00000000)
Warning: arm7_9_common.c:742 arm7_9_assert_reset(): srst resets test logic, too
Error: target_request.c:127 target_request(): unknown target request: 0f
Error: target_request.c:127 target_request(): unknown target request: 0f
Error: target_request.c:127 target_request(): unknown target request: 0f
Error: target_request.c:127 target_request(): unknown target request: 0f
Error: target_request.c:127 target_request(): unknown target request: 0f
Error: armv4_5.c:186 armv4_5_mode_to_number(): invalid mode value encountered
Error: arm7_9_common.c:1083 arm7_9_debug_entry(): cpsr contains invalid mode value - communication failure
Error: target.c:1208 handle_target(): couldn't poll target. It's due for a reset.
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: target_request.c:127 target_request(): unknown target request: 0f
Error: target_request.c:127 target_request(): unknown target request: 0f
Error: target_request.c:127 target_request(): unknown target request: 0f
Error: target_request.c:127 target_request(): unknown target request: 0f
Error: target_request.c:127 target_request(): unknown target request: 0f
Error: target_request.c:127 target_request(): unknown target request: 0f
Info: target.c:233 target_init_handler(): executing reset script 'D:\Work\STR71x\Source\openocd-configs\str71x-configs\str71x_flashprogram.ocd'
Info: configuration.c:50 configuration_output_handler(): waiting for target halted...
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: target_request.c:127 target_request(): unknown target request: 0f
Error: armv4_5.c:186 armv4_5_mode_to_number(): invalid mode value encountered
Error: arm7_9_common.c:1083 arm7_9_debug_entry(): cpsr contains invalid mode value - communication failure
Info: configuration.c:50 configuration_output_handler(): target halted
Info: configuration.c:50 configuration_output_handler(): 0x6c000000: 00008001
Info: configuration.c:50 configuration_output_handler(): 0x6c000004: 00008001
Info: configuration.c:50 configuration_output_handler(): probing failed for flash bank '#1' at 0x60000000
Info: configuration.c:50 configuration_output_handler(): unknown error
Info: configuration.c:50 configuration_output_handler(): sector number(s) invalid
Error: str7x.c:355 str7x_erase(): error erasing flash bank, FLASH_ER: 0x40100004
Info: configuration.c:50 configuration_output_handler(): flash erase error
Info: configuration.c:50 configuration_output_handler(): sector number(s) invalid
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Warning: armv4_5.c:612 armv4_5_run_algorithm(): target reentered debug state, but not at the desired exit point: 0x2000c008
Error: str7x.c:625 str7x_write(): flash writing failed with error code: 0xc2c2c2c2
Info: configuration.c:50 configuration_output_handler(): failed writing file main.bin to flash bank 0 at offset 0x00000000
Info: configuration.c:50 configuration_output_handler(): flash program error
Info: configuration.c:50 configuration_output_handler(): wrote 4828 byte from file main.bin to flash bank 0 at offset 0x00000000 in 6s 468750us (0.728865 kb/s)
Info: configuration.c:50 configuration_output_handler(): failed writing file main.bin to flash bank 1 at offset 0x00000000
Info: configuration.c:50 configuration_output_handler(): unknown error
Info: configuration.c:50 configuration_output_handler(): wrote 4828 byte from file main.bin to flash bank 1 at offset 0x00000000 in 0s 0us (1.#INF00 kb/s)
Warning: arm7_9_common.c:742 arm7_9_assert_reset(): srst resets test logic, too
Flash Programming Finished.
A newer Version doesn’t help my - it makes more trouble than the older one!
So I installed the older version (hours later) and tried to communicate with the Device over telnet - that works, but I couldn’t flash the device.
Is it possible, that the Mikrocontroller is actualy in a debug-mode? How can I go to the normal state? Is there an opportunity to restore “factory-settings”?
Now I have decided to use an other programmer: [USBProg
This is the logfile which was created by building up an oocd-connection:
Info: usbprog.c:222 usbprog_init(): USB JTAG Interface ready!
Error: jtag.c:1301 jtag_examine_chain(): number of discovered devices in JTAG chain (20) doesn't match configuration (1)
Error: jtag.c:1302 jtag_examine_chain(): check the config file and ensure proper JTAG communication (connections, speed, ...)
Error: jtag.c:1440 jtag_init(): trying to validate configured JTAG chain anyway...
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: embeddedice.c:181 embeddedice_build_reg_cache(): unknown EmbeddedICE version (comms ctrl: 0xfffffff1)
Warning: arm7_9_common.c:734 arm7_9_assert_reset(): srst resets test logic, too
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Warning: arm7_9_common.c:933 arm7_9_halt(): target was already halted
Ok I will change my Bootmode, but it is a little bit difficult, because at the moment my evalboards BOOTEN-Pin is connected to Ground and BOOT0/1 are connected to UART/LED, so I have to solder some things.
What should happen after setting the bootmode to ram?
now I have changed the bootmode to ram (BOOTEN = 1, BOOT1 = 1, BOOT0 = 0) - what should I do at next? I have built up a telnet-connection, but there is a lot of errors:
Flash probe 0 → works!
Flash info 0 → works!
Flash protect 0 0 9 off or Flash protect 0 0 0 off → Controller and promt don’t react anymore
This is the Logfile:
Info: usbprog.c:222 usbprog_init(): USB JTAG Interface ready!
Error: jtag.c:1301 jtag_examine_chain(): number of discovered devices in JTAG chain (20) doesn't match configuration (1)
Error: jtag.c:1302 jtag_examine_chain(): check the config file and ensure proper JTAG communication (connections, speed, ...)
Error: jtag.c:1440 jtag_init(): trying to validate configured JTAG chain anyway...
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: embeddedice.c:181 embeddedice_build_reg_cache(): unknown EmbeddedICE version (comms ctrl: 0xfffffff1)
Warning: arm7_9_common.c:734 arm7_9_assert_reset(): srst resets test logic, too
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Warning: arm7_9_common.c:933 arm7_9_halt(): target was already halted
Info: server.c:67 add_connection(): accepted 'telnet' connection from 0
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm7_9_common.c:563 arm7_9_execute_sys_speed(): timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: fffffff1
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm7_9_common.c:563 arm7_9_execute_sys_speed(): timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: fffffff1
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler(): setting the new JTAG instruction failed, debugging is likely to be broken
What should I try at next? Is it possible that the STR711 is damaged by software (flashing)?!?