• Lv0
    粉丝0

积分21 / 贡献0

提问4答案被采纳0文章0

编译出现 undefined reference to `hi_i2c_init'

weili 显示全部楼层 发表于 2023-11-17 10:07:54

riscv32-unknown-elf-ld: ohos/libs/libhal_iothardware.a(hal_wifiiot_i2c.o): in function .L0 ': hal_wifiiot_i2c.c:(.text.HalI2cWrite+0x12): undefined reference tohi_i2c_write' riscv32-unknown-elf-ld: hal_wifiiot_i2c.c:(.text.HalI2cInit+0x12): undefined reference to `hi_i2c_init' scons: *** [output/bin/Hi3861_wifiiot_app.out] Error 1 BUILD FAILED!!!!

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

精彩评论1

dragon

沙发 发表于 2023-11-17 10:26:43

编译出现 undefined reference to `hi_i2c_init'

修改device/soc/hisilicon/hi3861v100/sdk_liteos/build/config/usr_config.mk文件
# CONFIG_I2C_SUPPORT is not set
修改为
CONFIG_I2C_SUPPORT=y

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部