硬件配置 stm32l475-atk-pandora
软件环境 RT-Thread Studio生成stm32l475-atk-pandora工程
复现步骤
做如下修改
drv_uart.c — rt_hw_usart_init — rt_hw_serial_register 的RT_DEVICE_FLAG_INT_RX修改为RT_DEVICE_FLAG_DMA_RX,如下
生成程序,编译运行;
msh >(dev != RT_NULL) assertion failed at function:rt_device_read, line number:351
这里触发了断言,已经告诉你第几行了,检查一下这里为什么会触发断言。