CLions does not generate CMake project for STM32
已完成
I am using CLion 2019.3.5 on a Windows 10 machine. Following guides I have installed STM32CubeMX, arm-toolchain and openocd. Then I was trying both approaches: create new ioc project from CLion and then configurate it within STM32CubeMX and open already existed project as well. CMake project structure is not generated for me so I could no start building the whole project. What could be the root of an issue?
Thank you in advance.
请先登录再写评论。
Hello!
When you create a new project in CLion (https://www.jetbrains.com/help/clion/embedded-development.html#new-project), do you get any error at any stage?
Is your STM32cubeMX run under java 13?
Thank you for a fast reply!
I did not receive any messages instead of warnings about Windows Defender (Windows Defender might be impacting your build perfomance.) After opening generated code for ioc project I could see something like "STM32F407V(E-G)Tx is configured" and nothing happens.
As I understand STM32cubeMX should use java version placed in JAVA_HOME variable. If it is so, then yes, it is running under java with jdk-13.0.2.
There was a bug with STM32CubeMX and Java 13: https://youtrack.jetbrains.com/issue/CPP-17776#focus=streamItem-27-3754747.0-0.
You can try downgrading java to Java 8 or 11, maybe it will help.
If it doesn't help, please specify your STM32CubeMX version.
Thank you again for the help! I have tried workaround described in the bug tracker, but still have no success. I have changed Path variable with adding path to jdk version and then reinstall STM32CubeMX. I was wrong saying about version 13, it was version 1.8. Anyway no success for 1.8, 11 and 13 as well. STM32CubeMX's version is 5.6.0. Should I try ane specific version?
Please file a tricket at https://youtrack.jetbrains.com/newIssue?project=CPP&c=Subsystem%20Embedded and provide as much information as you can. Preferably share your project to us.
Just for the record, the created issue - https://youtrack.jetbrains.com/issue/CPP-19647.