STM32F407VGT6 增加UART6 出错

STM32系列
pyboard相关
回复
skylin008
帖子: 21
注册时间: 2020年 7月 21日 20:26

STM32F407VGT6 增加UART6 出错

#1

帖子 skylin008 »

pins_af_const.h:59:19: error: 'MP_QSTR_AF8_USART6' undeclared here (not in a function); did you mean 'MP_QSTR_AF8_UART5'?
   59 |     { MP_ROM_QSTR(MP_QSTR_AF8_USART6),     MP_ROM_INT(GPIO_AF8_USART6) },
      |                   ^~~~~~~~~~~~~~~~~~
../../py/obj.h:96:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
   96 | #define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 3) | 2))
      |                                                        ^~~
build-HJGZ01/genhdr/pins_af_const.h:59:7: note: in expansion of macro 'MP_ROM_QSTR'
   59 |     { MP_ROM_QSTR(MP_QSTR_AF8_USART6),     MP_ROM_INT(GPIO_AF8_USART6) },
      |       ^~~~~~~~~~~

出现此问题,请问大佬如何解决呢,谢谢!

skylin008
帖子: 21
注册时间: 2020年 7月 21日 20:26

Re: STM32F407VGT6 增加UART6 出错

#2

帖子 skylin008 »

make clean 后解决。

回复

  • 随机主题
    回复总数
    阅读次数
    最新文章