嵌入式技术论坛
直播中

lalajie

8年用户 1222经验值
擅长:模拟技术 存储技术
私信 关注
[问答]

rtt-stdio新建工程编译后提示串口出错请问要怎么修改

../drivers/drv_usart.c:338:16: error: 'struct serial_configure' has no member named 'flowcontrol'
switch (cfg->flowcontrol)
^
../drivers/drv_usart.c:340:10: error: 'RT_SERIAL_FLOWCONTROL_NONE' undeclared (first use in this function)
case RT_SERIAL_FLOWCONTROL_NONE:
^
../drivers/drv_usart.c:340:10: note: each undeclared identifier is reported only once for each function it appears in
../drivers/drv_usart.c:343:10: error: 'RT_SERIAL_FLOWCONTROL_CTSRTS' undeclared (first use in this function)
case RT_SERIAL_FLOWCONTROL_CTSRTS:
^
arm-none-eabi-gcc "../applications/main.c"
make: *** [drivers/subdir.mk:99: drivers/drv_usart.o] Error 1
make: *** Waiting for unfinished jobs....
"make -j8 all" terminated with exit code 2. Build might be incomplete.

回帖(2)

张桂兰

2022-9-27 10:14:24
可以下载更低版本的CSP(Chip Support Package);或保持现有CSP,用高版本RTT。
举报

李辉

2022-9-27 10:14:34
我也遇到过 STM32F4出了0.2.3版本,RTT官方还没有更新导致,我们降到0.2.2即可。
1.jpg
举报

更多回帖

发帖
×
20
完善资料,
赚取积分