Not able to debug C++ based simple hello world project in ST CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-22 12:53 AM
Hello Team,
I was trying to create and debug a simple C++ based simple hello world application with CubeIDE IDE.
Project gets compiled and exe is generated successfully.
I see all C++ development tools available in installed packages. attached is the screenshot of error I am receiving.
Can I debug a normal C++ application using GDB debugger in workbench??
If yes may I get some information how to resolve issue.
Best Regards,
Satish
- Labels:
-
Bug-report
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-22 3:54 AM
The error message is unrelated to the use of C++. The project doesn't look like a STM32 project. Start with a STM32CubeIDE generated C project first. Check the numerous "Getting Started" guides and videos. Then transform main.c to main.cpp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-22 4:52 AM
The is C++ based for sure and not STM32 project as mentioned already.
My observations are as below; any C++ based application to debug in STM Cube IDE needs some GDB packages. I was trying to install some of them. However it gets partially installed. Some important one can not be installed as shown in attached screenshot.
Can anybody comment on this please ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-22 6:01 AM
C++ and STM32 are no way mutually exclusive. You have created a local (host) C++ hello world project. You can debug it as a "Local C/C++ App". Workes for me oob. But, this a feature of the underlying Eclipse+CDT tool and out of scope for STM32CubeIDE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-28 12:56 AM
Hello,
It looks like there is latest version released V1.5.1, I was earlier using 1.5.0 where in I faced this issue.
On latest version I could develop and debug both kind of projects like local simple hello world project and ST controller based project.
Thanks and regards,
Satish
