[{"data":1,"prerenderedAt":824},["Reactive",2],{"page-document:/book/stm32":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"director":9,"time":10,"img":11,"plan":12,"body":13,"_type":782,"_id":783,"_source":784,"_file":785,"_extension":786,"sitemap":787,"head":789},"/book/stm32","book",false,"","STM32","My","2026.05.15","stm32/1.png","100,100",{"type":14,"children":15,"toc":778},"root",[16],{"type":17,"tag":18,"props":19,"children":24},"element","book-content",{":by":20,":img":21,":plan":22,":title":23},"director","img","plan","title",[25,30,40,51,56,61,149,154,156,237,244,246],{"type":17,"tag":26,"props":27,"children":29},"text-title",{":t":28},"为什么想学 STM32",[],{"type":17,"tag":31,"props":32,"children":36},"h1",{"id":33,"data-toc-marker":34,"data-toc-count":35,"aria-hidden":34},"为什么学-stm32-1","true","1",[37],{"type":38,"value":39},"text","为什么学 STM32 1",{"type":17,"tag":41,"props":42,"children":44},"text-space",{"type":43},"tip",[45],{"type":17,"tag":46,"props":47,"children":48},"p",{},[49],{"type":38,"value":50},"现在我才知道那种包着硬件的灰色透明塑胶袋，实际上叫 ESD静电保护袋抗静电袋（Electrostatic Discharge Bag，简称 ESD Bag）是一种专门设计用来防止静电累积与静电放电的包装材料，主要应用于电子元件、半导体、PCB、感测器、精密零组件等对静电敏感的产品。",{"type":17,"tag":46,"props":52,"children":53},{},[54],{"type":38,"value":55},"在此之前我完全不知道 STM32 是什么，只是在 X 上刷到了很多硬件的分享帖子。同时感觉只会写软件太局限了，接触点硬件也很不错。于是在朋友的推荐下买了 STM32。在购买的时候遇到了一个有趣的事情，由于我是在咸鱼买的二手 STM32 套件，刚好是江协的，价格刚好是 32, 拿到货之后很新，就拆了几个，但 STM32 没有拆，还是那个灰色的透明塑封包着的。",{"type":17,"tag":46,"props":57,"children":58},{},[59],{"type":38,"value":60},"而且这个包装特别自信，二维码就是 STM32 入门套件，一扫就跳到 bing，第一个就是江协的 CSDN，然后官网直接跳转到视频，视频课程还有百度网盘的下载链接（很 low，为什么不做成在线的文档，一种很老的气息扑面而来）而且还有 2475.4万 的播放量。这说明这个行业很卷，很多人。",{"type":17,"tag":41,"props":62,"children":63},{"type":43},[64,66],{"type":38,"value":65},"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",{"type":17,"tag":67,"props":68,"children":69},"table",{},[70,89],{"type":17,"tag":71,"props":72,"children":73},"thead",{},[74],{"type":17,"tag":75,"props":76,"children":77},"tr",{},[78,84],{"type":17,"tag":79,"props":80,"children":81},"th",{},[82],{"type":38,"value":83},"半导体产业链核心环节",{"type":17,"tag":79,"props":85,"children":86},{},[87],{"type":38,"value":88},"主要内容/企业举例",{"type":17,"tag":90,"props":91,"children":92},"tbody",{},[93,113,136],{"type":17,"tag":75,"props":94,"children":95},{},[96,102],{"type":17,"tag":97,"props":98,"children":99},"td",{},[100],{"type":38,"value":101},"上游支撑",{"type":17,"tag":97,"props":103,"children":104},{},[105,107,111],{"type":38,"value":106},"材料：硅片、电子特气、光刻胶",{"type":17,"tag":108,"props":109,"children":110},"br",{},[],{"type":38,"value":112},"设备：光刻机、刻蚀机等",{"type":17,"tag":75,"props":114,"children":115},{},[116,121],{"type":17,"tag":97,"props":117,"children":118},{},[119],{"type":38,"value":120},"中游制造",{"type":17,"tag":97,"props":122,"children":123},{},[124,126,129,131,134],{"type":38,"value":125},"芯片设计：高通、英伟达等",{"type":17,"tag":108,"props":127,"children":128},{},[],{"type":38,"value":130},"晶圆代工：台积电、中芯国际等",{"type":17,"tag":108,"props":132,"children":133},{},[],{"type":38,"value":135},"芯片封测：日月光、长电科技等",{"type":17,"tag":75,"props":137,"children":138},{},[139,144],{"type":17,"tag":97,"props":140,"children":141},{},[142],{"type":38,"value":143},"下游应用",{"type":17,"tag":97,"props":145,"children":146},{},[147],{"type":38,"value":148},"消费电子、智能手机、汽车电子、AI算力、工业制造等",{"type":17,"tag":46,"props":150,"children":151},{},[152],{"type":38,"value":153},"拿到手之后，我看到了 STM32 的芯片，其他的大差不差。我比较好奇这些丝印具体代表什么，于是整理了一个对照表：",{"type":38,"value":155},"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",{"type":17,"tag":67,"props":157,"children":158},{},[159,180],{"type":17,"tag":71,"props":160,"children":161},{},[162],{"type":17,"tag":75,"props":163,"children":164},{},[165,170,175],{"type":17,"tag":79,"props":166,"children":167},{},[168],{"type":38,"value":169},"标记",{"type":17,"tag":79,"props":171,"children":172},{},[173],{"type":38,"value":174},"对应含义",{"type":17,"tag":79,"props":176,"children":177},{},[178],{"type":38,"value":179},"补充说明",{"type":17,"tag":90,"props":181,"children":182},{},[183,201,219],{"type":17,"tag":75,"props":184,"children":185},{},[186,191,196],{"type":17,"tag":97,"props":187,"children":188},{},[189],{"type":38,"value":190},"ST",{"type":17,"tag":97,"props":192,"children":193},{},[194],{"type":38,"value":195},"STMicroelectronics（意法半导体）厂牌标识",{"type":17,"tag":97,"props":197,"children":198},{},[199],{"type":38,"value":200},"表示芯片品牌/厂商来源。",{"type":17,"tag":75,"props":202,"children":203},{},[204,209,214],{"type":17,"tag":97,"props":205,"children":206},{},[207],{"type":38,"value":208},"e4 / E4",{"type":17,"tag":97,"props":210,"children":211},{},[212],{"type":38,"value":213},"无铅端子表面处理代码（Pb-free finish）",{"type":17,"tag":97,"props":215,"children":216},{},[217],{"type":38,"value":218},"常见对应为 NiPdAu（镍-钯-金）类终端镀层，属于环保封装标识体系。",{"type":17,"tag":75,"props":220,"children":221},{},[222,227,232],{"type":17,"tag":97,"props":223,"children":224},{},[225],{"type":38,"value":226},"X",{"type":17,"tag":97,"props":228,"children":229},{},[230],{"type":38,"value":231},"厂家内部追溯字符/批次字符（非统一国际认证标志）",{"type":17,"tag":97,"props":233,"children":234},{},[235],{"type":38,"value":236},"常用于生产追踪、批次或工艺区分；单独一个 X 通常不等于 WEEE 垃圾桶标志。",{"type":17,"tag":238,"props":239,"children":241},"h2",{"id":240},"假的-stm32-芯片",[242],{"type":38,"value":243},"假的 STM32 芯片",{"type":38,"value":245},"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",{"type":17,"tag":67,"props":247,"children":248},{},[249,270],{"type":17,"tag":71,"props":250,"children":251},{},[252],{"type":17,"tag":75,"props":253,"children":254},{},[255,260,265],{"type":17,"tag":79,"props":256,"children":257},{},[258],{"type":38,"value":259},"英文缩写",{"type":17,"tag":79,"props":261,"children":262},{},[263],{"type":38,"value":264},"中文名称",{"type":17,"tag":79,"props":266,"children":267},{},[268],{"type":38,"value":269},"作用解读",{"type":17,"tag":90,"props":271,"children":272},{},[273,295,316,337,358,379,400,421,442,463,484,505,526,547,568,589,610,631,652,673,694,715,736,757],{"type":17,"tag":75,"props":274,"children":275},{},[276,285,290],{"type":17,"tag":97,"props":277,"children":278},{},[279],{"type":17,"tag":280,"props":281,"children":282},"strong",{},[283],{"type":38,"value":284},"NVIC",{"type":17,"tag":97,"props":286,"children":287},{},[288],{"type":38,"value":289},"嵌套向量中断控制器",{"type":17,"tag":97,"props":291,"children":292},{},[293],{"type":38,"value":294},"ARM Cortex-M 内核的核心中断管理系统，负责所有中断的优先级分组、向量表管理和嵌套处理，确保中断高效响应。",{"type":17,"tag":75,"props":296,"children":297},{},[298,306,311],{"type":17,"tag":97,"props":299,"children":300},{},[301],{"type":17,"tag":280,"props":302,"children":303},{},[304],{"type":38,"value":305},"SysTick",{"type":17,"tag":97,"props":307,"children":308},{},[309],{"type":38,"value":310},"系统滴答定时器",{"type":17,"tag":97,"props":312,"children":313},{},[314],{"type":38,"value":315},"提供系统时基（滴答），常用于操作系统心跳、精确延时、时间片调度，是大多数 RTOS 的基础定时器。",{"type":17,"tag":75,"props":317,"children":318},{},[319,327,332],{"type":17,"tag":97,"props":320,"children":321},{},[322],{"type":17,"tag":280,"props":323,"children":324},{},[325],{"type":38,"value":326},"RCC",{"type":17,"tag":97,"props":328,"children":329},{},[330],{"type":38,"value":331},"复位和时钟控制",{"type":17,"tag":97,"props":333,"children":334},{},[335],{"type":38,"value":336},"统一管理芯片复位和所有外设的时钟使能、分频、倍频，是开启任何外设前必须配置的“总开关”。",{"type":17,"tag":75,"props":338,"children":339},{},[340,348,353],{"type":17,"tag":97,"props":341,"children":342},{},[343],{"type":17,"tag":280,"props":344,"children":345},{},[346],{"type":38,"value":347},"GPIO",{"type":17,"tag":97,"props":349,"children":350},{},[351],{"type":38,"value":352},"通用IO口",{"type":17,"tag":97,"props":354,"children":355},{},[356],{"type":38,"value":357},"最基础的输入输出引脚，可配置为输入、输出、上拉、下拉、开漏等模式，用于控制 LED、按键等。",{"type":17,"tag":75,"props":359,"children":360},{},[361,369,374],{"type":17,"tag":97,"props":362,"children":363},{},[364],{"type":17,"tag":280,"props":365,"children":366},{},[367],{"type":38,"value":368},"AFIO",{"type":17,"tag":97,"props":370,"children":371},{},[372],{"type":38,"value":373},"复用IO口",{"type":17,"tag":97,"props":375,"children":376},{},[377],{"type":38,"value":378},"STM32F1 系列特有，用于引脚功能重映射（Remap），让同一个引脚能切换不同外设功能。",{"type":17,"tag":75,"props":380,"children":381},{},[382,390,395],{"type":17,"tag":97,"props":383,"children":384},{},[385],{"type":17,"tag":280,"props":386,"children":387},{},[388],{"type":38,"value":389},"EXTI",{"type":17,"tag":97,"props":391,"children":392},{},[393],{"type":38,"value":394},"外部中断",{"type":17,"tag":97,"props":396,"children":397},{},[398],{"type":38,"value":399},"外部引脚中断/事件控制器，支持上升沿、下降沿、双沿触发，可唤醒低功耗模式。",{"type":17,"tag":75,"props":401,"children":402},{},[403,411,416],{"type":17,"tag":97,"props":404,"children":405},{},[406],{"type":17,"tag":280,"props":407,"children":408},{},[409],{"type":38,"value":410},"TIM",{"type":17,"tag":97,"props":412,"children":413},{},[414],{"type":38,"value":415},"定时器",{"type":17,"tag":97,"props":417,"children":418},{},[419],{"type":38,"value":420},"通用/高级定时器，支持定时、PWM 输出、输入捕获、编码器接口、互补输出等，是最常用的外设之一。",{"type":17,"tag":75,"props":422,"children":423},{},[424,432,437],{"type":17,"tag":97,"props":425,"children":426},{},[427],{"type":17,"tag":280,"props":428,"children":429},{},[430],{"type":38,"value":431},"ADC",{"type":17,"tag":97,"props":433,"children":434},{},[435],{"type":38,"value":436},"模数转换器",{"type":17,"tag":97,"props":438,"children":439},{},[440],{"type":38,"value":441},"将外部模拟电压（0~3.3V）转换为数字值，支持多通道、扫描模式、DMA 传输，常用于采集传感器数据。",{"type":17,"tag":75,"props":443,"children":444},{},[445,453,458],{"type":17,"tag":97,"props":446,"children":447},{},[448],{"type":17,"tag":280,"props":449,"children":450},{},[451],{"type":38,"value":452},"DMA",{"type":17,"tag":97,"props":454,"children":455},{},[456],{"type":38,"value":457},"直接内存访问",{"type":17,"tag":97,"props":459,"children":460},{},[461],{"type":38,"value":462},"外设与内存之间高速数据搬运（无需 CPU 参与），极大减轻 CPU 负担，常用在 ADC、SPI、USART 等高速传输场景。",{"type":17,"tag":75,"props":464,"children":465},{},[466,474,479],{"type":17,"tag":97,"props":467,"children":468},{},[469],{"type":17,"tag":280,"props":470,"children":471},{},[472],{"type":38,"value":473},"USART",{"type":17,"tag":97,"props":475,"children":476},{},[477],{"type":38,"value":478},"同步/异步串口通信",{"type":17,"tag":97,"props":480,"children":481},{},[482],{"type":38,"value":483},"通用同步异步收发器（UART/USART），用于串口通信（如调试打印、GPS、蓝牙模块）。",{"type":17,"tag":75,"props":485,"children":486},{},[487,495,500],{"type":17,"tag":97,"props":488,"children":489},{},[490],{"type":17,"tag":280,"props":491,"children":492},{},[493],{"type":38,"value":494},"I2C",{"type":17,"tag":97,"props":496,"children":497},{},[498],{"type":38,"value":499},"I2C通信",{"type":17,"tag":97,"props":501,"children":502},{},[503],{"type":38,"value":504},"两线制串行总线（SDA+SCL），用于连接传感器、EEPROM、OLED 等，支持多设备挂载。",{"type":17,"tag":75,"props":506,"children":507},{},[508,516,521],{"type":17,"tag":97,"props":509,"children":510},{},[511],{"type":17,"tag":280,"props":512,"children":513},{},[514],{"type":38,"value":515},"SPI",{"type":17,"tag":97,"props":517,"children":518},{},[519],{"type":38,"value":520},"SPI通信",{"type":17,"tag":97,"props":522,"children":523},{},[524],{"type":38,"value":525},"高速同步串行外围接口（全双工），常用于 Flash、LCD、SD 卡、传感器等高速通信。",{"type":17,"tag":75,"props":527,"children":528},{},[529,537,542],{"type":17,"tag":97,"props":530,"children":531},{},[532],{"type":17,"tag":280,"props":533,"children":534},{},[535],{"type":38,"value":536},"CAN",{"type":17,"tag":97,"props":538,"children":539},{},[540],{"type":38,"value":541},"CAN通信",{"type":17,"tag":97,"props":543,"children":544},{},[545],{"type":38,"value":546},"控制器局域网总线，工业/汽车领域标准总线，支持多机通信、抗干扰能力强。",{"type":17,"tag":75,"props":548,"children":549},{},[550,558,563],{"type":17,"tag":97,"props":551,"children":552},{},[553],{"type":17,"tag":280,"props":554,"children":555},{},[556],{"type":38,"value":557},"USB",{"type":17,"tag":97,"props":559,"children":560},{},[561],{"type":38,"value":562},"USB通信",{"type":17,"tag":97,"props":564,"children":565},{},[566],{"type":38,"value":567},"USB 设备控制器，支持 USB 全速设备模式（如虚拟串口、HID、MSC）。",{"type":17,"tag":75,"props":569,"children":570},{},[571,579,584],{"type":17,"tag":97,"props":572,"children":573},{},[574],{"type":17,"tag":280,"props":575,"children":576},{},[577],{"type":38,"value":578},"RTC",{"type":17,"tag":97,"props":580,"children":581},{},[582],{"type":38,"value":583},"实时时钟",{"type":17,"tag":97,"props":585,"children":586},{},[587],{"type":38,"value":588},"独立实时时钟模块，可在主电源关闭时（VBAT 供电）继续计时日期和时间。",{"type":17,"tag":75,"props":590,"children":591},{},[592,600,605],{"type":17,"tag":97,"props":593,"children":594},{},[595],{"type":17,"tag":280,"props":596,"children":597},{},[598],{"type":38,"value":599},"CRC",{"type":17,"tag":97,"props":601,"children":602},{},[603],{"type":38,"value":604},"CRC校验",{"type":17,"tag":97,"props":606,"children":607},{},[608],{"type":38,"value":609},"硬件循环冗余校验单元，快速计算数据包的 CRC 校验码，提升通信可靠性。",{"type":17,"tag":75,"props":611,"children":612},{},[613,621,626],{"type":17,"tag":97,"props":614,"children":615},{},[616],{"type":17,"tag":280,"props":617,"children":618},{},[619],{"type":38,"value":620},"PWR",{"type":17,"tag":97,"props":622,"children":623},{},[624],{"type":38,"value":625},"电源控制",{"type":17,"tag":97,"props":627,"children":628},{},[629],{"type":38,"value":630},"管理芯片各种低功耗模式（睡眠、停机、待机），以及电源电压监测（PVD）。",{"type":17,"tag":75,"props":632,"children":633},{},[634,642,647],{"type":17,"tag":97,"props":635,"children":636},{},[637],{"type":17,"tag":280,"props":638,"children":639},{},[640],{"type":38,"value":641},"BKP",{"type":17,"tag":97,"props":643,"children":644},{},[645],{"type":38,"value":646},"备份寄存器",{"type":17,"tag":97,"props":648,"children":649},{},[650],{"type":38,"value":651},"位于备份域的少量寄存器，在 VBAT 供电下数据不丢失，常用于保存关键参数。",{"type":17,"tag":75,"props":653,"children":654},{},[655,663,668],{"type":17,"tag":97,"props":656,"children":657},{},[658],{"type":17,"tag":280,"props":659,"children":660},{},[661],{"type":38,"value":662},"IWDG",{"type":17,"tag":97,"props":664,"children":665},{},[666],{"type":38,"value":667},"独立看门狗",{"type":17,"tag":97,"props":669,"children":670},{},[671],{"type":38,"value":672},"使用独立 RC 振荡器工作的看门狗，程序必须定期“喂狗”，否则芯片自动复位（防死机）。",{"type":17,"tag":75,"props":674,"children":675},{},[676,684,689],{"type":17,"tag":97,"props":677,"children":678},{},[679],{"type":17,"tag":280,"props":680,"children":681},{},[682],{"type":38,"value":683},"WWDG",{"type":17,"tag":97,"props":685,"children":686},{},[687],{"type":38,"value":688},"窗口看门狗",{"type":17,"tag":97,"props":690,"children":691},{},[692],{"type":38,"value":693},"使用主时钟的看门狗，必须在“时间窗口”内喂狗，比 IWDG 更严格。",{"type":17,"tag":75,"props":695,"children":696},{},[697,705,710],{"type":17,"tag":97,"props":698,"children":699},{},[700],{"type":17,"tag":280,"props":701,"children":702},{},[703],{"type":38,"value":704},"DAC",{"type":17,"tag":97,"props":706,"children":707},{},[708],{"type":38,"value":709},"数模转换器",{"type":17,"tag":97,"props":711,"children":712},{},[713],{"type":38,"value":714},"将数字值转换为模拟电压输出，用于产生音频信号、波形等。",{"type":17,"tag":75,"props":716,"children":717},{},[718,726,731],{"type":17,"tag":97,"props":719,"children":720},{},[721],{"type":17,"tag":280,"props":722,"children":723},{},[724],{"type":38,"value":725},"SDIO",{"type":17,"tag":97,"props":727,"children":728},{},[729],{"type":38,"value":730},"SD卡接口",{"type":17,"tag":97,"props":732,"children":733},{},[734],{"type":38,"value":735},"专用的 SD/SDIO 卡接口，支持 SD 卡、SDIO WiFi/蓝牙模块等。",{"type":17,"tag":75,"props":737,"children":738},{},[739,747,752],{"type":17,"tag":97,"props":740,"children":741},{},[742],{"type":17,"tag":280,"props":743,"children":744},{},[745],{"type":38,"value":746},"FSMC",{"type":17,"tag":97,"props":748,"children":749},{},[750],{"type":38,"value":751},"可变静态存储控制器",{"type":17,"tag":97,"props":753,"children":754},{},[755],{"type":38,"value":756},"连接外部静态存储器（如 SRAM、NOR Flash、NAND Flash、LCD 屏），扩展存储和显示能力。",{"type":17,"tag":75,"props":758,"children":759},{},[760,768,773],{"type":17,"tag":97,"props":761,"children":762},{},[763],{"type":17,"tag":280,"props":764,"children":765},{},[766],{"type":38,"value":767},"USB OTG",{"type":17,"tag":97,"props":769,"children":770},{},[771],{"type":38,"value":772},"USB主机接口",{"type":17,"tag":97,"props":774,"children":775},{},[776],{"type":38,"value":777},"USB On-The-Go 控制器，支持 USB 主机、设备、OTG 模式（部分高性能 STM32 才有）。",{"title":7,"searchDepth":779,"depth":779,"links":780},2,[781],{"id":240,"depth":779,"text":243},"markdown","content:book:stm32.md","content","book/stm32.md","md",{"loc":788},"https://m.ritsu.jiangxue.org/book/stm32",{"script":790,"meta":798},[791],{"id":792,"type":793,"processTemplateParams":794,"innerHTML":795,"tagPosition":796,"tagPriority":797},"nuxt-og-image-overrides","application/json",true,"[{\"title\":1,\"excerpt\":-1,\"component\":2},\"STM32\",\"OgImageCustom\"]","bodyClose",30,[799,802,805,808,811,813,816,818,820,822],{"property":800,"content":801},"og:image","/__og-image__/static/book/stm32/og.png",{"property":803,"content":804},"og:image:width",1200,{"property":806,"content":807},"og:image:height",600,{"property":809,"content":810},"og:image:type","image/png",{"property":812},"og:image:alt",{"name":814,"content":815},"twitter:card","summary_large_image",{"name":817,"content":801},"twitter:image:src",{"name":819,"content":804},"twitter:image:width",{"name":821,"content":807},"twitter:image:height",{"name":823},"twitter:image:alt",1792876277241]