Skip to main content
smrtkai
Associate III
June 13, 2016
Question

STM32CubeMX destroys multiple targets in Keil uVision

  • June 13, 2016
  • 2 replies
  • 1004 views
Posted on June 13, 2016 at 16:37

Hello,

I have a project with multiple targets. The project was initially generated using STM32CubeMX 4.15. I have created some targets manually. When I change some peripherals and re-generate the code, STM32CubeMX deletes all names of my targets and the compiler cannot compile the targets anymore. The compiler complains ''CMSIS Core unavailable for this target''.

Additionally if I close the Keil uVision project, when another target than the originally generated target is selected, no target is compilable after code generation. The project needs to be closed with the originally generated target.

Is there any way to work with multiple targets?
    This topic has been closed for replies.

    2 replies

    Walid FTITI_O
    Visitor II
    June 14, 2016
    Posted on June 14, 2016 at 10:43

    Hi smrtkai, 

    For the actual version, it supports one target for a Project. I transmit your request to our CubeMx team.

    -Hannibal-

    Lo Pe
    Visitor II
    December 6, 2016
    Posted on December 06, 2016 at 16:28

    This could be usefull to be able to use multiple targets.

    thank you

    - LoPe

    aaron239955_stm1_st
    Senior
    December 6, 2016
    Posted on December 06, 2016 at 21:12

    Perhaps creating separate CubeMX projects for each target would make more sense.  Since different CPUs use different libraries having multiple targets with one code base seems problematic.  You'll need to update, regenerate and build each target project when you have a change debugged, but this will keep things separate and the tools happy

    smrtkai
    smrtkaiAuthor
    Associate III
    December 20, 2016
    Posted on December 20, 2016 at 11:36

    My targets are Debug, Production and Test, so they all use the same code base.