随笔分类 -  STM32

摘要:main.rs #![no_std] #![no_main] use core::ptr; use cortex_m_rt::entry; use panic_halt as _; // 当发生 panic 时停止执行 // 定义寄存器地址 const RCC_BASE: u32 = 0x40021 阅读全文
posted @ 2024-08-18 17:27 navysummer_hardware 阅读(54) 评论(0) 推荐(0)
摘要:1.启动文件 startup_stm32f103xe.s ;******************** (C) COPYRIGHT 2017 STMicroelectronics ******************** ;* File Name : startup_stm32f103xe.s ;* 阅读全文
posted @ 2024-08-18 15:45 navysummer_hardware 阅读(56) 评论(0) 推荐(0)
摘要:1.GPIO介绍 GPIO 是控制或者采集外部器件的信息的外设,即负责输入输出。它按组分配,每组 16 个 IO 口,组数视芯片而定。STM32F103ZET6 芯片是 144 脚的芯片,具有 GPIOA、GPIOB、GPIOC、 GPIOD、GPIOE、GPIOF 和 GPIOG 七组 GPIO 阅读全文
posted @ 2024-04-13 14:03 navysummer_hardware 阅读(332) 评论(0) 推荐(0)
摘要:1.下载stm32cube的固件包 1.1 进入st的官网 ST官网传送门 1.2 查找固件包 1.3 找到自己的硬件对应的系列的固件包 1.4 选择固件包点击进入后,点击获取软件 1.5 选择版本下载 2.创建项目相关的目录 2.1 创建项目相关的目录 2.2 给Drivers添加相关的驱动文件或 阅读全文
posted @ 2024-04-04 18:43 navysummer_hardware 阅读(143) 评论(0) 推荐(0)
摘要:1. 安装rust curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 2.添加stm32需要的工具链 rustup target add thumbv6m-none-eabi thumbv7m-none-eabi thumb 阅读全文
posted @ 2024-03-08 21:01 navysummer_hardware 阅读(713) 评论(0) 推荐(0)
摘要:1.安装VSCODE https://code.visualstudio.com/ 2.安装系统相关编译软件 sudo apt install build-essential gdb sudo apt install gcc-arm-none-eabi sudo apt install make c 阅读全文
posted @ 2024-03-03 17:59 navysummer_hardware 阅读(947) 评论(3) 推荐(1)
摘要:1.安装STM32CUBEMX 安装地址 https://www.st.com/zh/development-tools/stm32cubemx.html 2.安装STM32CUBE IDE 安装地址 https://www.st.com/zh/development-tools/stm32cube 阅读全文
posted @ 2024-03-03 16:09 navysummer_hardware 阅读(727) 评论(0) 推荐(0)
摘要:1.安装开发工具 1.1 安装stm32cubemx 下载地址 https://www.st.com/zh/development-tools/stm32cubemx.html 1.2 安装clion 方法1:直接下载clion,下载地址 https://www.jetbrains.com/clio 阅读全文
posted @ 2024-03-03 15:41 navysummer_hardware 阅读(323) 评论(0) 推荐(0)
摘要:1,选择芯片新建工程 2.时钟模块的设置 分别设置HSE,LSE,MCO 3. 时钟系统配置 分别配置PLL,SYSCLK,AHB,APB1,APB2等等,配置修改如下红色标记部分 4. Cortex内核配置 分别配置SYS(DEBUG),NVIC(优先级分组) 5. GPIO引脚配置 我的板子的原 阅读全文
posted @ 2024-03-02 20:53 navysummer_hardware 阅读(188) 评论(0) 推荐(0)