![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
串口
周星星_少年只有一个面
这个作者很懒,什么都没留下…
展开
-
STM32串口发送数据卡死
记录一个开发日常。DMA发送串口数据”卡死“使用DMA发送串口数据记得修改对应DMA中断处理函数。否则程序异常跳转跑飞。原创 2021-01-05 17:50:38 · 2085 阅读 · 4 评论 -
STM32WB55 用 cubemx 生成串口打印
1、设置Connectivity2、带蓝牙工程的打印配置添加用户代码a.添加头文件 “app_debug.h”/* USER CODE BEGIN Includes */#include "stm32_seq.h"#include "app_debug.h"/* USER CODE END Includes */b.添加初始化 APPD_Init();/* Initialize all configured peripherals */ MX_GPIO_Init(); M原创 2020-07-09 15:01:53 · 716 阅读 · 0 评论 -
串口重定向打印
放在usart.c#if 1#ifdef GNUC/* With GCC/RAISONANCE, small printf (option LD Linker->Libraries->Small printfset to ‘Yes’) calls __io_putchar() */#define PUTCHAR_PROTOTYPE int __io_putchar(int c...原创 2019-10-30 15:39:04 · 390 阅读 · 0 评论 -
52810串口接收断帧
_def_uart_ctl_t uart_ctl_t = { UART_RCV_IDLE, //0:没有数据在接收 1:有数据正在接收 0, //现在这一帧的接收字节数 0, //上一个超时检测中断的接收字节数};//串口接收空闲计时volatile uint16_t uart_rcv_idle_tick = 0...原创 2019-08-30 18:15:06 · 431 阅读 · 0 评论 -
记录nrf 52 串口的几个细节
rx脚要外接上拉或改nrf_gpio_cfg_input(p_config->pselrxd, NRF_GPIO_PIN_NOPULL);为nrf_gpio_cfg_input(p_config->pselrxd, NRF_GPIO_PIN_PULLUP);static void apply_config(nrfx_uarte_t const * p_instan...原创 2019-09-02 12:54:30 · 702 阅读 · 0 评论