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

MDK5 and STM32Cube - Impossible to run together

Dear all,

I have many problems using STM32CubeMX and Keil MDK5. I'm trying to start defining all the peripherals with the STM32Cube (is intended for this), then I run code generation for Keil MDK5 and finally I open the project... all ok at this point..

BUT!!!...

When I'm trying to use any RTE of Keil like Network, Filesystem, etc.. Keil need to load also the Device drivers to resolve any dependencies and Keil add to the project the HAL driver and a configuration file called "RTE_Devices.h". At this point I have two problems:

1- The device drivers are duplicated, STM32Cube generated a group called "Drivers/STM32...." with all the xxx_hal.c drivers and also Keil generated a new component class called "Device" with the same xxx_hal.c drivers (but older version of course)

2- I have to edit the file "RTE_Devices.h" to enable and configure all the peripherals and pinout... it have no sense, I've done it with STM32Cube!!!!!

Can't understand how to use STM32Cube and Keil MDK5 togehter, only want to configure all the peripherals witn STM32Cube and then use Keil with the Filesystem, Network, RTOS...

Thanks

Parents
  • Here two things that may help you out.

    1- Projet | Settings
    Tab Project : Make sure MDK-ARM V5 is selected as Toolchain / IDE
    Tab Code Generator : First section you can tell to add the library as reference instead.

    2- Help | Updater Settings
    You have where it is downloading the latest STM32Cube files.

    Only problem I can see right now is that it isn't using the core library coming with the MDK-ARM v5 packs... That is not ideal .

    I am only using STM32CubeMX to check out conflict in between IOs and to generate the mapping files. I have done all the initialization code myself.

Reply
  • Here two things that may help you out.

    1- Projet | Settings
    Tab Project : Make sure MDK-ARM V5 is selected as Toolchain / IDE
    Tab Code Generator : First section you can tell to add the library as reference instead.

    2- Help | Updater Settings
    You have where it is downloading the latest STM32Cube files.

    Only problem I can see right now is that it isn't using the core library coming with the MDK-ARM v5 packs... That is not ideal .

    I am only using STM32CubeMX to check out conflict in between IOs and to generate the mapping files. I have done all the initialization code myself.

Children