From: <Pet...@t-...> - 2019-04-08 10:06:48
|
Hello Paul, I´ve tried the configuration interface ftdi ftdi_vid_pid 0x0403 0x6010 ftdi_layout_init 0x0008 0x000b ftdi_layout_signal nTRST -data 0x0020 -oe 0x0020 ftdi_layout_signal nSRST -data 0x0080 -oe 0x0080 reset_config trst_and_srst and it seems to work: C:\Program Files\GNU ARM Eclipse\OpenOCD\GNU MCU Eclipse\OpenOCD\0.10.0-10-20181 020-0522\bin>openocd -f C:\Users\oehler\workspace\Labor3\interface\thm_arduino.c fg -f C:\Users\oehler\workspace\Labor3\mrt\board\thm_arduino.cfg GNU MCU Eclipse 32-bit Open On-Chip Debugger 0.10.0+dev-00352-gaa6c7e9b (2018-10 -20-02:36) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html WARNING! This file was not tested with real interface, but is assumed to work as this interface uses the same layout as configs that were verified. Please report your experience with this file to openocd-devel mailing list, so it could be marked as working or fixed. trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_de assert_srst Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'. adapter speed: 1000 kHz adapter_nsrst_delay: 100 jtag_ntrst_delay: 100 trst_and_srst separate srst_nogate trst_push_pull srst_open_drain connect_deasse rt_srst cortex_m reset_config sysresetreq Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : clock speed 1000 kHz Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg: 0x23b (ARM Ltd. ), part: 0xba00, ver: 0x3) Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020 (STMicroel ectronics), part: 0x6410, ver: 0x1) Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints Info : Listening on port 3333 for gdb connections Then I´ve tried Eclipse with OpenOCD plugged in, but there I got an error: GNU MCU Eclipse 32-bit Open On-Chip Debugger 0.10.0+dev-00352-gaa6c7e9b (2018-10-20-02:36) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html WARNING! This file was not tested with real interface, but is assumed to work as this interface uses the same layout as configs that were verified. Please report your experience with this file to openocd-devel mailing list, so it could be marked as working or fixed. trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'. adapter speed: 1000 kHz adapter_nsrst_delay: 100 jtag_ntrst_delay: 100 trst_and_srst separate srst_nogate trst_push_pull srst_open_drain connect_deassert_srst cortex_m reset_config sysresetreq Started by GNU ARM Eclipse Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : clock speed 1000 kHz Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x3) Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020 (STMicroelectronics), part: 0x6410, ver: 0x1) Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints Info : Listening on port 3333 for gdb connections Info : accepting 'gdb' connection on tcp/3333 target halted due to debug-request, current mode: Thread xPSR: 0x21000000 pc: 0x08000140 msp: 0x20004fc0 Info : device id = 0x20036410 Info : flash size = 64kbytes Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x3) Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020 (STMicroelectronics), part: 0x6410, ver: 0x1) target halted due to debug-request, current mode: Thread xPSR: 0x21000000 pc: 0x08000140 msp: 0x20004fc0 semihosting is enabled Error: JTAG-DP STICKY ERROR Error: Failed to write memory at 0x00008004 Error: JTAG-DP STICKY ERROR Error: Failed to write memory at 0x00008010 Info : dropped 'gdb' connection Could you please tell me, that OpenOCD and the connection to the board via USB is running fine? Because then I have to look further at Eclipse and expecially my C program. Thanks & best regards, Peter -----Original-Nachricht----- Betreff: Re: [OpenOCD-user] Error: unable to open ftdi device Datum: 2019-04-06T00:47:36+0200 Von: "Paul Fertser" <fer...@gm...> An: "Pet...@t-..." <Pet...@t-...> Hello, On Fri, Apr 05, 2019 at 02:13:42PM +0200, Pet...@t-... wrote: > today I´ve got the schematic of that THM Arduino board. I´ve > appended only the schematic of the USB Interface for you. ftdi_layout_init 0x0008 0x000b ftdi_layout_signal nTRST -data 0x0020 -oe 0x0020 ftdi_layout_signal nSRST -data 0x0080 -oe 0x0080 And probably you might need to use "reset_config trst_and_srst". Or might not, please try both with and without. You might want to join IRC for a more interactive debugging session. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fer...@gm... |