鸿蒙开发板hi3861_code-2.0-CANARY_hi_pwm_init编译报错报错-解决方法

hi_pwm_init编译报错报错

[OHOS ERROR] riscv32-unknown-elf-ld: ohos\libs\libled_demo2.a(libled_demo2.gpio_input_set.o): in function GpioTask': [OHOS ERROR] [OHOS ERROR] gpio_input_set.c:(.text.GpioTask+0x52): undefined reference to hi_pwm_init'
[OHOS ERROR]
[OHOS ERROR] scons: *** [output\bin\Hi3861_wifiiot_app.out] Error 1
[OHOS ERROR]
[OHOS ERROR] ?[91mBUILD FAILED!!!!?[0m
[OHOS ERROR]
[OHOS ERROR] Failed building output\bin\Hi3861_wifiiot_app.out: Error 1
[OHOS ERROR]
[OHOS ERROR] you can check build log in F:\code-2.0-canary\out\hispark_pegasus\wifiiot_hispark_pegasus\build.log
[OHOS ERROR] command: "F:\ninja_win\ninja.exe -w dupbuild=warn -C F:\code-2.0-canary\out\hispark_pegasus\wifiiot_hispark_pegasus" failed

F:\code-2.0-canary\device\hisilicon\hispark_pegasus\sdk_liteos\build\config\usr_config.mk

文件中新增CONFIG_PWM_SUPPORT=y  

# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
CONFIG_PWM_SUPPORT=y
#
# Target Chip
#
CONFIG_TARGET_CHIP_HI3861=y
# end of Target Chip

#
# Security Settings
#
# CONFIG_TARGET_SIG_RSA_V15 is not set
# CONFIG_TARGET_SIG_RSA_PSS is not set
# CONFIG_TARGET_SIG_ECC is not set
CONFIG_TARGET_SIG_SHA256=y
# CONFIG_BOOT_ENCRYPT is not set
CONFIG_TARGET_KERNEL_VER=0
CONFIG_TARGET_BOOT_VER=0
CONFIG_TEE_HUKS_SUPPORT=y
# CONFIG_TEE_HUKS_DEMO_SUPPORT is not set
# CONFIG_FLASH_ENCRYPT_SUPPORT is not set
# end of Security Settings

#
# Factory Test Settings
#
# CONFIG_FACTORY_TEST_SUPPORT is not set
# end of Factory Test Settings

#
# BSP Settings
#
# CONFIG_I2C_SUPPORT is not set
# CONFIG_I2S_SUPPORT is not set
# CONFIG_SPI_SUPPORT is not set
# CONFIG_DMA_SUPPORT is not set
# CONFIG_SDIO_SUPPORT is not set
# CONFIG_SPI_DMA_SUPPORT is not set
# CONFIG_UART_DMA_SUPPORT is not set
# CONFIG_PWM_SUPPORT is not set
# CONFIG_PWM_HOLD_AFTER_REBOOT is not set
CONFIG_AT_SUPPORT=y
CONFIG_FILE_SYSTEM_SUPPORT=y
CONFIG_UART0_SUPPORT=y
CONFIG_UART1_SUPPORT=y
# CONFIG_UART2_SUPPORT is not set
# end of BSP Settings

#
# WiFi Settings
#
CONFIG_CE_SUPPORT=y
# CONFIG_FCC_SUPPORT is not set
# CONFIG_MAX_POWER_SUPPORT is not set
# end of WiFi Settings

#
# Third Party library
#
# CONFIG_CJSON is not set
# CONFIG_CJSON_NESTING_LIMIT=1000
# CONFIG_LIBCOAP is not set
# CONFIG_MQTT is not set
CONFIG_IPERF=y
# end of Third Party library

#
# Lwip Settings
#
CONFIG_DHCPS_GW=y
# CONFIG_NETIF_HOSTNAME is not set
# CONFIG_DHCP_VENDOR_CLASS_IDENTIFIER is not set
# CONFIG_LWIP_LOWPOWER is not set
# end of Lwip Settings

#
# OTA Settings
#
CONFIG_COMPRESSION_OTA_SUPPORT=y
# CONFIG_DUAL_PARTITION_OTA_SUPPORT is not set
# end of OTA Settings

#
# Link Settings
#
# CONFIG_HILINK is not set
# end of Link Settings

#
# File System Settings
#
CONFIG_FILE_SYSTEM_SUPPORT=y
# end of File System Settings

#
# Debug Log Settings
#
# CONFIG_DIAG_SUPPORT is not set
# end of Debug Log Settings

1.0的参考:https://blog.csdn.net/ZZLLinux/article/details/112211330

  • 3
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

txwtech笛克特科

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值