I have installed STM32 IDE on windows 10 , I wanna build a very simple code, LED blink but I can not build the project and run it ... can you please help me ?
..
..
Ok. Not sure to fully understand all your description but some guess based on.
High level summary I would reply: no bug here but maybe confusing ST material related a bit to such complex devices (multi cpus so multi projects).
Let me add some explanations then.
1) My guess is you're facing this kind of project view:
2) Assuming my guess is right here is same snapshot but adding some annotations to:
Here we are able to see main.c duplication you're refering to. Duplication is from UI point of view but looking at file system you may get only one main.c per cpu what's sounds reasonable. Dupes are related to symoblic links usage ... takes care to small back arrows which are overlaid on some file with your project tree ...
Based on such behavior you're reporting about some directories allowing compile process trigger, some others not is fully explained and common / expected behavior:
+ Directories not allowing to trigger compile process are in fact pure file system folders not being managed / understood by Eclipse at all (because no Eclipse metadata inside)
+ Directories allowing to trigger compile process are in fact not only pure file system folders but Eclipse projects (some Eclipse metadata inside like .project & .cproject files)
3) Then you may say all such is quiet weird but hopefully some way to get better look'n feel. You've to take care importing your project.
Taking care to not import first element (i.e. file system project root) you're already getting a more user friendly view preventing dupes:
4) My latest guess is you're facing all such either because relying on one of following workflow
+ Having imported project from a STM32CubeMX stand alone tool project creation process unchecking "Generate Under Root" option.
+ Having imported an STM32Cube example project from a firmware pack
+ Having taken as reference doing q copy or ... for your own dev. one of 2 previous proposals
To confirm let's open your .ioc file you may see:
STM32Cube examples are all generated having such "Generate Under Root" option unchecked.
5) As conlusion:
According to me I would adivice you to always rely on Generate Under Root" option checked. It will make your life easier I think.
Such is by the way STM32CubeIDE default setting creating a project from its context.
Let me know if helpful to you (are my guesses right ?). If helpful please tag as answered ... will help community.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.