Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


Fail to launch on STM32F4 Bleucoin

Hi,
I’m new on STM32.
My system works AC6 System Workbench for STM32, on win10 64bit.
My setup is composed of a ST Bluecoin card with STM32F446 MCU, linked with a Nucleo board.
https://www.st.com/en/evaluation-tools/steval-bcnkt01v1.htmlQuestion

I’m having an issue on my Debug configuration :
After creating an “AC6 STM32 Debugging”.
I configured the debug as mentionned in the OpenSTM32 guide :
http://www.openstm32.org/Getting%2Bstarted%2Bwith%2BSystem%2BWorkbench%2Bfor%2BSTM32Question
Then, connection setup : SWD 1.8MHz
And STLinkV2 installed

The Console reports :
Open On-Chip Debugger 0.10.0-dev-00010-g96aab7b (2018-07-13-06:51)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter_nsrst_delay: 100
adapter speed: 1800 kHz
Info : clock speed 1800 kHz
Info : STLINK v2 JTAG v29 API v2 VID 0x0483 PID 0x374B
Info : Target voltage: 3.256353
Info : STM32F446MEYx.cpu: hardware has 6 breakpoints, 4 watchpoints
and that’s fine, as it seems.

However, the system cannot launch, reporting :
“Problem occured”
And the details :
Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:7184

Error message from debugger back end:
Bogus trace status reply from target: timeout
Bogus trace status reply from target: timeout

I’ve go around this forum, not finding anything. Instead of here, but without solution : http://www.openstm32.org/tiki-view_forum_thread.php?threadId=3805Question

David

Hi,

Did you connect the STLink reset output to the F4 reset pin ?

If yes, you can use the connect under reset mode.

If no, use the Software system reset mode.

Then, if still not working, add -d in debug openocd options to get a more verbose output.

Rgds,
Laurent


Hi Laurent,
Thanks for your rapid reply.

The F4 Reset pin is indeed connected to the STLink reset output (pin5 of the SWD port).
(For information, it’s actually an NRST contact on both the STlink SWD port and on the Bleucoin board.)
With “Mode Setup” placed on “Hardware Reset”, this results in the situation I mentioned before.

I tried to use Software system reset mode as you noticed, combined with “-d” written in “OpenOCD option”.
This results in a Problem Occurred again, but with a different details :
Error in services launch sequence
Timed out trying to launch GDB.

With this, the problem seems to be located only on GDB launching.
What do you think?


Hi,

Are you trying the debug config in shareable mode stlink ?
Try in normal mode first.

And the “Connect under reset” mode, is it the same ?

Yes, it seems gdb can’t start.

Can you check there is no other gdb or openocd running.

Also, can you try a simple project for the nucleo board mcu, is it working fine ?

Rgds,
Laurent


Hi,

I did have my debug config in Shareable mode StLink. I tried in normal mode. Same result.

I tried all 3 reset mode with same results.

How can I check for other gdb or ocd running? (Ac6 is my only IDE running.)

I also tried to run the debug of the F303 nucleo board. And i indeed have the same Occurred problem result (Error in services launch sequence
Timed out trying to launch GDB.)

For well comprehension, I attach the screenshot of the debug config for both the BleuCoin and the F303 projects.

http://www.openstm32.org/tiki-download_file.php?display&fileId=470QuestionQuestion
http://www.openstm32.org/tiki-download_file.php?display&fileId=471QuestionQuestion

Regards,
David



To check for other gdb or ocd running, i meant to check the processes on windows and see if there is nothing already running before launching debug.

Hi Laurent,

I checked on other gdb and ocd running on win10. Indeed there was few gdb tasks running. I’ve ended these tasks via widows tasks manager, and tried my debug again. Same result.

To be sure, I restarted my system and launcha AC6 Debug as first thing. The result is back to this Problem Occurred message :
Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:7184

Error message from debugger back end:
Bogus trace status reply from target: timeout
Bogus trace status reply from target: timeout

I will try now to run my nucleo board with the F303 on the “getting started” setup with AC6. This is a more experienced setup, and I may make it work well.
If not, I’ll try it again after uninstall and reinstall of AC6.

What do you think?

Regards,
David


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs