2025-05-01 3:25 AM - last edited on 2025-05-01 3:38 AM by Andrew Neil
When generating code with stm32cubemx, an interface pops up, saying that I don't have the MDK-ARM toolchain installed, but I can burn the code normally with keil5 on my computer, why is this? what can I do next?
2025-05-01 3:40 AM
@Quizark wrote:saying that I don't have the MDK-ARM toolchain installed
Well, that's only one of the things it suggests.
The other is that you need to "associate the file type of the project with your Toolchain..." - so have you done that?
2025-05-01 3:49 AM
Yes, it's the only way, but I don't know how to associate the file type of the project with my Toolchain.
2025-05-01 3:59 AM
If you look in that folder using the Windows File Explorer, what does it say the 'Type' is for the generated project file?
Can you open it just by double-clicking?
2025-05-01 4:40 AM
That's the state when you open it
This is my own folder, the first and second are for calling the HAL library and using the project files written directly in keil5 respectively
The third is the downloaded java runtime
The fourth one is the installer of the stm32cubemx that I downloaded
The fifth one is the installer that I downloaded keil5
2025-05-01 4:47 AM
You haven't shown the project file.
2025-05-01 4:52 AM
Is this one?This is something that is automatically generated in the folder after I click on the generated code.
2025-05-01 6:16 AM
You said you're using Keil - so wouldn't it be a .uvproj or similar?
Presumably in that MDK-ARM folder?
2025-05-01 7:07 AM
Thank you for your enthusiastic help. My problem has just been resolved. The reason is that when I was using the HAl library to generate code and open the project file, the system automatically called keil5, which is the C51 I used to learn about the 51 microcontroller before, not ARM. I just deleted it and was able to open it. This problem had already appeared the day before I posted it, and it wasn't until just now that I was able to solve it.
Thank you again for patiently responding to my question post. I am very grateful!
2025-05-01 7:12 AM
You're welcome.
Please mark your post as the solution:
https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256