spi没有应用例程,自己想搞硬件spi出现以下报错

Viewed 4

一、描述你遇到的问题

[OHOS INFO] Set cache size limit to 100.0 GB
[OHOS INFO] Removed obj directory: /home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/obj
[OHOS WARNING] [PRELOAD] The target_cpu needs to be specified, default target_cpu=arm
[OHOS INFO] [PRELOAD] generated build prop info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/build.prop
[OHOS INFO] [PRELOAD] generated build config info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/build_config.json
[OHOS INFO] [PRELOAD] generated product parts info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/parts.json
[OHOS INFO] [PRELOAD] generated parts config info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/parts_config.json
[OHOS INFO] [PRELOAD] generated build gnargs prop info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/build_gnargs.prop
[OHOS INFO] [PRELOAD] generated features info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/features.json
[OHOS INFO] [PRELOAD] generated syscap info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/syscap.json
[OHOS INFO] [PRELOAD] generated exclusion modules info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/exclusion_modules.json
[OHOS INFO] [PRELOAD] generated platforms build info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/platforms.build
[OHOS INFO] [PRELOAD] generated subsystem config info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/subsystem_config.json
[OHOS INFO] [PRELOAD] generated system capability info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/systemcapability.json
[OHOS INFO] [PRELOAD] generated compile_standard_whitelist info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/compile_standard_whitelist.json
[OHOS INFO] [PRELOAD] generated compile_env_allowlist info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/compile_env_allowlist.json
[OHOS INFO] [PRELOAD] generated hvigor_compile_whitelist info to /home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/hvigor_compile_hap_whitelist.json
[OHOS INFO] The run time for _prebuild_and_preload is 0.01 s
[OHOS INFO] [LOAD] Checking all build args...
[OHOS INFO] [LOAD] The thread num for subsytem config scan is 4
[OHOS INFO] [LOAD] subsytem config scan completed
[OHOS INFO] [LOAD] all parts scan completed
[OHOS INFO] [LOAD] Loading configuration file...

[OHOS INFO] [LOAD] loader args:['platforms_config_file="/home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/platforms.build"', 'subsystem_config_file="/home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/subsystem_config.json"', 'example_subsystem_file=""', 'exclusion_modules_config_file="/home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/exclusion_modules.json"', 'source_root_dir="/home/bearpi/project/bearpi-hm_nano_2/"', 'gn_root_out_dir="out/bearpi_hm_nano_2/bearpi_hm_nano_2"', 'build_platform_name=phone', 'build_xts=False', 'load_test_config=True', 'target_os=ohos', 'target_cpu=arm', 'os_level=mini', "ignore_api_check=['xts', 'common', 'testfwk']", 'scalable_build=False', 'skip_partlist_check=False']
[OHOS INFO] [LOAD] Checking parts config...
[OHOS INFO] [LOAD] generated subsystem build config to '/home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build_configs/subsystem_info/subsystem_build_config.json'
[OHOS INFO] [LOAD] generated src subsystem info to '/home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build_configs/subsystem_info/src_subsystem_info.json'
[OHOS INFO] [LOAD] generated no src subsystem info to '/home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build_configs/subsystem_info/no_src_subsystem_info.json'
[OHOS INFO] [LOAD] generate target platform parts to '/home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build_configs/target_platforms_parts.json'
[OHOS INFO] [LOAD] generated system capabilities to '/home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build_configs/phone_system_capabilities.json'
[OHOS INFO] [LOAD] generated platforms parts by src to '/home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build_configs/platforms_parts_by_src.json'
[OHOS INFO] [LOAD] generate required parts targets to '/home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build_configs/required_parts_targets.json'
[OHOS INFO] [LOAD] generate build targets list file to '/home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build_configs/required_parts_targets_list.json'
[OHOS INFO] [LOAD] generated parts src flag to '/home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build_configs/subsystem_info/parts_src_flag.json'
[OHOS INFO] [LOAD] generate auto install part to '/home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build_configs/auto_install_parts.json'
[OHOS INFO] [LOAD] generate platforms list to '/home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build_configs/platforms_list.gni'
[OHOS INFO] [LOAD] generate part different info to '/home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build_configs/parts_different_info.json'
[OHOS INFO] [LOAD] generate infos for testfwk to '/home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build_configs/infos_for_testfwk.json'
[OHOS INFO] [LOAD] Checking all product features...
[OHOS INFO] [LOAD] generate syscap info file to '/home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/system/etc/SystemCapability.json'
[OHOS INFO] [LOAD] generate syscap info with part name list to '/home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/system/etc/syscap.json'
[OHOS INFO] [LOAD] generate target syscap for init list to '/home/bearpi/project/bearpi-hm_nano_2/out/preloader/bearpi_hm_nano_2/system/etc/param/syscap.para'

[OHOS INFO] [GN] Excuting gn command: /home/bearpi/project/bearpi-hm_nano_2/prebuilts/build-tools/linux-x86/bin/gn gen --args="product_name="bearpi_hm_nano_2" product_path="/home/bearpi/project/bearpi-hm_nano_2/vendor/bearpi/bearpi_hm_nano_2" product_config_path="/home/bearpi/project/bearpi-hm_nano_2/vendor/bearpi/bearpi_hm_nano_2" device_name="bearpi_hm_nano_2" device_path="/home/bearpi/project/bearpi-hm_nano_2/device/board/bearpi/bearpi_hm_nano_2/liteos_m" device_company="bearpi" device_config_path="/home/bearpi/project/bearpi-hm_nano_2/device/board/bearpi/bearpi_hm_nano_2/liteos_m" precise_branch="" is_mini_system=true ohos_kernel_type="liteos_m" ohos_build_compiler_specified="gcc" ohos_build_time=1794772557649 ohos_build_datetime="2026-11-16 11:55:57" huks_use_lite_storage=true huks_use_hardware_root_key=true huks_config_file="hks_config_lite.h" huks_dependency_mbedtls_path="//device/soc/hisilicon/ws63v100/sdk/open_source/mbedtls/mbedtls_v3.1.0" init_feature_begetctl_liteos=true init_lite_use_thirdparty_mbedtls=true utils_lite_feature_file=true enable_ohos_test_xts_acts_use_thirdparty_lwip=false ohos_build_enable_ccache=true use_thin_lto=false ohos_build_type="debug" device_type="default" build_variant="root" root_perf_main="main" runtime_mode="release"" --args=product_name="bearpi_hm_nano_2" product_path="/home/bearpi/project/bearpi-hm_nano_2/vendor/bearpi/bearpi_hm_nano_2" product_config_path="/home/bearpi/project/bearpi-hm_nano_2/vendor/bearpi/bearpi_hm_nano_2" device_name="bearpi_hm_nano_2" device_path="/home/bearpi/project/bearpi-hm_nano_2/device/board/bearpi/bearpi_hm_nano_2/liteos_m" device_company="bearpi" device_config_path="/home/bearpi/project/bearpi-hm_nano_2/device/board/bearpi/bearpi_hm_nano_2/liteos_m" precise_branch="" is_mini_system=true ohos_kernel_type="liteos_m" ohos_build_compiler_specified="gcc" ohos_build_time=1794772557649 ohos_build_datetime="2026-11-16 11:55:57" huks_use_lite_storage=true huks_use_hardware_root_key=true huks_config_file="hks_config_lite.h" huks_dependency_mbedtls_path="//device/soc/hisilicon/ws63v100/sdk/open_source/mbedtls/mbedtls_v3.1.0" init_feature_begetctl_liteos=true init_lite_use_thirdparty_mbedtls=true utils_lite_feature_file=true enable_ohos_test_xts_acts_use_thirdparty_lwip=false ohos_build_enable_ccache=true use_thin_lto=false ohos_build_type="debug" device_type="default" build_variant="root" root_perf_main="main" runtime_mode="release" /home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2 --script-executable=/usr/bin/python3
[OHOS INFO] [GN] root_out_dir=//out/bearpi_hm_nano_2/bearpi_hm_nano_2
[OHOS INFO] [GN] root_build_dir=//out/bearpi_hm_nano_2/bearpi_hm_nano_2
[OHOS INFO] [GN] root_gen_dir=//out/bearpi_hm_nano_2/bearpi_hm_nano_2/gen
[OHOS INFO] [GN] current_toolchain=//build/lite/toolchain:riscv32-linux-musl
[OHOS INFO] [GN] host_toolchain=//build/toolchain/linux:clang_x64
[OHOS INFO] [GN] ohos_build_compiler: gcc
[OHOS INFO] [GN] ohos_kernel_type: liteos_m
[OHOS INFO] [GN] hks_config_lite.h
[OHOS INFO] [GN] WARNING at the command-line "--args":1:985: Build argument has no effect.
[OHOS INFO] [GN] product_name="bearpi_hm_nano_2" product_path="/home/bearpi/project/bearpi-hm_nano_2/vendor/bearpi/bearpi_hm_nano_2" product_config_path="/home/bearpi/project/bearpi-hm_nano_2/vendor/bearpi/bearpi_hm_nano_2" device_name="bearpi_hm_nano_2" device_path="/home/bearpi/project/bearpi-hm_nano_2/device/board/bearpi/bearpi_hm_nano_2/liteos_m" device_company="bearpi" device_config_path="/home/bearpi/project/bearpi-hm_nano_2/device/board/bearpi/bearpi_hm_nano_2/liteos_m" precise_branch="" is_mini_system=true ohos_kernel_type="liteos_m" ohos_build_compiler_specified="gcc" ohos_build_time=1794772557649 ohos_build_datetime="2026-11-16 11:55:57" huks_use_lite_storage=true huks_use_hardware_root_key=true huks_config_file="hks_config_lite.h" huks_dependency_mbedtls_path="//device/soc/hisilicon/ws63v100/sdk/open_source/mbedtls/mbedtls_v3.1.0" init_feature_begetctl_liteos=true init_lite_use_thirdparty_mbedtls=true utils_lite_feature_file=true enable_ohos_test_xts_acts_use_thirdparty_lwip=false ohos_build_enable_ccache=true use_thin_lto=false ohos_build_type="debug" device_type="default" build_variant="root" root_perf_main="main" runtime_mode="release"
[OHOS INFO] [GN] ^----
[OHOS INFO] [GN] The variable "enable_ohos_test_xts_acts_use_thirdparty_lwip" was set as a build argument
[OHOS INFO] [GN] but never appeared in a declare_args() block in any buildfile.
[OHOS INFO] [GN]
[OHOS INFO] [GN] To view all possible args, run "gn args --list <out_dir>"
[OHOS INFO] [GN]
[OHOS INFO] [GN] The build continued as if that argument was unspecified.
[OHOS INFO] [GN]
[OHOS INFO] [GN] Done. Made 314 targets from 198 files in 768ms
[OHOS INFO] The run time for _gn is 0.77 s

[OHOS INFO] [NINJA] Excuting ninja command: /home/bearpi/project/bearpi-hm_nano_2/prebuilts/build-tools/linux-x86/bin/ninja -w dupbuild=warn -C /home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2 images make_all make_test
[OHOS INFO] [NINJA] [1/609] gcc cross compiler obj/base/hiviewdfx/blackbox_lite/libblackbox_lite.blackbox_adapter.o
[OHOS INFO] [NINJA] [2/609] gcc cross compiler obj/base/hiviewdfx/blackbox_lite/libblackbox_lite.blackbox_core.o
[OHOS INFO] [NINJA] [3/609] gcc cross compiler obj/base/hiviewdfx/blackbox_lite/libblackbox_lite.blackbox_detector.o
[OHOS INFO] [NINJA] [4/609] gcc cross compiler obj/base/hiviewdfx/hidumper_lite/mini/libhidumper_mini.hidumper_adapter.o
[OHOS INFO] [NINJA] [5/609] gcc cross compiler obj/base/hiviewdfx/hidumper_lite/mini/libhidumper_mini.hidumper_core.o
[OHOS INFO] [NINJA] [6/609] gcc cross compiler obj/base/hiviewdfx/hievent_lite/frameworks/libhievent_lite_static.hiview_event.o
[OHOS INFO] [NINJA] [7/609] STAMP obj/base/hiviewdfx/hilog_lite/frameworks/featured/hilog_shared.stamp
[OHOS INFO] [NINJA] [8/609] STAMP obj/base/hiviewdfx/hilog_lite/frameworks/js/ace_hilog_kits.stamp
[OHOS INFO] [NINJA] [9/609] gcc cross compiler obj/base/hiviewdfx/hievent_lite/frameworks/libhievent_lite_static.hiview_output_event.o
[OHOS INFO] [NINJA] [10/609] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/mini/libhilog_lite_static.hiview_log.o
[OHOS INFO] [NINJA] [11/609] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/mini/libhilog_lite_static.hiview_log_limit.o
[OHOS INFO] [NINJA] [12/609] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/mini/libhilog_lite_static.hiview_output_log.o
[OHOS INFO] [NINJA] [13/609] STAMP obj/base/hiviewdfx/hilog_lite/services/apphilogcat/apphilogcat.stamp
[OHOS INFO] [NINJA] [14/609] STAMP obj/base/hiviewdfx/hilog_lite/test/hilog_lite_test.stamp
[OHOS INFO] [NINJA] [15/609] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite_static.hiview_config.o
[OHOS INFO] [NINJA] [16/609] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite_static.hiview_cache.o
[OHOS INFO] [NINJA] [17/609] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite_static.hiview_file.o
[OHOS INFO] [NINJA] [18/609] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite_static.hiview_service.o
[OHOS INFO] [NINJA] [19/609] STAMP obj/base/security/huks/huks_sdk_test.stamp
[OHOS INFO] [NINJA] [20/609] STAMP obj/base/security/huks/service_group.stamp
[OHOS INFO] [NINJA] [21/609] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite_static.hiview_util.o
[OHOS INFO] [NINJA] [22/609] STAMP obj/base/security/huks/etc/huks.para.dac__collect.stamp
[OHOS INFO] [NINJA] [23/609] STAMP obj/base/security/huks/etc/huks.para__collect.stamp
[OHOS INFO] [NINJA] [24/609] STAMP obj/base/security/huks/interfaces/inner_api/huks_standard/main/libhukschipsetsdk.stamp
[OHOS INFO] [NINJA] [25/609] STAMP obj/base/security/huks/interfaces/inner_api/huks_standard/main/libhukssdk.stamp
[OHOS INFO] [NINJA] [26/609] STAMP obj/base/security/huks/test/unittest.stamp
[OHOS INFO] [NINJA] [27/609] STAMP obj/base/security/huks/test/fuzz_test/fuzztest.stamp
[OHOS INFO] [NINJA] [28/609] STAMP obj/base/startup/init/device_info/device_info_group.stamp
[OHOS INFO] [NINJA] [29/609] STAMP obj/base/startup/init/interfaces/innerkits/libbeget_proxy.stamp
[OHOS INFO] [NINJA] [30/609] STAMP obj/base/startup/init/interfaces/innerkits/init_module_engine/libinit_module_engine.stamp
[OHOS INFO] [NINJA] [31/609] STAMP obj/base/startup/init/interfaces/innerkits/seccomp/seccomp.stamp
[OHOS INFO] [NINJA] [32/609] STAMP obj/base/startup/init/interfaces/kits/kitsgroup.stamp
[OHOS INFO] [NINJA] [33/609] STAMP obj/base/startup/init/interfaces/taihe/taihe_group.stamp
[OHOS INFO] [NINJA] [34/609] STAMP obj/base/startup/init/remount/overlayremount.stamp
[OHOS INFO] [NINJA] [35/609] STAMP obj/base/startup/init/services/startup_init.stamp
[OHOS INFO] [NINJA] [36/609] STAMP obj/base/startup/init/services/begetctl/begetctl_cmd.stamp
[OHOS INFO] [NINJA] [37/609] gcc cross compiler obj/base/startup/init/services/log/libinit_log.init_log.o
[OHOS INFO] [NINJA] [38/609] STAMP obj/base/startup/init/services/loopevent/loopeventgroup.stamp
[OHOS INFO] [NINJA] [39/609] STAMP obj/base/startup/init/services/modules/modulesgroup.stamp
[OHOS INFO] [NINJA] [40/609] gcc cross compiler obj/base/startup/init/services/modules/init_hook/libinithook.param_hook.o
[OHOS INFO] [NINJA] [41/609] STAMP obj/base/startup/init/services/param/parameter.stamp
[OHOS INFO] [NINJA] [42/609] gcc cross compiler obj/base/startup/init/services/utils/libinit_utils.init_utils.o
[OHOS INFO] [NINJA] [43/609] STAMP obj/base/startup/init/test/testgroup.stamp
[OHOS INFO] [NINJA] [44/609] STAMP obj/base/startup/init/ueventd/startup_ueventd.stamp
[OHOS INFO] [NINJA] [45/609] STAMP obj/base/startup/init/watchdog/watchdog.stamp
[OHOS INFO] [NINJA] [46/609] STAMP obj/base/update/sys_installer_lite/frameworks/update_api.stamp
[OHOS INFO] [NINJA] [47/609] STAMP obj/base/startup/init/init_service_group.stamp
[OHOS INFO] [NINJA] [48/609] STAMP obj/build/ohos/packages/test_example_template.stamp
[OHOS INFO] [NINJA] [49/609] STAMP obj/build/ohos/packages/test_rust_template.stamp
[OHOS INFO] [NINJA] [50/609] gcc cross compiler obj/commonlibrary/utils_lite/file/src/file_impl_hal/libnative_file.file.o
[OHOS INFO] [NINJA] [51/609] STAMP obj/developtools/syscap_codec/pcid.sc__collect.stamp
[OHOS INFO] [NINJA] [52/609] STAMP obj/developtools/syscap_codec/syscap_interface_shared.stamp
[OHOS INFO] [NINJA] [53/609] STAMP obj/developtools/syscap_codec/taihe/taihe_group.stamp
[OHOS INFO] [NINJA] [54/609] gcc cross compiler obj/base/startup/init/interfaces/hals/utils/sys_param/libhal_sys_param.hal_sys_param.o
[OHOS INFO] [NINJA] [55/609] STAMP obj/developtools/syscap_codec/test/unittest/common/unittest.stamp
[OHOS INFO] [NINJA] [56/609] gcc cross compiler obj/device/board/bearpi/bearpi_hm_nano_2/iot_hardware_hals/src/libiot_hardware_hals.hal_iot_adc.o
[OHOS INFO] [NINJA] [57/609] gcc cross compiler obj/device/board/bearpi/bearpi_hm_nano_2/iot_hardware_hals/src/libiot_hardware_hals.hal_iot_gpio_ex.o
[OHOS INFO] [NINJA] [58/609] gcc cross compiler obj/device/board/bearpi/bearpi_hm_nano_2/iot_hardware_hals/src/libiot_hardware_hals.hal_iot_i2c_ex.o
[OHOS INFO] [NINJA] [59/609] gcc cross compiler obj/device/soc/hisilicon/ws63v100/adapter/hals/communication/ble_lite/libble_lite.ble_lite.o
[OHOS INFO] [NINJA] [60/609] gcc cross compiler obj/device/soc/hisilicon/ws63v100/adapter/hals/communication/sle_lite/libsle_lite.sle_lite.o
[OHOS INFO] [NINJA] [61/609] gcc cross compiler obj/device/board/bearpi/bearpi_hm_nano_2/app/my_spi/libmy_spi.spi_example.o
[OHOS INFO] [NINJA] [62/609] gcc cross compiler obj/device/soc/hisilicon/ws63v100/adapter/hals/communication/wifi_lite/wifiservice/source/libwifiservice.wifi_device.o
[OHOS INFO] [NINJA] [63/609] gcc cross compiler obj/device/soc/hisilicon/ws63v100/adapter/hals/communication/wifi_lite/wifiservice/source/libwifiservice.wifi_device_util.o

[OHOS ERROR] [NINJA] command failed: "/home/bearpi/project/bearpi-hm_nano_2/prebuilts/build-tools/linux-x86/bin/ninja -w dupbuild=warn -C /home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2 images make_all make_test" , ret_code: 1

[OHOS ERROR] [NINJA] [61/609] gcc cross compiler obj/device/board/bearpi/bearpi_hm_nano_2/app/my_spi/libmy_spi.spi_example.o
[OHOS ERROR] [NINJA] FAILED: obj/device/board/bearpi/bearpi_hm_nano_2/app/my_spi/libmy_spi.spi_example.o
[OHOS ERROR] [NINJA] ccache riscv32-linux-musl-gcc -D_XOPEN_SOURCE=700 -DOHOS_DEBUG -D__LITEOS__ -D__LITEOS_M__ -I../../../base/io/hardware/peripheral/interfaces/inner_api -I../../../device/board/bearpi_hm_nano_2/iot_hardware_hals/include -I../../../device/soc/hisilicon/ws63v100/sdk/include -I../../../device/soc/hisilicon/ws63v100/sdk/drivers/include -I../../../commonlibrary/utils_lite/include -I../../../device/soc/hisilicon/ws63v100/sdk/include/driver -I../../../device/soc/hisilicon/ws63v100/sdk/include/middleware/utils -I../../../device/soc/hisilicon/ws63v100/sdk/middleware/chips/ws63/update/include -I../../../device/soc/hisilicon/ws63v100/sdk/middleware/chips/ws63/partition/include -I../../../device/soc/hisilicon/ws63v100/sdk/middleware/chips/ws63/littlefs -I../../../device/soc/hisilicon/ws63v100/sdk/middleware/utils/update/inner_include -I../../../device/soc/hisilicon/ws63v100/sdk/middleware/utils/common_headers -I../../../device/soc/hisilicon/ws63v100/sdk/drivers/chips/ws63/include -I../../../device/soc/hisilicon/ws63v100/sdk/drivers/boards/ws63/evb/memory_config/include/product -I../../../device/soc/hisilicon/ws63v100/sdk/open_source/lwip/lwip_v2.1.3/src/include -I../../../device/soc/hisilicon/ws63v100/sdk/open_source/lwip/lwip_adapter/liteos_207/src/include -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/kernel/include -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/compat/linux/include -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/platform/libsec/include -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/osal/include/lock -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/open_source/musl/include -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/osal/include/schedule -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/open_source/musl/arch/generic -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/open_source/musl/arch/riscv32 -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/lib/liteos_libc/include -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/drivers/interrupt/include -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/drivers/timer/include -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/targets/ws63/include -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/arch/riscv/include -I../../../kernel/liteos_m/utils -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/compat/cmsis -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/kernel/base/include -I../../../device/soc/hisilicon/ws63v100/sdk/kernel/liteos/liteos_v208.5.0/Huawei_LiteOS/open_source/CMSIS/CMSIS/RTOS2/Include -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-parameter -Os -mabi=ilp32f -falign-functions=2 -msave-restore -fno-optimize-strlen -freorder-blocks-algorithm=simple -fno-schedule-insns -fno-inline-small-functions -fno-inline-functions-called-once -mtune=size -mno-small-data-limit=0 -fno-aggressive-loop-optimizations -std=c99 -Wpointer-arith -Wstrict-prototypes -ffunction-sections -fdata-sections -fno-exceptions -fshort-enums -Wextra -Wundef -U PRODUCT_CFG_BUILD_TIME -D__LITEOS__ -DCMSIS_OS_VER=2 -DLOSCFG_COMPAT_CMSIS_VER_2 -DCHIP_WS63=1 -DLOSCFG_XTS_SUPPORT -DLWIP_CONFIG_FILE="lwip/lwipopts_default.h" -march=rv32imfc -fno-common -fno-builtin -fno-strict-aliasing -Wall -fsigned-char -fstack-protector-all -mabi=ilp32f -falign-functions=2 -msave-restore -fno-optimize-strlen -freorder-blocks-algorithm=simple -fno-schedule-insns -fno-inline-small-functions -fno-inline-functions-called-once -mtune=size -mno-small-data-limit=0 -fno-aggressive-loop-optimizations -std=c99 -Wpointer-arith -Wstrict-prototypes -ffunction-sections -fdata-sections -fno-exceptions -fshort-enums -Wextra -Wundef -U PRODUCT_CFG_BUILD_TIME -D__LITEOS__ -DCMSIS_OS_VER=2 -DLOSCFG_COMPAT_CMSIS_VER_2 -DCHIP_WS63=1 -DLOSCFG_XTS_SUPPORT -DLWIP_CONFIG_FILE="lwip/lwipopts_default.h" -std=c99 -c ../../../device/board/bearpi/bearpi_hm_nano_2/app/my_spi/spi_example.c -o obj/device/board/bearpi/bearpi_hm_nano_2/app/my_spi/libmy_spi.spi_example.o
[OHOS ERROR] [NINJA] In file included from ../../../device/board/bearpi/bearpi_hm_nano_2/app/my_spi/spi_example.c:6:0:
[OHOS ERROR] [NINJA] ../../../device/soc/hisilicon/ws63v100/sdk/include/driver/spi.h:25:10: fatal error: hal_spi.h: No such file or directory
[OHOS ERROR] [NINJA] #include "hal_spi.h"
[OHOS ERROR] [NINJA] ^~~~~~~~~~~
[OHOS ERROR] [NINJA] compilation terminated.

[OHOS INFO] User Cpu%: 0.0%

[OHOS INFO] System Cpu%: 0.0%

[OHOS INFO] Idle CPU%: 0%

[OHOS INFO] Total Memory: 3.8GB

[OHOS INFO] Free Memory: 0.6GB

[OHOS INFO] Swap Memory: 0.9GB

[OHOS INFO] Filesystem: udev, Size: 1.9G, Used: 0, Available: 1.9G, Use%: 0%, Mounted on: /dev

[OHOS INFO] Filesystem: tmpfs, Size: 388M, Used: 1.8M, Available: 386M, Use%: 1%, Mounted on: /run

[OHOS INFO] Filesystem: /dev/sda5, Size: 49G, Used: 36G, Available: 11G, Use%: 77%, Mounted on: /

[OHOS INFO] Filesystem: tmpfs, Size: 1.9G, Used: 0, Available: 1.9G, Use%: 0%, Mounted on: /dev/shm

[OHOS INFO] Filesystem: tmpfs, Size: 5.0M, Used: 0, Available: 5.0M, Use%: 0%, Mounted on: /run/lock

[OHOS INFO] Filesystem: tmpfs, Size: 1.9G, Used: 0, Available: 1.9G, Use%: 0%, Mounted on: /sys/fs/cgroup

[OHOS INFO] Filesystem: /dev/loop0, Size: 128K, Used: 128K, Available: 0, Use%: 100%, Mounted on: /snap/bare/5

[OHOS INFO] Filesystem: /dev/loop5, Size: 66M, Used: 66M, Available: 0, Use%: 100%, Mounted on: /snap/gtk-common-themes/1515

[OHOS INFO] Filesystem: /dev/loop3, Size: 219M, Used: 219M, Available: 0, Use%: 100%, Mounted on: /snap/gnome-3-34-1804/72

[OHOS INFO] Filesystem: /dev/loop1, Size: 56M, Used: 56M, Available: 0, Use%: 100%, Mounted on: /snap/core18/2128

[OHOS INFO] Filesystem: /dev/loop2, Size: 56M, Used: 56M, Available: 0, Use%: 100%, Mounted on: /snap/core18/2829

[OHOS INFO] Filesystem: /dev/loop8, Size: 39M, Used: 39M, Available: 0, Use%: 100%, Mounted on: /snap/snapd/21759

[OHOS INFO] Filesystem: /dev/loop7, Size: 51M, Used: 51M, Available: 0, Use%: 100%, Mounted on: /snap/snap-store/547

[OHOS INFO] Filesystem: /dev/loop6, Size: 92M, Used: 92M, Available: 0, Use%: 100%, Mounted on: /snap/gtk-common-themes/1535

[OHOS INFO] Filesystem: /dev/loop4, Size: 219M, Used: 219M, Available: 0, Use%: 100%, Mounted on: /snap/gnome-3-34-1804/93

[OHOS INFO] Filesystem: /dev/sda1, Size: 511M, Used: 4.0K, Available: 511M, Use%: 1%, Mounted on: /boot/efi

[OHOS INFO] Filesystem: tmpfs, Size: 388M, Used: 24K, Available: 388M, Use%: 1%, Mounted on: /run/user/1000

[OHOS ERROR] [NINJA] Traceback (most recent call last):
[OHOS ERROR] [NINJA] File "/home/bearpi/project/bearpi-hm_nano_2/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR] [NINJA] return func(*args, **kwargs)
[OHOS ERROR] [NINJA] File "/home/bearpi/project/bearpi-hm_nano_2/build/hb/modules/ohos_build_module.py", line 71, in run
[OHOS ERROR] [NINJA] raise exception
[OHOS ERROR] [NINJA] File "/home/bearpi/project/bearpi-hm_nano_2/build/hb/modules/ohos_build_module.py", line 68, in run
[OHOS ERROR] [NINJA] super().run()
[OHOS ERROR] [NINJA] File "/home/bearpi/project/bearpi-hm_nano_2/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR] [NINJA] raise exception
[OHOS ERROR] [NINJA] File "/home/bearpi/project/bearpi-hm_nano_2/build/hb/modules/interface/build_module_interface.py", line 68, in run
[OHOS ERROR] [NINJA] self._ninja()
[OHOS ERROR] [NINJA] File "/home/bearpi/project/bearpi-hm_nano_2/build/hb/util/timer_util.py", line 30, in inner
[OHOS ERROR] [NINJA] res = func(*arg, **kwarg)
[OHOS ERROR] [NINJA] File "/home/bearpi/project/bearpi-hm_nano_2/build/hb/modules/interface/build_module_interface.py", line 125, in _ninja
[OHOS ERROR] [NINJA] self._target_compilation()
[OHOS ERROR] [NINJA] File "/home/bearpi/project/bearpi-hm_nano_2/build/hb/modules/ohos_build_module.py", line 133, in _target_compilation
[OHOS ERROR] [NINJA] self.target_compiler.run()
[OHOS ERROR] [NINJA] File "/home/bearpi/project/bearpi-hm_nano_2/build/hb/services/ninja.py", line 39, in run
[OHOS ERROR] [NINJA] self._execute_ninja_cmd()
[OHOS ERROR] [NINJA] File "/home/bearpi/project/bearpi-hm_nano_2/build/hb/services/ninja.py", line 70, in _execute_ninja_cmd
[OHOS ERROR] [NINJA] SystemUtil.exec_command(
[OHOS ERROR] [NINJA] File "/home/bearpi/project/bearpi-hm_nano_2/build/hb/util/system_util.py", line 142, in exec_command
[OHOS ERROR] [NINJA] LogUtil.get_failed_log(log_path, cmd)
[OHOS ERROR] [NINJA] File "/home/bearpi/project/bearpi-hm_nano_2/build/hb/util/log_util.py", line 221, in get_failed_log
[OHOS ERROR] [NINJA] LogUtil.get_compiler_failed_log(log_path, cmd)
[OHOS ERROR] [NINJA] File "/home/bearpi/project/bearpi-hm_nano_2/build/hb/util/log_util.py", line 208, in get_compiler_failed_log
[OHOS ERROR] [NINJA] raise OHOSException(
[OHOS ERROR] [NINJA] exceptions.ohos_exception.OHOSException: COMPILE Failed! Please check error in /home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/error.log, and for more build information in /home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build.log
[OHOS ERROR] [NINJA]

[OHOS ERROR] [NINJA] Code: 4000
[OHOS ERROR] [NINJA]
[OHOS ERROR] [NINJA] Reason: COMPILE Failed! Please check error in /home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/error.log, and for more build information in /home/bearpi/project/bearpi-hm_nano_2/out/bearpi_hm_nano_2/bearpi_hm_nano_2/build.log
[OHOS ERROR] [NINJA]
[OHOS ERROR] [NINJA] Error Type: Ninja build error
[OHOS ERROR] [NINJA]
[OHOS ERROR] [NINJA] Description: An unknown error occurred while executing 'ninja -C'.
[OHOS ERROR] [NINJA]
[OHOS ERROR] [NINJA] Solution: no solution
[OHOS ERROR] [NINJA]

二、你具体做的所有步骤结果截图

请插入图片

三、当前开发板状态全景照片

请插入图片

四、开发板串口所有日志

请在此处粘贴串口日志

1 Answers


自己移植过程的中的问题,需要您自己解决,或者直接让AI帮你改