This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Startup file not being added to project

Hello:

(So why is there not a MCU architecture/product submission selection for Cortex-M0?)

Well anyway, I just installed KDM5 and did the PACK installer for the cortex-m0
part I'm using, and I successfully copied and ran the blinky example from the Pack.

So I go to do my own hello world example, create the project, add the CMSIS core
and startup checkmarks in the run-time environment dialog. I then write my main
and build, and get the link error seen here:
i.imgur.com/ey7Rvf8.jpg
You can also see my run time settings on the overlapping window.

This is apparently due to lack of a startup file, according to my googling.
By my estimation I should have a startup file in the device section of the project
files, but as you can see, there is no "+" sign at my device item.

First question is, why not, second is how do you force-add one.
I found the file I need, I think, deep in the bowels of the Keil file system,
but can't find instructions to add it. I would have thought I could right click
on the device thing, but that has no add; it must be another way.

Thanks!

  • They yellow color means that something is missing that it needs to add the checked component. In the bottom it says you need the STM32CubeMX component. Add that for your processor. This is specific to the Brand of processor (ST) and not a generic M0 component.

  • Or, indeed, for any Cortex-M other than 3 ?

  • OK. I thought I went through all the pack stuff to add everything needed.
    It leaves me having to figure out HOW to get what is needed I guess.

    I appreciate your tip. thanks.

  • You have 3 options. If you want to use CubeMX,
    1) you may try *starting* inside CubeMX, and exporting an MDK-ARM project, or
    2) launch CubeMX from inside MDK-ARM
    Based off the picture, the default for the device is to try and launch CubeMX (which may currently bring in the startup files in the old way, without a software component)
    To do this, you'll want to enable the component in the yellow warning, in the Manage RTE window. Check the box next to Device => STM32CubeMX Framework (API) => STM32CubeMX.
    Click OK, to startup CubeMX.
    3) If you do not want to use CubeMX, select a different component variant from STM32CubeMX, inside the Manage Run-Time Environment dialog.
    If multiple variants exist, they are displayed as a drop-down list in the Variant column...