Question 1: The code produced according to the matlab step model can be run. Why is the stm32cubeIDE folder produced (keil cannot open it) but not the MDK-ARM folder?
1 次查看(过去 30 天)
显示 更早的评论
Question 1: The code produced according to the matlab step model can be run. Why is the stm32cubeIDE folder produced (keil cannot open it) but not the MDK-ARM folder?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1558579/image.png)
Question 2: As in question 1, change the Toolchain/IDE to MDK-ARM in stm32cubeMX to generate a project opened by keil. Load the .c/.h file generated by simulink
In the keil project (like blue), but the compilation package has the following error. What is the cause and how to solve it? Is there any latest complete operation process that adapts to the above environment?
Note 1: In question 2, add the header file #include "G474RE1.h" #include "rtwtypes.h" in "stm32g4xx_it.c".
Note 2: stm_fdcan_hal.h/stm_fdcan_hal.c/platform_timer.c are all added after errors occurred during the compilation process.
Note 3: With a simple GPIO operation model, there is no problem in generating .c/.h code and loading the keil project for compilation.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1558584/image.png)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Embedded Coder 支持的硬件 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!