Skip to main content
Associate
October 25, 2025
Question

CubeMX issue of Code generation for Keil MDK : STM32F746 Cant get MX_Device.h

  • October 25, 2025
  • 1 reply
  • 193 views

I am using Keil MDK Pro ver 5.38, Compiler ver 6.19, Middleware 8.0.0 (Also tried lower and upper versions). I am using STM32F746NGH6 MCU . I generated a USB FS Host only code in CubeMX. Exported to keil. Compiled the code and got zero errors and zero warnings

However, after adding RTX5 and middleware components to keil project, the error of MX_Device.h file not found. Ther is no clear solution for this problem on unternet anywhere. Why STM32CubeMX is not generating this file? What is the way forward?

 

1 reply

Technical Moderator
October 27, 2025

Hello @mahendrask 

What version of STM32CubeMX are you using?

KR, Souhaib

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.