{"id":31026,"date":"2025-04-21T07:07:26","date_gmt":"2025-04-20T23:07:26","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/31026.html"},"modified":"2025-04-21T07:07:26","modified_gmt":"2025-04-20T23:07:26","slug":"%e4%bd%bf%e7%94%a8stm32cubemxdma%e7%a9%ba%e9%97%b2%e4%b8%ad%e6%96%ad%e5%ae%9e%e7%8e%b0%e4%b8%b2%e5%8f%a3%e6%8e%a5%e6%94%b6%e5%92%8c%e5%8f%91%e9%80%81%e6%95%b0%e6%8d%ae%ef%bc%88stm32g070cbt6%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/31026.html","title":{"rendered":"\u4f7f\u7528STM32CubeMX+DMA+\u7a7a\u95f2\u4e2d\u65ad\u5b9e\u73b0\u4e32\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff08STM32G070CBT6\uff09"},"content":{"rendered":"<h2>1.STM32CubeMX\u914d\u7f6e<\/h2>\n<h3>&#xff08;1&#xff09;\u914d\u7f6eSYS<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"867\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230721-68057e29ddc53.png\" width=\"1571\" \/><\/h3>\n<h3>&#xff08;2&#xff09;\u914d\u7f6eRCC<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"869\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230722-68057e2a93c60.png\" width=\"1570\" \/><\/p>\n<h3>&#xff08;3&#xff09;\u914d\u7f6e\u4e32\u53e3&#xff0c;\u6b64\u5904\u6211\u7528\u7684\u662f\u4e32\u53e34&#xff0c;\u5176\u4ed6\u4e32\u53e3\u4e5f\u662f\u4e00\u6837\u7684<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"867\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230723-68057e2b4f763.png\" width=\"1572\" \/><\/p>\n<h3>&#xff08;4&#xff09;\u914d\u7f6eDMA&#xff0c;\u5c06\u4e32\u53e34\u7684TX\u548cRX\u6dfb\u52a0\u5230DMA\u4e2d<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"867\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230724-68057e2c0925b.png\" width=\"1576\" \/><\/p>\n<h3>&#xff08;5&#xff09;\u5230\u8fd9\u91cc\u5c31\u5168\u90e8\u914d\u7f6e\u597d\u4e86&#xff0c;\u751f\u6210\u4ee3\u7801\u5373\u53ef<\/h3>\n<h2>2.\u4ee3\u7801\u7f16\u5199<\/h2>\n<h3>&#xff08;1&#xff09;\u5148\u5b9a\u4e49\u4e00\u4e2a\u6570\u7ec4\u7528\u4e8e\u5b58\u50a8\u4e32\u53e3\u63a5\u6536\u7684\u6570\u636e\u3002<\/h3>\n<p>uint8_t buffer[10]&#061;{0}; <\/p>\n<h3>&#xff08;2&#xff09;\u6253\u5f00DMA\u63a5\u6536\u548c\u5f00\u542f\u7a7a\u95f2\u4e2d\u65ad<\/h3>\n<p>HAL_UART_Receive_DMA(&amp;huart4,buffer,5);      \/\/\u6253\u5f00\u4e32\u53e3DMA\u63a5\u6536&#xff0c;\u6b64\u5904\u662f\u63a5\u65365\u4e2a\u6570\u636e&#xff0c;\u5b58\u5165\u5230buffer\u8fd9\u4e2a\u6570\u7ec4\u4e2d<br \/>\n__HAL_UART_ENABLE_IT(&amp;huart4,UART_IT_IDLE);   \/\/\u5f00\u542f\u7a7a\u95f2\u4e2d\u65ad&#xff0c;\u8fdb\u5165\u7a7a\u95f2\u5c31\u6253\u5f00\u4e2d\u65ad <\/p>\n<h3>&#xff08;3&#xff09;\u5728\u4e32\u53e3\u4e2d\u65ad\u51fd\u6570\u4e2d\u7f16\u5199\u76f8\u5173\u529f\u80fd\u4ee3\u7801<\/h3>\n<p>\u6ce8\u610f&#xff1a;__HAL_DMA_GET_COUNTER\u51fd\u6570\u83b7\u53d6DMA\u4e2d\u672a\u4f20\u8f93\u7684\u6570\u636e\u4e2a\u6570&#xff0c;\u6240\u4ee5\u8981\u8ba1\u7b97DMA\u63a5\u6536\u5230\u4e86\u591a\u5c11\u4e2a\u6570&#xff0c;\u9700\u8981\u7528\u5b9a\u4e49\u63a5\u6536\u7684\u6570\u7ec4\u5927\u5c0f\u51cf\u53bb\u8be5\u51fd\u6570\u8fd4\u56de\u503c\u3002<\/p>\n<p>void USART3_4_IRQHandler(void)<br \/>\n{<br \/>\n  \/* USER CODE BEGIN USART3_4_IRQn 0 *\/<br \/>\n    if(__HAL_UART_GET_FLAG(&amp;huart4,UART_FLAG_IDLE) !&#061; RESET) \/\/\u8fdb\u5165\u7a7a\u95f2\u72b6\u6001\u89e6\u53d1\u5f53\u524d\u4e2d\u65ad<br \/>\n    {<br \/>\n        __HAL_UART_CLEAR_IDLEFLAG(&amp;huart4); \/\/\u6e05\u9664\u7a7a\u95f2\u4e2d\u65ad\u6807\u5fd7\u4f4d<br \/>\n        HAL_UART_DMAStop(&amp;huart4);  \/\/\u505c\u6b62DMA&#xff0c;\u8fdb\u5165\u4e00\u6b21\u7a7a\u95f2\u4e2d\u65ad\u8868\u793aDMA\u4f20\u8f93\u5b8c\u6210<br \/>\n        uint8_t len &#061; 10 &#8211; __HAL_DMA_GET_COUNTER(huart4.hdmarx); \/\/\u5b9e\u9645\u4e0a\u63a5\u6536\u5230\u7684\u6570\u636e<br \/>\n        HAL_UART_Transmit_DMA(&amp;huart4,buffer,len); \/\/\u53d1\u9001\u6570\u636e\u5230\u4e32\u53e3<br \/>\n        HAL_UART_Receive_DMA(&amp;huart4,buffer, 5);    \/\/\u6253\u5f00DMA\u518d\u4e00\u6b21\u63a5\u6536\u6570\u636e<br \/>\n    }<br \/>\n  \/* USER CODE END USART3_4_IRQn 0 *\/<br \/>\n  HAL_UART_IRQHandler(&amp;huart4);<br \/>\n  \/* USER CODE BEGIN USART3_4_IRQn 1 *\/<\/p>\n<p>  \/* USER CODE END USART3_4_IRQn 1 *\/<br \/>\n} <\/p>\n<h3>&#xff08;4&#xff09;\u8d34\u51famain.c\u5168\u90e8\u4ee3\u7801<\/h3>\n<p>\/* USER CODE BEGIN Header *\/<br \/>\n\/**<br \/>\n  ******************************************************************************<br \/>\n  * &#064;file           : main.c<br \/>\n  * &#064;brief          : Main program body<br \/>\n  ******************************************************************************<br \/>\n  * &#064;attention<br \/>\n  *<br \/>\n  * Copyright (c) 2025 STMicroelectronics.<br \/>\n  * All rights reserved.<br \/>\n  *<br \/>\n  * This software is licensed under terms that can be found in the LICENSE file<br \/>\n  * in the root directory of this software component.<br \/>\n  * If no LICENSE file comes with this software, it is provided AS-IS.<br \/>\n  *<br \/>\n  ******************************************************************************<br \/>\n  *\/<br \/>\n\/* USER CODE END Header *\/<br \/>\n\/* Includes &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*\/<br \/>\n#include &#034;main.h&#034;<br \/>\n#include &#034;dma.h&#034;<br \/>\n#include &#034;usart.h&#034;<br \/>\n#include &#034;gpio.h&#034;<\/p>\n<p>\/* Private includes &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*\/<br \/>\n\/* USER CODE BEGIN Includes *\/<\/p>\n<p>\/* USER CODE END Includes *\/<\/p>\n<p>\/* Private typedef &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;*\/<br \/>\n\/* USER CODE BEGIN PTD *\/<\/p>\n<p>\/* USER CODE END PTD *\/<\/p>\n<p>\/* Private define &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*\/<br \/>\n\/* USER CODE BEGIN PD *\/<\/p>\n<p>\/* USER CODE END PD *\/<\/p>\n<p>\/* Private macro &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*\/<br \/>\n\/* USER CODE BEGIN PM *\/<\/p>\n<p>\/* USER CODE END PM *\/<\/p>\n<p>\/* Private variables &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*\/<\/p>\n<p>\/* USER CODE BEGIN PV *\/<\/p>\n<p>\/* USER CODE END PV *\/<\/p>\n<p>\/* Private function prototypes &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;*\/<br \/>\nvoid SystemClock_Config(void);<br \/>\n\/* USER CODE BEGIN PFP *\/<\/p>\n<p>\/* USER CODE END PFP *\/<\/p>\n<p>\/* Private user code &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*\/<br \/>\n\/* USER CODE BEGIN 0 *\/<br \/>\nuint8_t buffer[10]&#061;{0};<\/p>\n<p>\/**<br \/>\n  * &#064;brief This function handles USART3 and USART4 interrupts.<br \/>\n  *\/<br \/>\nvoid USART3_4_IRQHandler(void)<br \/>\n{<br \/>\n  \/* USER CODE BEGIN USART3_4_IRQn 0 *\/<br \/>\n    if(__HAL_UART_GET_FLAG(&amp;huart4,UART_FLAG_IDLE) !&#061; RESET) \/\/\u8fdb\u5165\u7a7a\u95f2\u72b6\u6001\u89e6\u53d1\u5f53\u524d\u4e2d\u65ad<br \/>\n    {<br \/>\n        __HAL_UART_CLEAR_IDLEFLAG(&amp;huart4); \/\/\u6e05\u9664\u7a7a\u95f2\u4e2d\u65ad\u6807\u5fd7\u4f4d<br \/>\n        HAL_UART_DMAStop(&amp;huart4);  \/\/\u505c\u6b62DMA&#xff0c;\u8fdb\u5165\u4e00\u6b21\u7a7a\u95f2\u4e2d\u65ad\u8868\u793aDMA\u4f20\u8f93\u5b8c\u6210<br \/>\n        uint8_t len &#061; 10 &#8211; __HAL_DMA_GET_COUNTER(huart4.hdmarx); \/\/\u5b9e\u9645\u4e0a\u63a5\u6536\u5230\u7684\u6570\u636e<br \/>\n        HAL_UART_Transmit_DMA(&amp;huart4,buffer,len); \/\/\u53d1\u9001\u6570\u636e\u5230\u4e32\u53e3<br \/>\n        HAL_UART_Receive_DMA(&amp;huart4,buffer, 5);    \/\/\u6253\u5f00DMA\u518d\u4e00\u6b21\u63a5\u6536\u6570\u636e<br \/>\n    }<br \/>\n  \/* USER CODE END USART3_4_IRQn 0 *\/<br \/>\n  HAL_UART_IRQHandler(&amp;huart4);<br \/>\n  \/* USER CODE BEGIN USART3_4_IRQn 1 *\/<\/p>\n<p>  \/* USER CODE END USART3_4_IRQn 1 *\/<br \/>\n}<\/p>\n<p>\/* USER CODE END 0 *\/<\/p>\n<p>\/**<br \/>\n  * &#064;brief  The application entry point.<br \/>\n  * &#064;retval int<br \/>\n  *\/<br \/>\nint main(void)<br \/>\n{<\/p>\n<p>  \/* USER CODE BEGIN 1 *\/<\/p>\n<p>  \/* USER CODE END 1 *\/<\/p>\n<p>  \/* MCU Configuration&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;*\/<\/p>\n<p>  \/* Reset of all peripherals, Initializes the Flash interface and the Systick. *\/<br \/>\n  HAL_Init();<\/p>\n<p>  \/* USER CODE BEGIN Init *\/<\/p>\n<p>  \/* USER CODE END Init *\/<\/p>\n<p>  \/* Configure the system clock *\/<br \/>\n  SystemClock_Config();<\/p>\n<p>  \/* USER CODE BEGIN SysInit *\/<\/p>\n<p>  \/* USER CODE END SysInit *\/<\/p>\n<p>  \/* Initialize all configured peripherals *\/<br \/>\n  MX_GPIO_Init();<br \/>\n  MX_DMA_Init();<br \/>\n  MX_USART4_UART_Init();<br \/>\n  \/* USER CODE BEGIN 2 *\/<\/p>\n<p>    HAL_UART_Receive_DMA(&amp;huart4,buffer,5);      \/\/\u6253\u5f00\u4e32\u53e3DMA\u63a5\u6536&#xff0c;\u6b64\u5904\u662f\u63a5\u65365\u4e2a\u6570\u636e&#xff0c;\u5b58\u5165\u5230buffer\u8fd9\u4e2a\u6570\u7ec4\u4e2d<br \/>\n    __HAL_UART_ENABLE_IT(&amp;huart4,UART_IT_IDLE);   \/\/\u5f00\u542f\u7a7a\u95f2\u4e2d\u65ad&#xff0c;\u8fdb\u5165\u7a7a\u95f2\u5c31\u6253\u5f00\u4e2d\u65ad<\/p>\n<p>  \/* USER CODE END 2 *\/<\/p>\n<p>  \/* Infinite loop *\/<br \/>\n  \/* USER CODE BEGIN WHILE *\/<br \/>\n  while (1)<br \/>\n  {<br \/>\n    \/* USER CODE END WHILE *\/<\/p>\n<p>    \/* USER CODE BEGIN 3 *\/<br \/>\n  }<br \/>\n  \/* USER CODE END 3 *\/<br \/>\n}<\/p>\n<p>\/**<br \/>\n  * &#064;brief System Clock Configuration<br \/>\n  * &#064;retval None<br \/>\n  *\/<br \/>\nvoid SystemClock_Config(void)<br \/>\n{<br \/>\n  RCC_OscInitTypeDef RCC_OscInitStruct &#061; {0};<br \/>\n  RCC_ClkInitTypeDef RCC_ClkInitStruct &#061; {0};<\/p>\n<p>  \/** Configure the main internal regulator output voltage<br \/>\n  *\/<br \/>\n  HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1);<\/p>\n<p>  \/** Initializes the RCC Oscillators according to the specified parameters<br \/>\n  * in the RCC_OscInitTypeDef structure.<br \/>\n  *\/<br \/>\n  RCC_OscInitStruct.OscillatorType &#061; RCC_OSCILLATORTYPE_HSI;<br \/>\n  RCC_OscInitStruct.HSIState &#061; RCC_HSI_ON;<br \/>\n  RCC_OscInitStruct.HSIDiv &#061; RCC_HSI_DIV1;<br \/>\n  RCC_OscInitStruct.HSICalibrationValue &#061; RCC_HSICALIBRATION_DEFAULT;<br \/>\n  RCC_OscInitStruct.PLL.PLLState &#061; RCC_PLL_NONE;<br \/>\n  if (HAL_RCC_OscConfig(&amp;RCC_OscInitStruct) !&#061; HAL_OK)<br \/>\n  {<br \/>\n    Error_Handler();<br \/>\n  }<\/p>\n<p>  \/** Initializes the CPU, AHB and APB buses clocks<br \/>\n  *\/<br \/>\n  RCC_ClkInitStruct.ClockType &#061; RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK<br \/>\n                              |RCC_CLOCKTYPE_PCLK1;<br \/>\n  RCC_ClkInitStruct.SYSCLKSource &#061; RCC_SYSCLKSOURCE_HSI;<br \/>\n  RCC_ClkInitStruct.AHBCLKDivider &#061; RCC_SYSCLK_DIV1;<br \/>\n  RCC_ClkInitStruct.APB1CLKDivider &#061; RCC_HCLK_DIV1;<\/p>\n<p>  if (HAL_RCC_ClockConfig(&amp;RCC_ClkInitStruct, FLASH_LATENCY_0) !&#061; HAL_OK)<br \/>\n  {<br \/>\n    Error_Handler();<br \/>\n  }<br \/>\n}<\/p>\n<p>\/* USER CODE BEGIN 4 *\/<\/p>\n<p>\/* USER CODE END 4 *\/<\/p>\n<p>\/**<br \/>\n  * &#064;brief  This function is executed in case of error occurrence.<br \/>\n  * &#064;retval None<br \/>\n  *\/<br \/>\nvoid Error_Handler(void)<br \/>\n{<br \/>\n  \/* USER CODE BEGIN Error_Handler_Debug *\/<br \/>\n  \/* User can add his own implementation to report the HAL error return state *\/<br \/>\n  __disable_irq();<br \/>\n  while (1)<br \/>\n  {<br \/>\n  }<br \/>\n  \/* USER CODE END Error_Handler_Debug *\/<br \/>\n}<\/p>\n<p>#ifdef  USE_FULL_ASSERT<br \/>\n\/**<br \/>\n  * &#064;brief  Reports the name of the source file and the source line number<br \/>\n  *         where the assert_param error has occurred.<br \/>\n  * &#064;param  file: pointer to the source file name<br \/>\n  * &#064;param  line: assert_param error line source number<br \/>\n  * &#064;retval None<br \/>\n  *\/<br \/>\nvoid assert_failed(uint8_t *file, uint32_t line)<br \/>\n{<br \/>\n  \/* USER CODE BEGIN 6 *\/<br \/>\n  \/* User can add his own implementation to report the file name and line number,<br \/>\n     ex: printf(&#034;Wrong parameters value: file %s on line %d\\\\r\\\\n&#034;, file, line) *\/<br \/>\n  \/* USER CODE END 6 *\/<br \/>\n}<br \/>\n#endif \/* USE_FULL_ASSERT *\/<\/p>\n<h2>3.\u5b9e\u73b0\u6548\u679c<\/h2>\n<p>\u4e32\u53e3\u53d1\u9001\u4ec0\u4e48\u6570\u636e\u5c31\u63a5\u6536\u5230\u4ec0\u4e48\u6570\u636e\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"676\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230724-68057e2cb82ba.png\" width=\"802\" \/><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb968\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf5\u6b21\u3002\u51fd\u6570\u83b7\u53d6DMA\u4e2d\u672a\u4f20\u8f93\u7684\u6570\u636e\u4e2a\u6570\uff0c\u6240\u4ee5\u8981\u8ba1\u7b97DMA\u63a5\u6536\u5230\u4e86\u591a\u5c11\u4e2a\u6570\uff0c\u9700\u8981\u7528\u5b9a\u4e49\u63a5\u6536\u7684\u6570\u7ec4\u5927\u5c0f\u51cf\u53bb\u8be5\u51fd\u6570\u8fd4\u56de\u503c\u3002\u4e32\u53e3\u53d1\u9001\u4ec0\u4e48\u6570\u636e\u5c31\u63a5\u6536\u5230\u4ec0\u4e48\u6570\u636e\u3002_stm32cubemx dma \u4e32\u53e3\u7a7a\u95f2\u4e2d\u65ad<\/p>\n","protected":false},"author":2,"featured_media":31021,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[217,270,269],"topic":[],"class_list":["post-31026","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-stm32","tag-270","tag-269"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528STM32CubeMX+DMA+\u7a7a\u95f2\u4e2d\u65ad\u5b9e\u73b0\u4e32\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff08STM32G070CBT6\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/31026.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528STM32CubeMX+DMA+\u7a7a\u95f2\u4e2d\u65ad\u5b9e\u73b0\u4e32\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff08STM32G070CBT6\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb968\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf5\u6b21\u3002\u51fd\u6570\u83b7\u53d6DMA\u4e2d\u672a\u4f20\u8f93\u7684\u6570\u636e\u4e2a\u6570\uff0c\u6240\u4ee5\u8981\u8ba1\u7b97DMA\u63a5\u6536\u5230\u4e86\u591a\u5c11\u4e2a\u6570\uff0c\u9700\u8981\u7528\u5b9a\u4e49\u63a5\u6536\u7684\u6570\u7ec4\u5927\u5c0f\u51cf\u53bb\u8be5\u51fd\u6570\u8fd4\u56de\u503c\u3002\u4e32\u53e3\u53d1\u9001\u4ec0\u4e48\u6570\u636e\u5c31\u63a5\u6536\u5230\u4ec0\u4e48\u6570\u636e\u3002_stm32cubemx dma \u4e32\u53e3\u7a7a\u95f2\u4e2d\u65ad\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/31026.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-20T23:07:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230721-68057e29ddc53.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/31026.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/31026.html\",\"name\":\"\u4f7f\u7528STM32CubeMX+DMA+\u7a7a\u95f2\u4e2d\u65ad\u5b9e\u73b0\u4e32\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff08STM32G070CBT6\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-20T23:07:26+00:00\",\"dateModified\":\"2025-04-20T23:07:26+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/31026.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/31026.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/31026.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528STM32CubeMX+DMA+\u7a7a\u95f2\u4e2d\u65ad\u5b9e\u73b0\u4e32\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff08STM32G070CBT6\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528STM32CubeMX+DMA+\u7a7a\u95f2\u4e2d\u65ad\u5b9e\u73b0\u4e32\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff08STM32G070CBT6\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/31026.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528STM32CubeMX+DMA+\u7a7a\u95f2\u4e2d\u65ad\u5b9e\u73b0\u4e32\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff08STM32G070CBT6\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb968\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf5\u6b21\u3002\u51fd\u6570\u83b7\u53d6DMA\u4e2d\u672a\u4f20\u8f93\u7684\u6570\u636e\u4e2a\u6570\uff0c\u6240\u4ee5\u8981\u8ba1\u7b97DMA\u63a5\u6536\u5230\u4e86\u591a\u5c11\u4e2a\u6570\uff0c\u9700\u8981\u7528\u5b9a\u4e49\u63a5\u6536\u7684\u6570\u7ec4\u5927\u5c0f\u51cf\u53bb\u8be5\u51fd\u6570\u8fd4\u56de\u503c\u3002\u4e32\u53e3\u53d1\u9001\u4ec0\u4e48\u6570\u636e\u5c31\u63a5\u6536\u5230\u4ec0\u4e48\u6570\u636e\u3002_stm32cubemx dma \u4e32\u53e3\u7a7a\u95f2\u4e2d\u65ad","og_url":"https:\/\/www.wsisp.com\/helps\/31026.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-20T23:07:26+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230721-68057e29ddc53.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/31026.html","url":"https:\/\/www.wsisp.com\/helps\/31026.html","name":"\u4f7f\u7528STM32CubeMX+DMA+\u7a7a\u95f2\u4e2d\u65ad\u5b9e\u73b0\u4e32\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff08STM32G070CBT6\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-20T23:07:26+00:00","dateModified":"2025-04-20T23:07:26+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/31026.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/31026.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/31026.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528STM32CubeMX+DMA+\u7a7a\u95f2\u4e2d\u65ad\u5b9e\u73b0\u4e32\u53e3\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\uff08STM32G070CBT6\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/31026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=31026"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/31026\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/31021"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=31026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=31026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=31026"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=31026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}