Skip to main content
Associate III
September 27, 2025
Solved

MDK-KEIL and STM32CubMx Integration

  • September 27, 2025
  • 1 reply
  • 615 views

I am using the latest MDK-ARM Tool Chain (5.43a), and CubeMX is 6.15. So far, I have used Cubex to generate the initialisation and peripheral codes, middleware, etc., compiling them using KEIL. It is perfect and never seen any issues.
I want to use middleware from MDK-ARM instead of Cubex. 
I followed the manual online at the KEIL/ARM site as well as on ST for RTE and CubeMx Integration. It is not clearly defined; should I run CubeX from the RTE of KEIL, or can CubeMX run independently and create the init code?
I get the following errors:
Error instantiating RTE components
Error #545: Required input file from generator CubeMX: 'E:/STM32CubeMX/Target_1/GSN_Controller_RevC.cgen.yml' is missing
Creating E:GSN_Controller_RevC.Target_1.cbuild-gen.yml
Creating E:/Target_1.cbuild-gen-idx.yml
Launching CubeMX
ARM\cmsis-toolbox\bin\cbridge.exe E:\Target_1.cbuild-gen-idx.yml
Error: generator 'CubeMX' missing. Install from 'https://www.st.com/en/development-tools/stm32cubemx.html#st-get-software'

As per the error, it is looking for CubeMx and did not find it. But it is already installed and working fine. 
Maybe a path issue or something.
If someone faced a similar issue and knows how to fix it let me know. 
Having for latest updated document on KEIL and CubeMx integration, highly appreciated.
Regards

Best answer by mahapusha

The problem was resolved by uninstalling CubeMx and reinstalling it for all users on the machine.


1 reply

mahapushaAuthorBest answer
Associate III
September 28, 2025

The problem was resolved by uninstalling CubeMx and reinstalling it for all users on the machine.