繁体   English   中英

如何使用CLion将C代码闪存到STM32板?

[英]How to flash C code to STM32 board with CLion?

我使用Eclipse为我的STM32F746G-DISCOVERY板开发,但我想切换到CLion。 为此我遵循了本教程( https://blog.jetbrains.com/clion/2019/02/clion-2019-1-eap-clion-for-embedded-development-part-iii/ )。 到目前为止一切看起来都不错,所以我想将预先生成的“helloworld”代码刷新到主板上。 我想应该通过UPLOAD来完成。 当我单击构建时,我有以下错误消息。 当我点击RUN时,该过程以退出代码127结束。

====================[ Build | UPLOAD | Debug ]==================================
/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake --build /Users/hordon/Desktop/GreenFox/CLionSTM32/cmake-build-debug --target UPLOAD -- -j 2
[100%] Built target ClionSTM32.elf
GNU gdb (GNU Tools for Arm Embedded Processors 8-2018-q4-major) 8.2.50.20181213-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin10 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
tcp:127.0.0.1:3333: Operation timed out.
"monitor" command not supported by this target.
"monitor" command not supported by this target.
You can't do that when your target is `None'
[100%] Built target UPLOAD

Build finished

====================[ Build | ClionSTM32.elf | Debug ]==========================
/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake --build /Users/hordon/Desktop/GreenFox/CLionSTM32/cmake-build-debug --target ClionSTM32.elf -- -j 2
[100%] Built target ClionSTM32.elf

Build finished

我刚刚开始使用微控制器,但我最好的猜测是CLion无法到达主板(这是肯定的连接)。 我不知道如何解决这个问题。

您需要将STM32Crogrammer_CLI.exe从STM32CubeProgrammer集成到进程中。 当您想要上传二进制文件时,需要调用<full path> STM32_Programmer_CLI.exe -P <File_Path> [<Address>] [ske] [skpv]之类的东西。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM