广州活力数据恢复中心

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2422|回复: 2

stm32cubemx+clion安装资料

[复制链接]

92

主题

104

帖子

688

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
688
发表于 2020-10-2 03:40:25 | 显示全部楼层 |阅读模式
stm32cubemx+clion安装资料






安装java jdk:
  1. https://download.oracle.com/otn-pub/java/jdk/15+36/779bf45e88a44cbd9ea6621d33e33db1/jdk-15_osx-x64_bin.dmg?AuthParam=1601480809_2ce17a11eb4848a1173c6e47f1b92e5c
复制代码

安装stm32cubemx:下载地址
  1. https://www.st.com/content/ccc/resource/technical/software/sw_development_suite/group0/9e/ce/6e/18/d2/ff/46/57/stm32cubemx_v6-0-1/files/stm32cubemx_v6-0-1.zip/jcr:content/translations/en.stm32cubemx_v6-0-1.zip
复制代码
  1. ├── Readme.html
  2. ├── SetupSTM32CubeMX-6.0.1.app
  3. │   └── Contents
  4. │       ├── Info.plist
  5. │       ├── MacOs
  6. │       │   └── SetupSTM32CubeMX-6_0_1_macos
  7. │       └── Resources
  8. │           └── stm32cubemx.icns
  9. ├── SetupSTM32CubeMX-6.0.1.exe
  10. └── SetupSTM32CubeMX-6.0.1.linux
复制代码


  1. Installing and running STM32CubeMX 6.0.1
  2. Supported operating systems and architectures
  3. Windows® 8: 64-bit (x64)
  4. Windows® 10: 64-bit (x64)
  5. Linux®: 64-bit (x64) (tested on RedHat, Ubuntu and Fedora)
  6. Since STM32CubeMX is a 32-bit application, some distributions of Linux 64-bit
  7. require to install 32-bit compliant packages.
  8. MacOS: 64-bit (x64) (tested on OS X El Capitan and later)
  9. Software requirements
  10. The use of Java Runtime Environment (JRE) 64-bits is mandatory. JRE 32-bits is no more supported. The JRE minimal version is 1.8_45.
  11. The version 1.8_251 must not be used (known Java issue).
  12. Java™ 11 is supported.
  13. Java™ 7, Java™ 9, Java™ 10, Java™ 12 and upper are not supported.
  14. Installing STM32CubeMX standalone version
  15. To install STM32CubeMX, follow the steps below:
  16. Download STM32CubeMX installation package from www.st.com/stm32cubemx.
  17. Extract (unzip) the whole content of the the latest STM32CubeMX installation package from http://www.st.com/stm32cubemx into the same directory
  18. Check your access rights and launch the installation wizard:
  19. on Windows
  20. Make sure you have administrators rights
  21. Double click on the SetupSTM32CubeMX-6.0.1.exe file to launch the installation wizard
  22. On Linux
  23. Make sure you have access rights to the target installation directory. You can run the installation as root (or sudo)  to install STM32CubeMX in shared directories
  24. Do "chmod 777 SetupSTM32CubeMX-6.0.1.linux" to change the properties, so that the file is executable.
  25. Double click on the SetupSTM32CubeMX-6.0.1.linux file or launch it from the console window.
  26. On MacOS
  27. Make sure you have administrators rights.
  28. Double click on the SetupSTM32CubeMX-6.0.1 application file to launch the wizard.
  29. In case of error, launch the exe file with the following command :
  30. sudo java -jar SetupSTM32CubeMX-6.0.1.exe
复制代码


openocd:
  1. brew install openocd
复制代码
查看是否已经安装成功openocd
  1. which openocd
复制代码
会返回路径或者查看openocd版本:
  1. openocd --version
复制代码



arm-none-eabi-gcc
macos下载Mac OS X 64-bit Package (Signed and notarized):

  1. https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads
复制代码
或者用brew安装
  1. brew tap ArmMbed/homebrew-formulae
  2. brew install arm-none-eabi-gcc
复制代码

安装完arm-none-eabi-gcc, 用命令去检测查去是否已经成功安装好.

clion下载地址:
  1. https://download-cf.jetbrains.com/cpp/CLion-2020.2.3.dmg
复制代码
安装完, 需要安装stm32 openocd插件,
  • preferences-->build-->toolchains-->debugger:bundled GDB.
  • preferences-->build-->embed development设置 openocd(上面有提过怎么查openocd路径)和stm32cubemx路径.


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
一体优盘数据恢复 www.rflashdata.com
硬盘ROM损坏焊爆丢失配ROM服务
buffalo 隨身碟數據救援 bitlocker WDV2 lacie EFS等加密硬盘数据恢复,指纹爱国者加密优盘数据恢复 +86 18620923827
回复

使用道具 举报

59

主题

84

帖子

560

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
560
QQ
发表于 2020-10-4 06:53:14 | 显示全部楼层
  1. -- The ASM compiler identification is unknown
  2. -- Found assembler: arm-none-eabi-gcc
  3. CMake Error at CMakeLists.txt:17 (project):
  4.   The CMAKE_C_COMPILER:

  5. <blockquote>CMake Error at CMakeLists.txt:17 (project):
复制代码
arm-none-eabi-gcc没装好, 需要重新安装
  1. brew tap ArmMbed/homebrew-formulae
  2. brew install arm-none-eabi-gcc
复制代码


回复 支持 反对

使用道具 举报

59

主题

84

帖子

560

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
560
QQ
发表于 2020-10-7 13:18:31 | 显示全部楼层
  1. [  4%] Linking C executable led.elf
  2. Memory region         Used Size  Region Size  %age Used
  3.              RAM:        4152 B        20 KB     20.27%
  4.            FLASH:       31956 B        64 KB     48.76%
  5. /usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libg.a(lib_a-writer.o): in function `_write_r':
  6. writer.c:(.text._write_r+0x12): undefined reference to `_write'
  7. /usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libg.a(lib_a-closer.o): in function `_close_r':
  8. closer.c:(.text._close_r+0xc): undefined reference to `_close'
  9. /usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libg.a(lib_a-fstatr.o): in function `_fstat_r':
  10. fstatr.c:(.text._fstat_r+0x12): undefined reference to `_fstat'
  11. /usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libg.a(lib_a-isattyr.o): in function `_isatty_r':
  12. isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty'
  13. /usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libg.a(lib_a-lseekr.o): in function `_lseek_r':
  14. lseekr.c:(.text._lseek_r+0x12): undefined reference to `_lseek'
  15. /usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: /usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major/gcc/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libg.a(lib_a-readr.o): in function `_read_r':
  16. readr.c:(.text._read_r+0x12): undefined reference to `_read'
  17. collect2: error: ld returned 1 exit status
  18. make[3]: *** [led.elf] Error 1
  19. make[2]: *** [CMakeFiles/led.elf.dir/all] Error 2
  20. make[1]: *** [CMakeFiles/led.elf.dir/rule] Error 2
  21. make: *** [led.elf] Error 2
复制代码






回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|硬盘FLASH数据恢复论坛

GMT+8, 2024-5-15 17:13 , Processed in 0.119593 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表