Unlimited-Research-Cooperative / Bio-Silicon-Synergetic-Intelligence-System

Bio-Silicon Synergetic Intelligence System
https://discord.gg/bKpF32REAj
Other
10 stars 3 forks source link

FreeEEG32 board flash #17

Open soulsyrup opened 2 months ago

soulsyrup commented 1 month ago

ok so its still not working, the reset pin is connected and i tried another jumper to see if it was just faulty but same output these are the files im editing: openocd_run.sh:

!/bin/sh

docker run -it --user 0:0 --privileged \ -v /dev/bus/usb:/dev/bus/usb \ -v $PWD:/root/makefile \ neuroidss/openocd-ubuntu /bin/sh -c " cd /root/makefile; openocd -d3 -f /root/makefile/cmsis-dap.cfg -f /root/makefile/STM32H743ZI_beta.cfg -c 'adapter speed 100; reset_config srst_only srst_nogate; init; reset halt; program /root/makefile/firmware.bin verify reset exit' "

cmsis-dap.dfg: adapter driver cmsis-dap transport select swd adapter speed 100

STM32H743ZI_beta.cfg: source [find target/stm32h7x.cfg]

reset_config srst_only srst_nogate

adapter speed 500 i also tried different speeds like 1000 and 100 and tried cmsis-dap.dfg: adapter driver cmsis-dap transport select swd adapter speed 100 reset_config srst_only srst_nogate now i get: $ chmod +x openocd_run.sh ./openocd_run.sh Open On-Chip Debugger 0.10.0+dev-01411-g051e80812-dirty (2020-09-29-16:52) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html User : 13 1 options.c:63 configuration_output_handler(): debug_level: 3 User : 14 1 options.c:63 configuration_output_handler(): Debug: 15 1 options.c:187 add_default_dirs(): bindir=/usr/local/bin Debug: 16 1 options.c:188 add_default_dirs(): pkgdatadir=/usr/local/share/openocd Debug: 17 1 options.c:189 add_default_dirs(): exepath=/usr/local/bin Debug: 18 1 options.c:190 add_default_dirs(): bin2data=../share/openocd Debug: 19 1 configuration.c:42 add_script_search_dir(): adding /root/.openocd Debug: 20 1 configuration.c:42 add_script_search_dir(): adding /usr/local/bin/../share/openocd/site Debug: 21 1 configuration.c:42 add_script_search_dir(): adding /usr/local/bin/../share/openocd/scripts Debug: 22 1 configuration.c:97 find_file(): found /root/makefile/cmsis-dap.cfg Debug: 23 1 command.c:146 script_debug(): command - adapter driver cmsis-dap Debug: 25 1 command.c:352 register_command_handler(): registering 'cmsis-dap'... Debug: 26 1 command.c:352 register_command_handler(): registering 'cmsis-dap'... Debug: 27 1 command.c:352 register_command_handler(): registering 'cmsis_dap_vid_pid'... Debug: 28 1 command.c:352 register_command_handler(): registering 'cmsis_dap_serial'... Debug: 29 1 command.c:146 script_debug(): command - transport select swd Debug: 30 1 command.c:352 register_command_handler(): registering 'swd'... Debug: 31 1 command.c:146 script_debug(): command - adapter speed 100 Debug: 33 1 core.c:1822 jtag_config_khz(): handle jtag khz Debug: 34 1 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 35 1 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 36 1 command.c:146 script_debug(): command - reset_config srst_only srst_nogate User : 38 1 options.c:63 configuration_output_handler(): srst_only separate srst_nogate srst_open_drain connect_deassert_srst User : 39 1 options.c:63 configuration_output_handler(): Debug: 40 1 configuration.c:97 find_file(): found /root/makefile/STM32H743ZI_beta.cfg Debug: 41 1 configuration.c:97 find_file(): found /usr/local/bin/../share/openocd/scripts/target/stm32h7x.cfg Debug: 42 1 configuration.c:97 find_file(): found /usr/local/bin/../share/openocd/scripts/target/swj-dp.tcl Debug: 43 1 command.c:146 script_debug(): command - transport select Debug: 44 1 configuration.c:97 find_file(): found /usr/local/bin/../share/openocd/scripts/mem_helper.tcl Debug: 45 1 command.c:146 script_debug(): command - add_usage_text mrw address Debug: 47 1 command.c:1123 help_add_command(): added 'mrw' help text Debug: 48 1 command.c:146 script_debug(): command - add_help_text mrw Returns value of word in memory. Debug: 50 1 command.c:1136 help_add_command(): added 'mrw' help text Debug: 51 1 command.c:146 script_debug(): command - add_usage_text mrh address Debug: 53 1 command.c:1123 help_add_command(): added 'mrh' help text Debug: 54 1 command.c:146 script_debug(): command - add_help_text mrh Returns value of halfword in memory. Debug: 56 1 command.c:1136 help_add_command(): added 'mrh' help text Debug: 57 1 command.c:146 script_debug(): command - add_usage_text mrb address Debug: 59 1 command.c:1123 help_add_command(): added 'mrb' help text Debug: 60 1 command.c:146 script_debug(): command - add_help_text mrb Returns value of byte in memory. Debug: 62 1 command.c:1136 help_add_command(): added 'mrb' help text Debug: 63 1 command.c:146 script_debug(): command - add_usage_text mmw address setbits clearbits Debug: 65 1 command.c:1123 help_add_command(): added 'mmw' help text Debug: 66 1 command.c:146 script_debug(): command - add_help_text mmw Modify word in memory. new_val = (old_val & ~clearbits) | setbits; Debug: 68 1 command.c:1136 help_add_command(): added 'mmw' help text Debug: 69 1 command.c:146 script_debug(): command - transport select Debug: 70 1 command.c:146 script_debug(): command - transport select Debug: 71 1 command.c:146 script_debug(): command - transport select Debug: 72 1 command.c:146 script_debug(): command - swd newdap stm32h7x cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x6ba02477 Debug: 73 1 tcl.c:567 jim_newtap_cmd(): Creating New Tap, Chip: stm32h7x, Tap: cpu, Dotted: stm32h7x.cpu, 8 params Debug: 74 1 core.c:1488 jtag_tap_init(): Created Tap: stm32h7x.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0 Debug: 75 1 command.c:146 script_debug(): command - dap create stm32h7x.dap -chain-position stm32h7x.cpu Debug: 76 1 command.c:352 register_command_handler(): registering 'stm32h7x.dap'... Debug: 77 1 command.c:352 register_command_handler(): registering 'stm32h7x.dap'... Debug: 78 1 command.c:352 register_command_handler(): registering 'stm32h7x.dap'... Debug: 79 1 command.c:352 register_command_handler(): registering 'stm32h7x.dap'... Debug: 80 1 command.c:352 register_command_handler(): registering 'stm32h7x.dap'... Debug: 81 1 command.c:352 register_command_handler(): registering 'stm32h7x.dap'... Debug: 82 1 command.c:352 register_command_handler(): registering 'stm32h7x.dap'... Debug: 83 1 command.c:352 register_command_handler(): registering 'stm32h7x.dap'... Debug: 84 1 command.c:352 register_command_handler(): registering 'stm32h7x.dap'... Debug: 85 1 command.c:146 script_debug(): command - transport select Debug: 86 1 command.c:146 script_debug(): command - transport select Debug: 87 1 command.c:146 script_debug(): command - target create stm32h7x.ap2 mem_ap -dap stm32h7x.dap -ap-num 2 Debug: 88 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 89 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 90 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 91 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 92 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 93 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 94 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 95 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 96 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 97 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 98 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 99 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 100 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 101 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 102 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 103 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 104 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 105 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 106 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 107 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 108 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 109 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 110 1 command.c:352 register_command_handler(): registering 'stm32h7x.ap2'... Debug: 111 1 command.c:146 script_debug(): command - target create stm32h7x.cpu0 cortex_m -endian little -dap stm32h7x.dap -ap-num 0 Debug: 112 1 command.c:352 register_command_handler(): registering 'arm'... Debug: 113 1 command.c:352 register_command_handler(): registering 'arm'... Debug: 114 1 command.c:352 register_command_handler(): registering 'arm'... Debug: 115 1 command.c:352 register_command_handler(): registering 'arm'... Debug: 116 1 command.c:352 register_command_handler(): registering 'arm'... Debug: 117 1 command.c:352 register_command_handler(): registering 'arm'... Debug: 118 1 command.c:352 register_command_handler(): registering 'arm'... Debug: 119 1 command.c:352 register_command_handler(): registering 'arm'... Debug: 120 1 command.c:352 register_command_handler(): registering 'arm'... Debug: 121 1 command.c:352 register_command_handler(): registering 'tpiu'... Debug: 122 1 command.c:352 register_command_handler(): registering 'itm'... Debug: 123 1 command.c:352 register_command_handler(): registering 'itm'... Debug: 124 1 command.c:352 register_command_handler(): registering 'cortex_m'... Debug: 125 1 command.c:352 register_command_handler(): registering 'cortex_m'... Debug: 126 1 command.c:352 register_command_handler(): registering 'cortex_m'... Debug: 127 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 128 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 129 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 130 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 131 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 132 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 133 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 134 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 135 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 136 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 137 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 138 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 139 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 140 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 141 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 142 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 143 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 144 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 145 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 146 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 147 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 148 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 149 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 150 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 151 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 152 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 153 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 154 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 155 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 156 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 157 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 158 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 159 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 160 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 161 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 162 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 163 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 164 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 165 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 166 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 167 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 168 2 command.c:352 register_command_handler(): registering 'stm32h7x.cpu0'... Debug: 169 2 command.c:146 script_debug(): command - stm32h7x.cpu0 configure -work-area-phys 0x20000000 -work-area-size 0x10000 -work-area-backup 0 Debug: 170 2 target.c:1991 target_free_all_working_areas_restore(): freeing all working areas Debug: 171 2 target.c:1991 target_free_all_working_areas_restore(): freeing all working areas Debug: 172 2 target.c:1991 target_free_all_working_areas_restore(): freeing all working areas Debug: 173 2 command.c:146 script_debug(): command - flash bank stm32h7x.bank1.cpu0 stm32h7x 0x08000000 0 0 0 stm32h7x.cpu0 Debug: 175 2 command.c:352 register_command_handler(): registering 'stm32h7x'... Debug: 176 2 command.c:352 register_command_handler(): registering 'stm32h7x'... Debug: 177 2 command.c:352 register_command_handler(): registering 'stm32h7x'... Debug: 178 2 command.c:352 register_command_handler(): registering 'stm32h7x'... Debug: 179 2 command.c:352 register_command_handler(): registering 'stm32h7x'... Debug: 180 2 tcl.c:1258 handle_flash_bank_command(): 'stm32h7x' driver usage field missing Debug: 181 2 command.c:146 script_debug(): command - targets stm32h7x.cpu0 Debug: 183 2 command.c:146 script_debug(): command - adapter speed 1800 Debug: 185 2 core.c:1822 jtag_config_khz(): handle jtag khz Debug: 186 2 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 187 2 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 188 2 command.c:146 script_debug(): command - adapter srst delay 100 Debug: 190 2 command.c:146 script_debug(): command - transport select Debug: 191 2 command.c:146 script_debug(): command - reset_config srst_only srst_nogate Debug: 193 2 command.c:146 script_debug(): command - transport select Debug: 194 2 command.c:146 script_debug(): command - stm32h7x.cpu0 cortex_m reset_config sysresetreq Debug: 196 2 command.c:146 script_debug(): command - stm32h7x.dap apcsw 0x08000000 0x08000000 Debug: 198 2 command.c:146 script_debug(): command - stm32h7x.cpu0 configure -event examine-end

Enable D3 and D1 DBG clocks

    # DBGMCU_CR |= D3DBGCKEN | D1DBGCKEN
    stm32h7x_dbgmcu_mmw 0x004 0x00600000 0

    # Enable debug during low power modes (uses more power)
    # DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP in D3, D2 & D1 Domains
    stm32h7x_dbgmcu_mmw 0x004 0x000001BF 0

    # Stop watchdog counters during halt
    # DBGMCU_APB3FZ1 |= WWDG1
    stm32h7x_dbgmcu_mmw 0x034 0x00000040 0
    # DBGMCU_APB1LFZ1 |= WWDG2
    stm32h7x_dbgmcu_mmw 0x03C 0x00000800 0
    # DBGMCU_APB4FZ1 |= WDGLSD1 | WDGLSD2
    stm32h7x_dbgmcu_mmw 0x054 0x000C0000 0

Debug: 199 2 command.c:146 script_debug(): command - stm32h7x.cpu0 configure -event trace-config

Set TRACECLKEN; TRACE_MODE is set to async; when using sync

    # change this value accordingly to configure trace pins
    # assignment
    stm32h7x_dbgmcu_mmw 0x004 0x00100000 0

Debug: 200 2 command.c:146 script_debug(): command - stm32h7x.cpu0 configure -event reset-init

Clock after reset is HSI at 64 MHz, no need of PLL

    adapter speed 4000

Debug: 201 2 command.c:146 script_debug(): command - reset_config srst_only srst_nogate Debug: 203 2 command.c:146 script_debug(): command - adapter speed 500 Debug: 205 2 core.c:1822 jtag_config_khz(): handle jtag khz Debug: 206 2 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 207 2 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value User : 208 2 options.c:63 configuration_output_handler(): adapter speed: 500 kHz User : 209 2 options.c:63 configuration_output_handler(): Debug: 210 2 command.c:146 script_debug(): command - adapter speed 100 Debug: 212 2 core.c:1822 jtag_config_khz(): handle jtag khz Debug: 213 2 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 214 2 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 215 2 command.c:146 script_debug(): command - reset_config srst_only srst_nogate Debug: 217 2 command.c:146 script_debug(): command - init Debug: 219 2 command.c:146 script_debug(): command - target init Debug: 221 2 command.c:146 script_debug(): command - target names Debug: 222 2 command.c:146 script_debug(): command - stm32h7x.ap2 cget -event gdb-flash-erase-start Debug: 223 2 command.c:146 script_debug(): command - stm32h7x.ap2 configure -event gdb-flash-erase-start reset init Debug: 224 2 command.c:146 script_debug(): command - stm32h7x.ap2 cget -event gdb-flash-write-end Debug: 225 2 command.c:146 script_debug(): command - stm32h7x.ap2 configure -event gdb-flash-write-end reset halt Debug: 226 2 command.c:146 script_debug(): command - stm32h7x.ap2 cget -event gdb-attach Debug: 227 2 command.c:146 script_debug(): command - stm32h7x.ap2 configure -event gdb-attach halt 1000 Debug: 228 2 command.c:146 script_debug(): command - stm32h7x.cpu0 cget -event gdb-flash-erase-start Debug: 229 2 command.c:146 script_debug(): command - stm32h7x.cpu0 configure -event gdb-flash-erase-start reset init Debug: 230 2 command.c:146 script_debug(): command - stm32h7x.cpu0 cget -event gdb-flash-write-end Debug: 231 2 command.c:146 script_debug(): command - stm32h7x.cpu0 configure -event gdb-flash-write-end reset halt Debug: 232 2 command.c:146 script_debug(): command - stm32h7x.cpu0 cget -event gdb-attach Debug: 233 2 command.c:146 script_debug(): command - stm32h7x.cpu0 configure -event gdb-attach halt 1000 Debug: 234 2 target.c:1458 handle_target_init_command(): Initializing targets... Debug: 235 2 mem_ap.c:63 mem_ap_init_target(): mem_ap_init_target Debug: 236 2 semihosting_common.c:97 semihosting_common_init():
Debug: 237 2 command.c:352 register_command_handler(): registering 'target_request'... Debug: 238 2 command.c:352 register_command_handler(): registering 'trace'... Debug: 239 2 command.c:352 register_command_handler(): registering 'trace'... Debug: 240 2 command.c:352 register_command_handler(): registering 'fast_load_image'... Debug: 241 2 command.c:352 register_command_handler(): registering 'fast_load'... Debug: 242 2 command.c:352 register_command_handler(): registering 'profile'... Debug: 243 2 command.c:352 register_command_handler(): registering 'virt2phys'... Debug: 244 2 command.c:352 register_command_handler(): registering 'reg'... Debug: 245 2 command.c:352 register_command_handler(): registering 'poll'... Debug: 246 2 command.c:352 register_command_handler(): registering 'wait_halt'... Debug: 247 2 command.c:352 register_command_handler(): registering 'halt'... Debug: 248 2 command.c:352 register_command_handler(): registering 'resume'... Debug: 249 2 command.c:352 register_command_handler(): registering 'reset'... Debug: 250 2 command.c:352 register_command_handler(): registering 'soft_reset_halt'... Debug: 251 2 command.c:352 register_command_handler(): registering 'step'... Debug: 252 2 command.c:352 register_command_handler(): registering 'mdd'... Debug: 253 2 command.c:352 register_command_handler(): registering 'mdw'... Debug: 254 2 command.c:352 register_command_handler(): registering 'mdh'... Debug: 255 2 command.c:352 register_command_handler(): registering 'mdb'... Debug: 256 2 command.c:352 register_command_handler(): registering 'mwd'... Debug: 257 2 command.c:352 register_command_handler(): registering 'mww'... Debug: 258 2 command.c:352 register_command_handler(): registering 'mwh'... Debug: 259 2 command.c:352 register_command_handler(): registering 'mwb'... Debug: 260 2 command.c:352 register_command_handler(): registering 'bp'... Debug: 261 2 command.c:352 register_command_handler(): registering 'rbp'... Debug: 262 2 command.c:352 register_command_handler(): registering 'wp'... Debug: 263 2 command.c:352 register_command_handler(): registering 'rwp'... Debug: 264 2 command.c:352 register_command_handler(): registering 'load_image'... Debug: 265 2 command.c:352 register_command_handler(): registering 'dump_image'... Debug: 266 2 command.c:352 register_command_handler(): registering 'verify_image_checksum'... Debug: 267 2 command.c:352 register_command_handler(): registering 'verify_image'... Debug: 268 2 command.c:352 register_command_handler(): registering 'test_image'... Debug: 269 2 command.c:352 register_command_handler(): registering 'reset_nag'... Debug: 270 2 command.c:352 register_command_handler(): registering 'ps'... Debug: 271 2 command.c:352 register_command_handler(): registering 'test_mem_access'... Info : 272 66 cmsis_dap_usb.c:870 cmsis_dap_get_caps_info(): CMSIS-DAP: SWD Supported Info : 273 66 cmsis_dap_usb.c:872 cmsis_dap_get_caps_info(): CMSIS-DAP: JTAG Supported Info : 274 68 cmsis_dap_usb.c:850 cmsis_dap_get_version_info(): CMSIS-DAP: FW Version = 1.0 Info : 275 72 cmsis_dap_usb.c:963 cmsis_dap_swd_open(): CMSIS-DAP: Interface Initialised (SWD) Debug: 276 74 cmsis_dap_usb.c:1035 cmsis_dap_init(): CMSIS-DAP: Packet Size = 64 Debug: 277 76 cmsis_dap_usb.c:1048 cmsis_dap_init(): CMSIS-DAP: Packet Count = 64 Debug: 278 76 cmsis_dap_usb.c:1051 cmsis_dap_init(): Allocating FIFO for 3 pending HID requests Info : 279 78 cmsis_dap_usb.c:891 cmsis_dap_get_status(): SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 0 Info : 280 88 cmsis_dap_usb.c:1105 cmsis_dap_init(): CMSIS-DAP: Interface ready Debug: 281 88 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 282 88 core.c:1789 adapter_khz_to_speed(): have interface set up Debug: 283 90 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 284 90 core.c:1789 adapter_khz_to_speed(): have interface set up Info : 285 90 core.c:1565 adapter_init(): clock speed 100 kHz Debug: 286 90 openocd.c:141 handle_init_command(): Debug Adapter init complete Debug: 287 90 command.c:146 script_debug(): command - transport init Debug: 289 90 transport.c:239 handle_transport_init(): handle_transport_init Debug: 290 90 command.c:146 script_debug(): command - dap init Debug: 292 90 arm_dap.c:106 dap_init_all(): Initializing all DAPs ... Debug: 293 94 cmsis_dap_usb.c:925 cmsis_dap_swd_switch_seq(): JTAG-to-SWD Debug: 294 105 cmsis_dap_usb.c:729 cmsis_dap_swd_read_process(): SWD ack not OK @ 0 JUNK Debug: 295 105 command.c:627 run_command(): Command 'dap init' failed with error code -4 User : 296 105 command.c:692 command_run_line(): Debug: 297 105 command.c:627 run_command(): Command 'init' failed with error code -4 User : 298 105 command.c:692 command_run_line(): Debug: 299 105 mem_ap.c:70 mem_ap_deinit_target(): mem_ap_deinit_target Debug: 300 105 target.c:1991 target_free_all_working_areas_restore(): freeing all working areas Debug: 301 105 target.c:1991 target_free_all_working_areas_restore(): freeing all working areas Debug: 302 109 cmsis_dap_usb.c:930 cmsis_dap_swd_switch_seq(): SWD-to-JTAG