Run/Debug don't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-01-18 2:21 AM
Hi,
I've STM32CubeIDE v1.14.1 on a Windows10 PC. I've NUCLEO-G0B1RE board and I've created my workspace with a standard project starting from the NUCELO ioc configuration. I can build the project and upload the .elf file on the uC with STM32CubeProgrammer software, no problem, it works.
When I try to Run or Debug the project from the STM32CubeIDE, nothing happens; also if I try to add some lauch configuration from Properties->Run/Debug Settings menu, nothing happens......
Another strange thing is that in the Build Analyzer tab I have no info about memory usage....
Is there a way to solve?
Thanks!
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-01-19 6:31 AM
Hi @AScha.3 @Pavel A. @Imen.D ,
I've tried a fresh install on a MAC device and everything is working correctly, so I've uninstalled all ST software (STM32CubeIDE, STM32CubeProgrammer, STM32CubeMX and STlinkserver) and re-installed ONLY STM32CubeIDE v1.14.1.
For a magic, now everthing is working fine: I see the Nucleo ST-LINK programmer and I can run and debug; I can see also RAM and FLASH usage..... So the problem is solved with a fresh install......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-01-18 10:03 AM - edited 2024-01-18 10:47 AM
Hello @BRonc.1 ,
The Memory Regions tab is empty if the elf file has no corresponding map file.
When a map file is found, the region names, start address, end address, total size of region, free size, used size and usage information are presented.
So, make sure that the correct elf file and project are selected.
For that, I recommend following the chapter "2.4 Build Analyzer" of the STM32CubeIDE User Guide:
"The STM32CubeIDE Build Analyzer feature interprets program information from the elf file in detail and presents the information in a view. If a map file, with similar name, is found in the same folder as the elf file the information from the map file is also used and even more information can be presented."
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-01-18 2:10 PM
+ there is NO linker option selected to suppress the map file! and maybe the .list file as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-01-18 11:42 PM
Hi @Imen.D ,
I've just compiled the default NUCLEO-G0B1 project example, and I think there's already a .lst and a .map file:
And here's my settings (they could be all default values):
Is there something missing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-01-18 11:45 PM
Hi @Pavel A. ,
Thanks for your reply!
I'm sorry, I don't understand your note, why you suggest to suppress the file? Maybe you mean generate?
By the way, my options are
and I think the .map file is already generated with the linker options. Do you think there's something wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-01-19 12:21 AM
map file -> look at project -> properties :
+
Try: make : menu -> file -> new -> stm32 project .... select cpu, give name (wait...until it shows ioc edit) ;
set in ioc : debug to swd ; then generate code ;
compile , is now memory usage shown ?
then debug -> configurations (set debug for this new name-thing ) -> debug .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-01-19 1:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-01-19 1:13 AM - edited 2024-01-19 1:14 AM
>But nothing is shown :(
Where ??
You did everything (!) according to my last post ?
compile -> success ? no error, no warning ? etc ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-01-19 1:25 AM
Hi @AScha.3 ,
yes, I've done the required steps: generate code and build, obtaining no errors and no warnings, but the .lst and .map files are generated (the mem usage is still empty):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-01-19 1:49 AM
Ok ok, and the -> debug ? ( You have set debug -> configurations -> (this test_proj ) first )
