- This topic has 3 replies, 2 voices, and was last updated 7 years, 8 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › Mastering STM32 book support forum › Multiple board debugging configuration
Tagged: debug, hla_serial, openocd
Dear Mr Noviello,
I am trying to debug 2 ST32F072 disco boards as your guide at chapter 21.6.
While debugging 1 board is okay, but when I try to add argument “-c hla_serial <serial>” it fails. The log says that:
Open On-Chip Debugger 0.10.0-dev-00274-g2ee83e0 (2017-01-12-17:09)
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: 1000 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_assert_srst
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Error: open failed
in procedure ‘init’
in procedure ‘ocd_bouncer’
PS: I am using eclipse SW4STM32 and trying to use the pre-installed openocd plugin of this.
Could please give me some hints to overcome this problem, many thanks.
I had the same problem some days ago. The error is due to the fact that the OpenOCD doesn’t accept the hla_serial in ASCII characters. The serial number must be specified in hexadecimal format. I summarized how I resolved the issue in the following post:
Many thanks @Ale77, your post helps me a lot.
PS: A workaround for this case, I found that I can use multiple STLink dongle by using virtual machines without any special configuration :))
@anhdung88 I’m happy you have resolved! 🙂