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
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.
Hi Keaven,
The point noº 1 is what I'm doing and of course the program is updated... I think this two programs are not fully compatible if you want to use the RTE libraries of MDK.
Thanks for your help :)