ubuntu配置stm32开发环境
·
使用c++和cmake配合stmcube开发stm32需要安装交叉编译链和调试工具
为了避免手动配置,可以直接通过ubuntu软件仓库下载,只需要打开终端敲入几行命令即可
安装openocd调试:
sudo apt install openocd
安装arm-none-eabi-gcc交叉编译链:
sudo apt install gcc-arm-none-eabi
-----------手动配置---------
如果想要手动配置openocd版本和安装地址,可以进入下面的仓库手动配置:
https://github.com/xpack-dev-tools/openocd-xpack
该作者也提供了arm-none-eabi-gcc的不同版本:
https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack
更多推荐

所有评论(0)