gentoo mtbg # telnet localhost 4444 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Open On-Chip Debugger > reset init target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc > flash write_image erase unlock test.hex auto erase enabled auto unlock enabled device id = 0x10016413 flash size = 8192kbytes Device Security Bit Set stm32x device protected failed erasing sectors 0 to 0 in procedure 'flash' > stm32f2x unlock 0 Device Security Bit Set stm32f2x unlocked. INFO: a reset or power cycle is required for the new settings to take effect. > reset init target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc > flash write_image erase unlock test.hex auto erase enabled auto unlock enabled stm32x device protected failed erasing sectors 0 to 0 in procedure 'flash' > stm32f2x unlock 0 Device Security Bit Set stm32f2x unlocked. INFO: a reset or power cycle is required for the new settings to take effect. jtag status contains invalid mode value - communication failure Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in 100ms jtag status contains invalid mode value - communication failure Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in 300ms jtag status contains invalid mode value - communication failure Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in 700ms jtag status contains invalid mode value - communication failure Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in 1500ms jtag status contains invalid mode value - communication failure Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in 3100ms jtag status contains invalid mode value - communication failure Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in 6300ms > poll background polling: on TAP: stm32f4x.cpu (enabled) jtag status contains invalid mode value - communication failure in procedure 'poll' jtag status contains invalid mode value - communication failure Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in 6300ms jtag status contains invalid mode value - communication failure Polling target stm32f4x.cpu failed, GDB will be halted. Polling again in 6300ms > reset init timed out while waiting for target halted TARGET: stm32f4x.cpu - Not halted in procedure 'reset' > reset init target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc Polling target stm32f4x.cpu succeeded again > flash write_image erase unlock test.hex auto erase enabled auto unlock enabled stm32x device protected failed erasing sectors 0 to 0 in procedure 'flash' > stm32f2x unlock 0 Device Security Bit Set stm32f2x unlocked. INFO: a reset or power cycle is required for the new settings to take effect. > stm32f2x unlock 0 Device Security Bit Set stm32f2x unlocked. INFO: a reset or power cycle is required for the new settings to take effect. > stm32f2x unlock 0 Device Security Bit Set stm32f2x unlocked. INFO: a reset or power cycle is required for the new settings to take effect. > reset init target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc > flash info flash info bank_id in procedure 'flash' > flash info 0 #0 : stm32f2x at 0x08000000, size 0x00800000, buswidth 0, chipwidth 0 # 0: 0x00000000 (0x4000 16kB) protected # 1: 0x00004000 (0x4000 16kB) protected # 2: 0x00008000 (0x4000 16kB) protected # 3: 0x0000c000 (0x4000 16kB) protected # 4: 0x00010000 (0x10000 64kB) protected # 5: 0x00020000 (0x20000 128kB) protected # 6: 0x00040000 (0x20000 128kB) protected # 7: 0x00060000 (0x20000 128kB) protected # 8: 0x00080000 (0x20000 128kB) protected # 9: 0x000a0000 (0x20000 128kB) protected # 10: 0x000c0000 (0x20000 128kB) protected # 11: 0x000e0000 (0x20000 128kB) protected # 12: 0x00100000 (0x4000 16kB) protected # 13: 0x00104000 (0x4000 16kB) protected # 14: 0x00108000 (0x4000 16kB) protected # 15: 0x0010c000 (0x4000 16kB) protected # 16: 0x00110000 (0x10000 64kB) protected # 17: 0x00120000 (0x20000 128kB) protected # 18: 0x00140000 (0x20000 128kB) protected # 19: 0x00160000 (0x20000 128kB) protected # 20: 0x00180000 (0x20000 128kB) not protected # 21: 0x001a0000 (0x20000 128kB) protected # 22: 0x001c0000 (0x20000 128kB) protected # 23: 0x001e0000 (0x20000 128kB) protected # 24: 0x00200000 (0x20000 128kB) protected # 25: 0x00220000 (0x20000 128kB) protected # 26: 0x00240000 (0x20000 128kB) protected # 27: 0x00260000 (0x20000 128kB) protected # 28: 0x00280000 (0x20000 128kB) protected # 29: 0x002a0000 (0x20000 128kB) protected # 30: 0x002c0000 (0x20000 128kB) protected # 31: 0x002e0000 (0x20000 128kB) protected # 32: 0x00300000 (0x20000 128kB) protected # 33: 0x00320000 (0x20000 128kB) protected # 34: 0x00340000 (0x20000 128kB) protected # 35: 0x00360000 (0x20000 128kB) protected # 36: 0x00380000 (0x20000 128kB) protected # 37: 0x003a0000 (0x20000 128kB) protected # 38: 0x003c0000 (0x20000 128kB) protected # 39: 0x003e0000 (0x20000 128kB) protected # 40: 0x00400000 (0x20000 128kB) protected # 41: 0x00420000 (0x20000 128kB) protected # 42: 0x00440000 (0x20000 128kB) protected # 43: 0x00460000 (0x20000 128kB) protected # 44: 0x00480000 (0x20000 128kB) protected # 45: 0x004a0000 (0x20000 128kB) protected # 46: 0x004c0000 (0x20000 128kB) protected # 47: 0x004e0000 (0x20000 128kB) protected # 48: 0x00500000 (0x20000 128kB) protected # 49: 0x00520000 (0x20000 128kB) protected # 50: 0x00540000 (0x20000 128kB) protected # 51: 0x00560000 (0x20000 128kB) protected # 52: 0x00580000 (0x20000 128kB) not protected # 53: 0x005a0000 (0x20000 128kB) protected # 54: 0x005c0000 (0x20000 128kB) protected # 55: 0x005e0000 (0x20000 128kB) protected # 56: 0x00600000 (0x20000 128kB) protected # 57: 0x00620000 (0x20000 128kB) protected # 58: 0x00640000 (0x20000 128kB) protected # 59: 0x00660000 (0x20000 128kB) protected # 60: 0x00680000 (0x20000 128kB) protected # 61: 0x006a0000 (0x20000 128kB) protected # 62: 0x006c0000 (0x20000 128kB) protected # 63: 0x006e0000 (0x20000 128kB) protected # 64: 0x00700000 (0x20000 128kB) protected # 65: 0x00720000 (0x20000 128kB) protected # 66: 0x00740000 (0x20000 128kB) protected # 67: 0x00760000 (0x20000 128kB) protected # 68: 0x00780000 (0x20000 128kB) protected # 69: 0x007a0000 (0x20000 128kB) protected # 70: 0x007c0000 (0x20000 128kB) protected # 71: 0x007e0000 (0x20000 128kB) protected STM32F4xx - Rev: Z > exit Connection closed by foreign host. gentoo mtbg #