您尚未登录。

楼主 # 昨天 23:45:06

Amichael
会员
注册时间: 昨天
已发帖子: 1
积分: 1

在STM32G0B1开发板上移植pika,遇到一个编译问题,大家看看怎么解决

1,STM32G0B1使用stm32 cubemx 生成工程
2,使用pika CMSIS-PACK 添加pika模块
3,添加#include "pikaScript.h"
4,编译报错如下
Build started: Project: Lua_G0B1
*** Using Compiler 'V6.23', folder: 'd:\Keil_v5\ARM\ARMCLANG\Bin'
Build target 'Lua_G0B1'
../Core/Src/main.c(26): warning: In file included from...
../MDK-ARM/RTE/PikaScript\pikaScript.h(8): warning: In file included from...
../MDK-ARM/RTE/PikaScript\PikaObj.h(88): warning: In file included from...
../MDK-ARM/RTE/PikaScript\__instruction_table.h(43): error: redefinition of enumerator 'OUT'
   43 | def_ins(OUT)
      |         ^
../Middlewares/ST/STM32_USB_Device_Library/Core/Inc\usbd_def.h(398): note: previous definition is here
  398 |   OUT   = 0x00,
      |   ^
1 error generated.
compiling main.c...
compiling app_fatfs.c...
compiling user_diskio.c...
compiling usbd_desc.c...
compiling usb_device.c...
compiling stm32g0xx_it.c...
compiling usbd_storage_if.c...
compiling stm32g0xx_hal_pcd_ex.c...

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn


太原小智科技有限责任公司 - 东莞哇酷科技有限公司联合开发