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

How do I migrate a Keil project made with MDK 4.x to MDK 5.x following CMSIS changes?

I recieved an existing project made with MDK 4.x and I'd like to use a newer toolchain but CMSIS probably changed ina way that things are missing. Can anyone assist in this migration steps?

Thank you!

Parents Reply Children
  • Dear Sir Bauer,

    Sorry to post here, I am suffering same problem regarding CMSIS at MDK v5 .

    I am trying to migrate my project from Coocox to Keil MDK.

    My device is STM32F070RBTx that has no example code in KEIL directly.  It suggest STM32F072-Discovery, that is not the STM32F070 group.

    As usually I am adding  HAL library and other driver and required state files in my project, but build error shows error.

    C:\Keil_v5\ARM\PACK\Keil\STM32F0xx_DFP\1.5.0\Device\Include\stm32f070xb.h(130): error:  #5: cannot open source input file "core_cm0.h": No such file or directory

    Its a typical error I know, but if you look my project tree, looks KEIL not supporting CMSIS.

    cmsis_prob.PNG

    I know its a question of Overview of the Keil Discussion Forum , I posted there also.

    there is no response.

    Regards

    Hasan

  • Hello Hasan,

    from what I can see here, you have not selected the device startup in MDK 5. Please select CMSIS:CORE and Device:Startup as shown here:

    f070.png

    Kind regards,

    Christopher

  • Dear Sir Christopher,

    Many thanks returns to you !

    You have figure out the exact solution what I need. Let me introduce me as a newcomer.

    startup.PNG

    Now my project tree looks like this image.

    System works fine, but build errors exists as I am compiling a complex project.

    Now let me know in which forum is suitable to ask the questions regarding , pre-processor setting, Options for target, macros in this community? 

    I am asking questions in Keil Discussion Forum , very few people respond here!

    Beside these, I am along with STe2ecommunities,http://www.openstm32.org/my , www.eclipse.org/forums.

    ST works fine compared to others.

    Best Regards

    Hasan

  • Dear Christopher,

    I have a similar problem, so that I got a project folder for STM30F3 (I dont know in which IDE was written), and now I want to import this project into uvision v5.

    The project folder contains the following folders: CMSIS, FreeRTOS, Inc, Src, STM32F30x_StdPeriph_Driver.

    I can compile the project in uvision v5 but I get an error during linking stating: 

    error: L6236E: No section matches selector - no section to be FIRST/LAST.

    and I think this is related to a missing startup file.

    MY question, is it possible to take any startup file and include it in the new project? because with the startup file of the old project I get more than 50 errors (maybe because of version incompatibiltiy).

    Thanks in advance