Skip to main content
HJung.3
Associate II
October 14, 2021
Question

My project can not debug the STM32CubeIDE.

  • October 14, 2021
  • 2 replies
  • 5861 views

Hi. i'm research about UWB communication and localization.

My project need to accumulate the Channel impulse response. so we was bought the decawave UWB product that model is EVK1000 kit. (just single model is EVB1000)

In order to obtain CIR data, firmware is required, so the sample is executed using STM32cubeide v17.0, but there is a problem with the debug.

First, that can't find the ST-LINK/V2 serial number.

Second, when i click the debug​ button, see error message "Won't launch debug session since we failed to locate the binary."

0693W00000FCZaYQAX.pngThird, my debug configuration setting uncertain.

0693W00000FCZb1QAH.png0693W00000FCZbQQAX.png

I need to help as soon as possible this project deadline coming..

Thanks.

This topic has been closed for replies.

2 replies

TDK
October 15, 2021

Can you connect to it using STM32CubeProgrammer?

What are you using for a debugger and how is it connected to the board?

"If you feel a post has answered your question, please click ""Accept as Solution""."
HJung.3
HJung.3Author
Associate II
October 15, 2021

Yes i was connected however STM32Cubeprogrammer can not connect my ST-LINK/V2 and not find serial number. but, the STM32ST-Linkutility can connect directly. i tried reinstall ST-Link driver that not affect.

Um.... debugger..? i don't know i'm beginner this field just using the STM32CubeIDE and related software such as STM32CubeMX.

And it is connected EVK1000(EVB1000) board that was developed the Decawave. EVK1000 using DW1000 UWB chip.

I have one question. why my STM32CubeProgrammer can't find serial number..? i tried so many time ... do not..

Georgy Moshkin
Senior
October 15, 2021

Try to close STM32CubeIde before running STM32CubeProgrammer.

Try to create new debug configuration by double-clicking "STM32 Cortex-M C/C++ application" and press "Debug" button.

Check my STM32 Bootloader - flash your STM32 with AES-encrypted binaries right from web browser!
Georgy Moshkin
Senior
October 15, 2021

Check Project → Properties → C/C++ Build → Settings → Tool Settings → MCU Post build outputs if "Convert to binary file" is checked

0693W00000FCb1tQAD.jpg 

By default, if you double-click on "STM32 Cortex-M C/C++ application" on your screenshot it will create debug configuration which works (at least with ST-Link + SWDIO). Try to double-click on "STM32 Cortex-M C/C++ application", last in your list, with a blue icon, and open debug tab, you can change it to openOCD:

0693W00000FCb3LQAT.jpg 

Check my STM32 Bootloader - flash your STM32 with AES-encrypted binaries right from web browser!
HJung.3
HJung.3Author
Associate II
October 15, 2021

Thanks the answer.

I checking my C/C++ build setting but, i can't see category in the Tool setting menu.

0693W00000FCb7YQAT.png Maybe some wrong my tool setting. how can i fix? sorry i'm beginner this field.

And created the debug configuration about "STM32 Cortex-M C/C++ aplication", By the way, there were two problems.

First. Main tap ​have some issue the "Program not specified" error.

0693W00000FCbBZQA1.pngSecond. how can i change the open ocd? Now my setting is "ST-LINK (ST-LINK GDB server)" when i change the "ST-LINK (OpenOCD)" there's no setting.

0693W00000FCbBPQA1.png 

Thanks Georgy.