OpenHarmony开发者论坛
标题: 编译出现 undefined reference to `hi_i2c_init' [打印本页]
作者: weili 时间: 2023-11-17 10:07
标题: 编译出现 undefined reference to `hi_i2c_init'
[md]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 to `hi_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!!!!
[/md]
作者: dragon 时间: 2023-11-17 10:26
标题: 编译出现 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
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) |
Powered by Discuz! X3.5 |