Hello Tarek,

Thanks. I have the FTDI based adapter. The binary seems to work fine.

I just did a simple connection test right now with the STM32H743I-Eval. It
is a complicated board and I do not know how to flash the full demo
binary (195MB file with external flash loaders).

https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/STM32H743I-EVAL/Demonstrations
https://www.st.com/resource/en/compiled_demos/stm32h743i-eval_demo.zip

It uses the below command and I do not know how to translate it to
openocd scripts.
STM32_Programmer_CLI.exe -c port=SWD index=%BOARD_ID% reset=HWrst -el
%STM32_EXT_FLASH_LOADER% -e all -d %HEX_FILE% -HardRst

Anyway, the basic connection is okay.

C:\work\libusb\openocd_test\github_action_libftdi\bin> cat
.\stm32h7x3i_eval_ftdi.cfg
# STM32H7[4|5]3I-EVAL: this is for the H7 eval boards.
# This is an ST EVAL-H743XI board with single STM32H743XI chip.
# http://www.st.com/en/evaluation-tools/stm32h743i-eval.html
# This is an ST EVAL-H753XI board with single STM32H753XI chip.
# http://www.st.com/en/evaluation-tools/stm32h753i-eval.html

#source [find interface/stlink.cfg]
#transport select hla_swd

source [find interface/ftdi/jtagkey2.cfg]
#transport select jtag

source [find target/stm32h7x_dual_bank.cfg]

reset_config srst_only

C:\work\libusb\openocd_test\github_action_libftdi\bin> .\openocd.exe
-f .\stm32h7x3i_eval_ftdi.cfg
Open On-Chip Debugger 0.11.0+dev-00699-g16f0cca75 (2022-05-30-13:53)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To
override use 'transport select <transport>'.
srst_only separate srst_nogate srst_open_drain connect_deassert_srst

Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1800 kHz
Info : JTAG tap: stm32h7x.cpu tap/device found: 0x6ba00477 (mfg: 0x23b
(ARM Ltd), part: 0xba00, ver: 0x6)
Info : JTAG tap: stm32h7x.bs tap/device found: 0x06450041 (mfg: 0x020
(STMicroelectronics), part: 0x6450, ver: 0x0)
Info : [stm32h7x.cpu0] Cortex-M7 r1p1 processor detected
Info : [stm32h7x.cpu0] target has 8 breakpoints, 4 watchpoints
Info : [stm32h7x.cpu0] external reset detected
Info : gdb port disabled
Info : starting gdb server for stm32h7x.cpu0 on 3333
Info : Listening on port 3333 for gdb connections
shutdown command invoked


On Tue, May 31, 2022 at 1:14 AM Tarek BOCHKATI <tarekbouchk...@gmail.com> wrote:
>
> Xiaofan, do you have any FTDI based adapter to test if the generated 
> openocd.exe binary works fine?
> I have checked with ST-Link CMSIS-DAP and it was OK
>
> (you can download the binary from 
> https://github.com/tarek-bochkati/openocd/actions/runs/2409477180 )
>

Reply via email to