STM32 Project with two Dual-Core projects are buggy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-18 6:48 AM
Hello,
There are several issues when having project in STM32CubeIDE for STM32H747I-DISCO.
1) When you open M4 or M7 main.c file, there doesn't work the autocomplete. But when you open this file by generating code from .IOC file, those files have autocomplete.
As you can see in this gif, I have two times opened CM7 main.c. In one is auto-complete working, in one not.
2) When debugging any core, I can step the code, but anytime I make breakpoint, and run the code, it breaks on some address, and not showing anything, so in conclusion, breakpoints even don't work.
Thanks
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
-
STM32H7 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-02-04 1:48 AM
A quick update:
I just tested this with our internal build and it has been fixed. So this will be part of the next release.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-18 7:34 AM
The left and right are different main.c files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-18 11:11 AM
Hello @Despair1337​ ,
I recommend you to review this AN5361 application note describes how to get started with projects based on STM32H7 Series dual-core microcontrollers in the STM32CubeIDE. This should be helpful for you.
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-18 11:59 AM
Hello @Imen DAHMEN​ and @TDK​
Imen: I guess your reply is for the second question, the debugging. Thank you for this, will take look.
TDK : Oh, I didn't noticed this. Anyway, I guess this shouldn't happen, or is this supposed to work like this?
Thank you for your time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-18 3:00 PM
> TDK : Oh, I didn't noticed this. Anyway, I guess this shouldn't happen, or is this supposed to work like this?
Not sure what you mean. If you open multiple files, they will all be shown. I'd recommend closing all files and specifically opening the ones you need when in doubt.
Autocomplete only exists when the IDE knows what to do in the specific context, which only happens if the file is in a properly set up project. Hard to know what you've got going on from the small screenshot, but clearly there are files from multiple projects open.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-19 5:33 AM
Hi TDK,
I'm sorry, let me share with you more information.
Since this is dual-core project, STM32CubeIDE creates basically 3 projects.
- Root Project - contains IOC and common files between cores
- CM4 - contains source code for Cortex-M4
- CM7 - contains source code for Cortex-M7
So, from what we can see, the first file is opened in CM7 project (path sampler_CM7/Core/Src/main.c), thus it have all required information for indexing, so autocomplete works.
Second main.c file is opened in Root Project (where inside is also CM7 project folder, so the path is sampler/CM7/Core/Src/main.c).
Actually, this gives sense why is this happening. Since IOC is in Root Project, generator is inside Root Project, so as Root Project, it will open the main.c file. But this is in the context of Root Project, so there isn't all required paths. etc.. For auto-correct. Generally, I think this shouldn't happen.
@Imen DAHMEN​ please, would it be possible to report this problem to developer team? I'm very confident that this is bug.
Thank you very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-27 2:13 AM
​Hi @Despair1337​ ,
Thank you for your feedback.
I have passed your feedback along to our development team for review.
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-27 2:28 AM
Hello MKraus,
I've reproduced the issue so I will go ahead and write a ticket for it.
Thank you for bringing it to our attention!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-02-04 1:48 AM
A quick update:
I just tested this with our internal build and it has been fixed. So this will be part of the next release.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-02-04 5:13 AM
Thank you very much for letting me know!
