From: Liviu I. <il...@li...> - 2024-06-20 09:13:01
|
I did some further investigations, and in the end the board was recognised by openOCD. However something is weird, the board works only when connected to a USB3 port, and sometimes it fails the first attempt and requires a retry. I also installed the latest STM32CubeProgrammer and updated to the latest firmware (the on-board programmer is a STLINK-V3). The connection looks like this: ``` 1: Test command: /Users/ilg/MyProjects/micro-os-plus.github/micro-os-plus-iii/micro-os-plus-iii.git/tests/build/nucleo-h743zi-cmake-debug/xpacks/.bin/openocd "-c" "gdb_port disabled" "-c" "tcl_port disabled" "-c" "telnet_port disabled" "-f" "interface/stlink-dap.cfg" "-f" "target/stm32h7x.cfg" "-c" "program rtos-apis-test.elf verify" "-c" "arm semihosting enable" "-c" "arm semihosting_cmdline rtos-apis-test" "-c" "reset" 1: Working Directory: /Users/ilg/MyProjects/micro-os-plus.github/micro-os-plus-iii/micro-os-plus-iii.git/tests/build/nucleo-h743zi-cmake-debug/platform-bin 1: Test timeout computed to be: 10000000 1: xPack Open On-Chip Debugger 0.12.0+dev-01621-gd4607c225-dirty (2024-06-18-23:02) 1: Licensed under GNU GPL v2 1: For bug reports, read 1: http://openocd.org/doc/doxygen/bugs.html 1: Info : auto-selecting first available session transport "dapdirect_swd". To override use 'transport select <transport>'. 1: Info : STLINK V3J13M4 (API v3) VID:PID 0483:374E 1: Info : Target voltage: 3.284881 1: Info : Unable to match requested speed 1800 kHz, using 1000 kHz 1: Info : Unable to match requested speed 1800 kHz, using 1000 kHz 1: Info : clock speed 1000 kHz 1: Info : stlink_dap_op_connect(connect) 1: Info : SWD DPIDR 0x6ba02477 1: Info : [stm32h7x.ap2] Examination succeed 1: Info : [stm32h7x.cpu0] Cortex-M7 r1p1 processor detected 1: Warn : [stm32h7x.cpu0] Erratum 3092511: Cortex-M7 can halt in an incorrect address when breakpoint and exception occurs simultaneously 1: Info : [stm32h7x.cpu0] target has 8 breakpoints, 4 watchpoints 1: Info : [stm32h7x.cpu0] Examination succeed 1: Info : gdb port disabled 1: Info : gdb port disabled 1: [stm32h7x.cpu0] halted due to breakpoint, current mode: Thread 1: xPSR: 0x01000000 pc: 0x08000298 msp: 0x20020000 1: Info : Unable to match requested speed 4000 kHz, using 3300 kHz 1: Info : Unable to match requested speed 4000 kHz, using 3300 kHz 1: ** Programming Started ** 1: Info : Device: STM32H74x/75x 1: Info : flash size probed value 2048k 1: Info : STM32H7 flash has dual banks 1: Info : Bank (0) size is 1024 kb, base address is 0x08000000 1: Info : Padding image section 1 at 0x08051f54 with 12 bytes (bank write end alignment) 1: Warn : Adding extra erase range, 0x08051f60 .. 0x0805ffff 1: ** Programming Finished ** 1: ** Verify Started ** 1: ** Verified OK ** 1: semihosting is enabled 1: semihosting command line is [rtos-apis-test] 1: Info : tcl server disabled 1: Info : telnet server disabled 1: 1: Hardware initialised ... ``` |