Page 1 of 1

NUCLEO-H743ZI ChibiOS Studio and debug  Topic is solved

Posted: Tue May 07, 2019 10:11 pm
by sdelisle
Dear,

I am using NUCLEO-H743ZI and ChibiOS Studio for testing purpose, i follow the tutorial https://www.playembedded.org/blog/devel ... ibistudio/ for compiling, starting OpenOCD and debugging:

OpenOCD is started properly with the followin message:

"Open On-Chip Debugger 0.10.0+dev-00746-g8f518d359 (2019-03-14-17:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1800 kHz
adapter_nsrst_delay: 100
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 : STLINK V2J29M18 (API v2) VID:PID 0483:374B
Info : Target voltage: 3.255900
Info : stm32h7x.cpu: hardware has 8 breakpoints, 4 watchpoints
Info : Listening on port 3333 for gdb connections
"
But when launching debug i have got the following error:

"
symbol-file C:\\ChibiStudio\\chibios191\\demos\\STM32\\RT-STM32H743I-NUCLEO144\\build\\ch.elf
Reading symbols from C:\ChibiStudio\chibios191\demos\STM32\RT-STM32H743I-NUCLEO144\build\ch.elf...done.
set remotetimeout 20
monitor reset init
"monitor" command not supported by this target.
monitor sleep 50
"monitor" command not supported by this target.
load C:\\ChibiStudio\\chibios191\\demos\\STM32\\RT-STM32H743I-NUCLEO144\\build\\ch.elf
You can't do that when your target is `None'
tbreak main
Cannot access memory at address 0x8001154
continue
The program is not being run.
"
Any idea how to solve this default ?

Best regards

Re: NUCLEO-H743ZI ChibiOS Studio and debug

Posted: Wed May 08, 2019 7:40 am
by Giovanni
What config file are you passing to OpenOCD?

Giovanni

Re: NUCLEO-H743ZI ChibiOS Studio and debug

Posted: Wed May 08, 2019 7:55 am
by sdelisle
Dear,

When launching Open OCD on STLink i select "stm32h7x.cfg" configuration file

Regards
Sylvain Delisle

Re: NUCLEO-H743ZI ChibiOS Studio and debug

Posted: Wed May 08, 2019 8:02 am
by Giovanni
Hi,

Try selecting a script under the /boards directory instead, the one for nucleo H7.

Giovanni

Re: NUCLEO-H743ZI ChibiOS Studio and debug

Posted: Wed May 08, 2019 5:14 pm
by sdelisle
Giovanni,

Sorry for this stupid issue, I found the root cause of the issue, the debug port was not properly configured to be able to communicate with OpenOCD.

Best regards
Sylvain Delisle