STM32-H103 + ARM-USB-TINY : Can't probe flash

Hi,

I just purchased those items, and after many attempts, I can’t probe the flash.

I use OpenOCD 657 and here is my configuration file :

#daemon configuration
 telnet_port 4444
 gdb_port 3333

 
 #interface
 interface ft2232
 ft2232_device_desc "Olimex OpenOCD JTAG TINY A"
 ft2232_layout jtagkey
 jtag_speed 10

jtag_nsrst_delay 200 
jtag_ntrst_delay 200 


 #use combined on interfaces or targets that can't set TRST/SRST separately
 reset_config trst_and_srst

 
 #jtag scan chain
 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
jtag_device 5 0x1 0x1 0x1e

 
 #target configuration
 daemon_startup reset

 
 #target <type> <startup mode>
 #target cortex_m3 <endianness> <reset mode> <chainpos> <variant>
 target cortex_m3 little reset_halt 0
 run_and_halt_time 0 30

 
# working_area 0 0x20000000 16384 nobackup
working_area 0 0x20000000 0x4000 nobackup 
 
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
 flash bank stm32x 0x08000000 0x00010000 0 0 0

When I run OpenOCD, here is what I get at the end :

Debug:   113 1593 cortex_m3.c:403 cortex_m3_poll(): Exit from reset with dcb_dhcsr 0x30003
Debug:   114 1593 cortex_m3.c:178 cortex_m3_endreset_event(): DCB_DEMCR = 0x01000501
Debug:   115 1593 target.c:1217 target_write_u32(): address: 0xe0002000, value: 0x00000003
Debug:   116 1593 target.c:1217 target_write_u32(): address: 0xe0002008, value: 0x00000000
Debug:   117 1609 target.c:1217 target_write_u32(): address: 0xe000200c, value: 0x00000000
Debug:   118 1609 target.c:1217 target_write_u32(): address: 0xe0002010, value: 0x00000000
Debug:   119 1609 target.c:1217 target_write_u32(): address: 0xe0002014, value: 0x00000000
Debug:   120 1609 target.c:1217 target_write_u32(): address: 0xe0002018, value: 0x00000000
Debug:   121 1609 target.c:1217 target_write_u32(): address: 0xe000201c, value: 0x00000000
Debug:   122 1609 target.c:1217 target_write_u32(): address: 0xe0002020, value: 0x00000000
Debug:   123 1625 target.c:1217 target_write_u32(): address: 0xe0002024, value: 0x00000000
Debug:   124 1625 target.c:1217 target_write_u32(): address: 0xe0001020, value: 0x00000000
Debug:   125 1625 target.c:1217 target_write_u32(): address: 0xe0001024, value: 0x00000000
Debug:   126 1625 target.c:1217 target_write_u32(): address: 0xe0001028, value: 0x00000000
Debug:   127 1625 target.c:1217 target_write_u32(): address: 0xe0001030, value: 0x00000000
Debug:   128 1640 target.c:1217 target_write_u32(): address: 0xe0001034, value: 0x00000000
Debug:   129 1640 target.c:1217 target_write_u32(): address: 0xe0001038, value: 0x00000000
Debug:   130 1640 target.c:1217 target_write_u32(): address: 0xe0001040, value: 0x00000000
Debug:   131 1640 target.c:1217 target_write_u32(): address: 0xe0001044, value: 0x00000000
Debug:   132 1640 target.c:1217 target_write_u32(): address: 0xe0001048, value: 0x00000000
Debug:   133 1640 target.c:1217 target_write_u32(): address: 0xe0001050, value: 0x00000000
Debug:   134 1656 target.c:1217 target_write_u32(): address: 0xe0001054, value: 0x00000000
Debug:   135 1656 target.c:1217 target_write_u32(): address: 0xe0001058, value: 0x00000000
Debug:   136 1656 cortex_m3.c:302 cortex_m3_debug_entry():  
Debug:   137 1671 cortex_m3.c:110 cortex_m3_clear_halt():  NVIC_DFSR 0x0
Debug:   138 1671 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 0  value 0xee5fecb4
Debug:   139 1687 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 1  value 0xdfbffcfe
Debug:   140 1687 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 2  value 0x21a0b1ae
Debug:   141 1703 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 3  value 0xbb1f9923
Debug:   142 1703 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 4  value 0xfedff757
Debug:   143 1718 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 5  value 0x114d9ffc
Debug:   144 1734 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 6  value 0x25322b31
Debug:   145 1734 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 7  value 0x2a60dc61
Debug:   146 1750 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 8  value 0xcb97fffd
Debug:   147 1765 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 9  value 0xff9fff9e
Debug:   148 1765 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 10  value 0xe21676a4
Debug:   149 1765 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 11  value 0xe22a7718
Debug:   150 1781 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 12  value 0xfff3fdfe
Debug:   151 1781 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 13  value 0xffffffdc
Debug:   152 1796 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 14  value 0xfffffff9
Debug:   153 1796 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 15  value 0xfffffffe
Debug:   154 1812 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 16  value 0x1000003
Debug:   155 1828 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 17  value 0xffffffdc
Debug:   156 1828 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 18  value 0x3c610110
Debug:   157 1843 cortex_m3.c:1150 cortex_m3_load_core_reg_u32(): load from special reg 19 value 0x0
Debug:   158 1843 cortex_m3.c:1150 cortex_m3_load_core_reg_u32(): load from special reg 20 value 0x0
Debug:   159 1859 cortex_m3.c:1150 cortex_m3_load_core_reg_u32(): load from special reg 21 value 0x0
Debug:   160 1875 cortex_m3.c:1150 cortex_m3_load_core_reg_u32(): load from special reg 22 value 0x0
Debug:   161 1875 cortex_m3.c:287 cortex_m3_examine_exception_reason(): HardFault SHCSR 0x20000, SR 0x40000000, CFSR 0x1001, AR 0xffffffff
Debug:   162 1875 cortex_m3.c:362 cortex_m3_debug_entry(): entered debug state in core mode: Handler at PC 0xfffffffe, target->state: halted
Debug:   163 1875 target.c:723 target_call_event_callbacks(): target event 0
Debug:   164 1875 target.c:424 target_process_reset(): Polling target
Debug:   165 1890 ft2232.c:253 ft2232_speed(): 86 0a 00

And when I try to probe the flash typing “flash probe 0” in a telnet connection to port 4444, here is what I get :

Info:    166 36500 server.c:78 add_connection(): accepting 'telnet' connection from 0
Debug:   167 43156 command.c:425 command_run_line(): flash probe 0
Debug:   168 43171 target.c:1149 target_read_u32(): address: 0xe0042000, value: 0x20016410
Info:    169 43171 stm32x.c:621 stm32x_probe(): device id = 0x20016410
Debug:   170 43171 cortex_swjdp.c:208 swjdp_transaction_endcheck(): swjdp: CTRL/STAT error 0xf0000021
Error:   171 43171 cortex_swjdp.c:222 swjdp_transaction_endcheck(): SWJ-DP STICKY ERROR
Debug:   172 43171 cortex_swjdp.c:229 swjdp_transaction_endcheck(): swjdp: status 0xf0000001
Error:   173 43187 cortex_swjdp.c:236 swjdp_transaction_endcheck(): dcb_dhcsr 0x30003, nvic_shcsr 0x20000, nvic_cfsr 0x1001, nvic_bfar 0xe000edf8
Debug:   174 43187 target.c:1179 target_read_u16(): address: 0x1ffff7e0 failed
Warning: 175 43187 stm32x.c:633 stm32x_probe(): STM32 flash size failed, probe inaccurate - assuming 128k flash
Info:    176 43187 stm32x.c:645 stm32x_probe(): flash size = 128kbytes

What am I doing wrong ?

I made some other attempts, doing :

  • stm32x unlock 0

  • stm32x mass_erase 0

  • flash write_bank 0 main.bin 0

But it fails on timeout, according to the log :

Debug:   308 181641 command.c:425 command_run_line(): stm32x unlock 0
Debug:   309 181656 target.c:1149 target_read_u32(): address: 0x4002201c, value: 0x03fffffe
Info:    310 181656 stm32x.c:146 stm32x_read_options(): Device Security Bit Set
Debug:   311 181656 target.c:1149 target_read_u32(): address: 0x40022020, value: 0xffffffff
Debug:   312 181656 target.c:1217 target_write_u32(): address: 0x40022004, value: 0x45670123
Debug:   313 181656 target.c:1217 target_write_u32(): address: 0x40022004, value: 0xcdef89ab
Debug:   314 181656 target.c:1217 target_write_u32(): address: 0x40022008, value: 0x45670123
Debug:   315 181656 target.c:1217 target_write_u32(): address: 0x40022008, value: 0xcdef89ab
Debug:   316 181672 target.c:1217 target_write_u32(): address: 0x40022010, value: 0x00000220
Debug:   317 181672 target.c:1217 target_write_u32(): address: 0x40022010, value: 0x00000260
Debug:   318 181672 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000003
Debug:   319 181672 stm32x.c:124 stm32x_wait_status_busy(): status: 0x3
Debug:   320 181688 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000003
Debug:   321 181688 stm32x.c:124 stm32x_wait_status_busy(): status: 0x3
Debug:   322 181703 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000020
Debug:   323 181703 target.c:1217 target_write_u32(): address: 0x40022004, value: 0x45670123
Debug:   324 181703 target.c:1217 target_write_u32(): address: 0x40022004, value: 0xcdef89ab
Debug:   325 181703 target.c:1217 target_write_u32(): address: 0x40022008, value: 0x45670123
Debug:   326 181703 target.c:1217 target_write_u32(): address: 0x40022008, value: 0xcdef89ab
Debug:   327 181703 target.c:1217 target_write_u32(): address: 0x40022010, value: 0x00000210
Debug:   328 181719 target.c:1238 target_write_u16(): address: 0x1ffff802, value: 0x0000ffff
Debug:   329 181719 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000020
Debug:   330 181719 target.c:1238 target_write_u16(): address: 0x1ffff808, value: 0x0000ffff
Debug:   331 181719 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000020
Debug:   332 181719 target.c:1238 target_write_u16(): address: 0x1ffff80a, value: 0x0000ffff
Debug:   333 181735 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000020
Debug:   334 181735 target.c:1238 target_write_u16(): address: 0x1ffff80c, value: 0x0000ffff
Debug:   335 181735 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000020
Debug:   336 181735 target.c:1238 target_write_u16(): address: 0x1ffff80e, value: 0x000000ff
Debug:   337 181750 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000020
Debug:   338 181750 target.c:1238 target_write_u16(): address: 0x1ffff800, value: 0x00005aa5
Debug:   339 181750 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000023
Debug:   340 181750 stm32x.c:124 stm32x_wait_status_busy(): status: 0x23
Debug:   341 181766 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000023
Debug:   342 181766 stm32x.c:124 stm32x_wait_status_busy(): status: 0x23
Debug:   343 181781 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000020
Debug:   344 181781 target.c:1217 target_write_u32(): address: 0x40022010, value: 0x00000080
Debug:   345 192375 command.c:425 command_run_line(): stm32x mass_erase 0
Debug:   346 192375 target.c:1217 target_write_u32(): address: 0x40022004, value: 0x45670123
Debug:   347 192375 target.c:1217 target_write_u32(): address: 0x40022004, value: 0xcdef89ab
Debug:   348 192375 target.c:1217 target_write_u32(): address: 0x40022010, value: 0x00000004
Debug:   349 192391 target.c:1217 target_write_u32(): address: 0x40022010, value: 0x00000044
Debug:   350 192391 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000023
Debug:   351 192391 stm32x.c:124 stm32x_wait_status_busy(): status: 0x23
Debug:   352 192406 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000023
Debug:   353 192406 stm32x.c:124 stm32x_wait_status_busy(): status: 0x23
Debug:   354 192422 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000020
Debug:   355 192422 target.c:1217 target_write_u32(): address: 0x40022010, value: 0x00000080
Debug:   356 203281 command.c:425 command_run_line(): flash write_bank 0 main.bin 0
Debug:   357 203281 configuration.c:87 open_file_from_path(): opened main.bin
Debug:   358 203281 target.c:1217 target_write_u32(): address: 0x40022004, value: 0x45670123
Debug:   359 203281 target.c:1217 target_write_u32(): address: 0x40022004, value: 0xcdef89ab
Debug:   360 203281 target.c:836 target_alloc_working_area(): allocating new working area
Debug:   361 203281 target.c:975 target_write_buffer(): writing buffer of 48 byte at 0x20000000
Debug:   362 203281 target.c:836 target_alloc_working_area(): allocating new working area
Debug:   363 203281 target.c:975 target_write_buffer(): writing buffer of 4052 byte at 0x20000030
Debug:   364 203391 breakpoints.c:95 breakpoint_add(): added software breakpoint at 0x20000026 of length 0x00000002
Debug:   365 203391 armv7m.c:127 armv7m_restore_context():  
Debug:   366 203406 cortex_m3.c:1190 cortex_m3_store_core_reg_u32(): write core reg 15 value 0x20000000
Debug:   367 203406 armv7m.c:236 armv7m_write_core_reg(): write core reg 15 value 0x20000000
Debug:   368 203406 cortex_m3.c:1190 cortex_m3_store_core_reg_u32(): write core reg 3 value 0x3f0178
Debug:   369 203406 armv7m.c:236 armv7m_write_core_reg(): write core reg 3 value 0x3f0178
Debug:   370 203422 cortex_m3.c:1190 cortex_m3_store_core_reg_u32(): write core reg 2 value 0x7ea
Debug:   371 203422 armv7m.c:236 armv7m_write_core_reg(): write core reg 2 value 0x7ea
Debug:   372 203422 cortex_m3.c:1190 cortex_m3_store_core_reg_u32(): write core reg 1 value 0x8000000
Debug:   373 203422 armv7m.c:236 armv7m_write_core_reg(): write core reg 1 value 0x8000000
Debug:   374 203438 cortex_m3.c:1190 cortex_m3_store_core_reg_u32(): write core reg 0 value 0x20000030
Debug:   375 203438 armv7m.c:236 armv7m_write_core_reg(): write core reg 0 value 0x20000030
Debug:   376 203438 target.c:723 target_call_event_callbacks(): target event 4
Debug:   377 203438 cortex_m3.c:615 cortex_m3_resume(): target debug resumed at 0x20000000
Error:   378 234985 armv7m.c:377 armv7m_run_algorithm(): timeout waiting for algorithm to complete, trying to halt target
Debug:   379 234985 cortex_m3.c:451 cortex_m3_halt(): target->state: debug_running
Debug:   380 235000 cortex_m3.c:422 cortex_m3_poll():  
Debug:   381 235000 cortex_m3.c:302 cortex_m3_debug_entry():  
Debug:   382 235000 cortex_m3.c:110 cortex_m3_clear_halt():  NVIC_DFSR 0x1
Debug:   383 235016 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 0  value 0x20000032
Debug:   384 235016 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 1  value 0x8000002
Debug:   385 235031 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 2  value 0x7ea
Debug:   386 235031 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 3  value 0x30
Debug:   387 235047 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 4  value 0x40022010
Debug:   388 235063 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 5  value 0x4002200c
Debug:   389 235063 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 6  value 0x25322b31
Debug:   390 235078 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 7  value 0x2a60dc61
Debug:   391 235078 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 8  value 0xcb97fffd
Debug:   392 235094 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 9  value 0xff9fff9e
Debug:   393 235094 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 10  value 0xe21676a4
Debug:   394 235110 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 11  value 0xe22a7718
Debug:   395 235125 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 12  value 0xfff3fdfe
Debug:   396 235125 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 13  value 0xffffffdc
Debug:   397 235141 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 14  value 0xfffffff9
Debug:   398 235141 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 15  value 0x20000016
Debug:   399 235156 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 16  value 0x41000003
Debug:   400 235156 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 17  value 0xffffffdc
Debug:   401 235172 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 18  value 0x3c610110
Debug:   402 235172 cortex_m3.c:1150 cortex_m3_load_core_reg_u32(): load from special reg 19 value 0x0
Debug:   403 235188 cortex_m3.c:1150 cortex_m3_load_core_reg_u32(): load from special reg 20 value 0x0
Debug:   404 235188 cortex_m3.c:1150 cortex_m3_load_core_reg_u32(): load from special reg 21 value 0x0
Debug:   405 235203 cortex_m3.c:1150 cortex_m3_load_core_reg_u32(): load from special reg 22 value 0x0
Debug:   406 235203 cortex_m3.c:287 cortex_m3_examine_exception_reason(): HardFault SHCSR 0x20000, SR 0x40000000, CFSR 0x1001, AR 0xffffffff
Debug:   407 235203 cortex_m3.c:362 cortex_m3_debug_entry(): entered debug state in core mode: Handler at PC 0x20000016, target->state: halted
Debug:   408 235203 target.c:723 target_call_event_callbacks(): target event 3
Debug:   409 235219 cortex_m3.c:1124 cortex_m3_load_core_reg_u32(): load from core reg 15  value 0x20000016
Debug:   410 235219 armv7m.c:391 armv7m_run_algorithm(): failed algoritm halted at 0x20000016 
Debug:   411 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register control with value 0x00000000
Debug:   412 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register faultmask with value 0x00000000
Debug:   413 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register basepri with value 0x00000000
Debug:   414 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register primask with value 0x00000000
Debug:   415 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register psp with value 0x3c610110
Debug:   416 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register msp with value 0xffffffdc
Debug:   417 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register xPSR with value 0x01000003
Debug:   418 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register pc with value 0xfffffffe
Debug:   419 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register lr with value 0xfffffff9
Debug:   420 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register sp with value 0xffffffdc
Debug:   421 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register r12 with value 0xfff3fdfe
Debug:   422 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register r11 with value 0xe22a7718
Debug:   423 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register r10 with value 0xe21676a4
Debug:   424 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register r9 with value 0xff9fff9e
Debug:   425 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register r8 with value 0xcb97fffd
Debug:   426 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register r7 with value 0x2a60dc61
Debug:   427 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register r6 with value 0x25322b31
Debug:   428 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register r5 with value 0x4002200c
Debug:   429 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register r4 with value 0x40022010
Debug:   430 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register r3 with value 0x00000030
Debug:   431 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register r2 with value 0x000007ea
Debug:   432 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register r1 with value 0x08000002
Debug:   433 235219 armv7m.c:430 armv7m_run_algorithm(): restoring register r0 with value 0x20000032
Error:   434 235219 stm32x.c:482 stm32x_write_block(): error executing stm32x flash write algorithm
Debug:   435 235219 target.c:1217 target_write_u32(): address: 0x40022010, value: 0x00000001
Debug:   436 235219 target.c:1238 target_write_u16(): address: 0x08000000, value: 0x00000800
Debug:   437 235235 target.c:1149 target_read_u32(): address: 0x4002200c, value: 0x00000030
Error:   438 235235 flash.c:103 flash_driver_write(): error writing to flash at address 0x08000000 at offset 0x00000000 (-902)
Debug:   439 235235 command.c:382 find_and_run_command(): Command failed with error code -902

Hello,

have you tried this?

viewtopic.php?t=10392&start=30

Just change the descriptor in config file.

Found it!

My (stupid) mistake was that I used

ft2232_layout jtagkey

instead of

ft2232_layout olimex-jtag

in the configuration file…

Now everything works so far.

Thanks for your help :wink: