摘要:
一、 软件获取 官网:https://www.st.com/en/development-tools/stm32cubeide.html 选取deb版本进行下载 二、 安装 下载下来是这么个zip压缩包,需要先解压。ubuntu可以直接打开以后,点解压,或者全部拖到某个文件夹内。 en.st-stm 阅读全文
摘要:
首先在main.c文件中添加标准输入输出库 #include <stdio.h> 然后在stm32cubemx生成的文件中,找到usart.c文件,在后面添加如下代码 #include "stdio.h" #include "stm32f1xx_hal.h" //这个变量是其他.c文件定义的 ext 阅读全文