测试修改了link文件路径,一样的现象没有解决,我直接把能编译成功zigbee sdk文件的link文件拷过来也不行,麻烦给看下。
Building file: ../../../apps/common/main.c
Finished building: ../../../apps/sampleContactSensor/zcl_sampleSensorCb.c
Invoking: GNU RISC-V Cross C Compiler
riscv32-elf-gcc -mcpu=d25f -mcmodel=medium -O2 -fmessage-length=0 -ffunction-sections -fdata-sections -flto -g3 -DMCU_CORE_B91=1 -DEND_DEVICE=1 -D__PROJECT_TL_CONTACT_SENSOR__=1 -I../../../apps/common -I../../../apps/sampleContactSensor -I../../../platform/chip_b91 -I../../../platform/riscv -I../../../platform -I../../../proj/common -I../../../proj -I../../../zigbee/common/includes -I../../../zigbee/zbapi -I../../../zigbee/bdb/includes -I../../../zigbee/gp -I../../../zigbee/zcl -I../../../zigbee/ota -I../../../zbhci -mext-dsp -mabi=ilp32f -c -fmessage-length=0 -fomit-frame-pointer -fno-strict-aliasing -fshort-wchar -fuse-ld=bfd -Wno-nonnull-compare -fpack-struct -fshort-enums -MMD -MP -MF"apps/common/main.d" -MT"apps/common/main.o" -c -o "apps/common/main.o" "../../../apps/common/main.c"
Building file: ../../../apps/common/module_test.c
Invoking: GNU RISC-V Cross C Compiler
riscv32-elf-gcc -mcpu=d25f -mcmodel=medium -O2 -fmessage-length=0 -ffunction-sections -fdata-sections -flto -g3 -DMCU_CORE_B91=1 -DEND_DEVICE=1 -D__PROJECT_TL_CONTACT_SENSOR__=1 -I../../../apps/common -I../../../apps/sampleContactSensor -I../../../platform/chip_b91 -I../../../platform/riscv -I../../../platform -I../../../proj/common -I../../../proj -I../../../zigbee/common/includes -I../../../zigbee/zbapi -I../../../zigbee/bdb/includes -I../../../zigbee/gp -I../../../zigbee/zcl -I../../../zigbee/ota -I../../../zbhci -mext-dsp -mabi=ilp32f -c -fmessage-length=0 -fomit-frame-pointer -fno-strict-aliasing -fshort-wchar -fuse-ld=bfd -Wno-nonnull-compare -fpack-struct -fshort-enums -MMD -MP -MF"apps/common/module_test.d" -MT"apps/common/module_test.o" -c -o "apps/common/module_test.o" "../../../apps/common/module_test.c"
Finished building: ../../../apps/common/factory_reset.c
Finished building: ../../../apps/common/firmwareEncryptChk.c
Finished building: ../../../apps/common/main.c
Finished building: ../../../apps/common/module_test.c
Building target: sampleContactSensor_B91.elf
Invoking: GNU RISC-V Cross C Linker
riscv32-elf-gcc -mcpu=d25f -mcmodel=medium -O2 -fmessage-length=0 -ffunction-sections -fdata-sections -flto -g3 -nostartfiles -Xlinker --gc-sections -L../../../zigbee/lib/riscv -L../../../platform/lib -Wl,-Map,"sampleContactSensor_B91.map" -mcmodel=small -fpack-struct -fshort-enums -mcpu=d25f -ffunction-sections -fdata-sections -mext-dsp -mabi=ilp32f -fmessage-length=0 -fomit-frame-pointer -fno-strict-aliasing -fshort-wchar -fuse-ld=bfd -O2 -o "sampleContactSensor_B91.elf" ./zigbee/zdo/zdp.o ./zigbee/zcl/zll_commissioning/zcl_toucklink_security.o ./zigbee/zcl/zll_commissioning/zcl_zllTouchLinkDiscovery.o ./zigbee/zcl/zll_commissioning/zcl_zllTouchLinkJoinOrStart.o ./zigbee/zcl/zll_commissioning/zcl_zll_commissioning.o ./zigbee/zcl/zcl_wwah/zcl_wwah.o ./zigbee/zcl/zcl_wwah/zcl_wwah_attr.o ./zigbee/zcl/smart_energy/zcl_metering.o ./zigbee/zcl/smart_energy/zcl_metering_attr.o ./zigbee/zcl/security_safety/zcl_ias_ace.o ./zigbee/zcl/security_safety/zcl_ias_wd.o ./zigbee/zcl/security_safety/zcl_ias_wd_attr.o ./zigbee/zcl/security_safety/zcl_ias_zone.o ./zigbee/zcl/security_safety/zcl_ias_zone_attr.o ./zigbee/zcl/ota_upgrading/zcl_ota.o ./zigbee/zcl/ota_upgrading/zcl_ota_attr.o ./zigbee/zcl/measument_sensing/zcl_electrical_measurement.o ./zigbee/zcl/measument_sensing/zcl_electrical_measurement_attr.o ./zigbee/zcl/measument_sensing/zcl_illuminance_measurement.o ./zigbee/zcl/measument_sensing/zcl_illuminance_measurement_attr.o ./zigbee/zcl/measument_sensing/zcl_occupancy_sensing.o ./zigbee/zcl/measument_sensing/zcl_occupancy_sensing_attr.o ./zigbee/zcl/measument_sensing/zcl_temperature_measurement.o ./zigbee/zcl/measument_sensing/zcl_temperature_measurement_attr.o ./zigbee/zcl/light_color_control/zcl_light_colorCtrl.o ./zigbee/zcl/light_color_control/zcl_light_colorCtrl_attr.o ./zigbee/zcl/hvac/zcl_thermostat.o ./zigbee/zcl/general/zcl_alarm.o ./zigbee/zcl/general/zcl_alarm_attr.o ./zigbee/zcl/general/zcl_basic.o ./zigbee/zcl/general/zcl_basic_attr.o ./zigbee/zcl/general/zcl_binary_input.o ./zigbee/zcl/general/zcl_binary_input_attr.o ./zigbee/zcl/general/zcl_binary_output.o ./zigbee/zcl/general/zcl_binary_output_attr.o ./zigbee/zcl/general/zcl_devTemperatureCfg.o ./zigbee/zcl/general/zcl_devTemperatureCfg_attr.o ./zigbee/zcl/general/zcl_diagnostics.o ./zigbee/zcl/general/zcl_diagnostics_attr.o ./zigbee/zcl/general/zcl_greenPower.o ./zigbee/zcl/general/zcl_greenPower_attr.o ./zigbee/zcl/general/zcl_group.o ./zigbee/zcl/general/zcl_group_attr.o ./zigbee/zcl/general/zcl_identify.o ./zigbee/zcl/general/zcl_identify_attr.o ./zigbee/zcl/general/zcl_level.o ./zigbee/zcl/general/zcl_level_attr.o ./zigbee/zcl/general/zcl_multistate_input.o ./zigbee/zcl/general/zcl_multistate_input_attr.o ./zigbee/zcl/general/zcl_multistate_output.o ./zigbee/zcl/general/zcl_multistate_output_attr.o ./zigbee/zcl/general/zcl_onoff.o ./zigbee/zcl/general/zcl_onoff_attr.o ./zigbee/zcl/general/zcl_pollCtrl.o ./zigbee/zcl/general/zcl_pollCtrl_attr.o ./zigbee/zcl/general/zcl_powerCfg.o ./zigbee/zcl/general/zcl_powerCfg_attr.o ./zigbee/zcl/general/zcl_scene.o ./zigbee/zcl/general/zcl_scene_attr.o ./zigbee/zcl/general/zcl_time.o ./zigbee/zcl/general/zcl_time_attr.o ./zigbee/zcl/commissioning/zcl_commissioning.o ./zigbee/zcl/commissioning/zcl_commissioning_attr.o ./zigbee/zcl/closures/zcl_door_lock.o ./zigbee/zcl/closures/zcl_door_lock_attr.o ./zigbee/zcl/closures/zcl_window_covering.o ./zigbee/zcl/closures/zcl_window_covering_attr.o ./zigbee/zcl/zcl.o ./zigbee/zcl/zcl_nv.o ./zigbee/zcl/zcl_reporting.o ./zigbee/wwah/wwah.o ./zigbee/wwah/wwahEpCfg.o ./zigbee/ss/ss_nv.o ./zigbee/ota/ota.o ./zigbee/ota/otaCRC.o ./zigbee/ota/otaEpCfg.o ./zigbee/mac/mac_phy.o ./zigbee/mac/mac_pib.o ./zigbee/gp/gp.o ./zigbee/gp/gpEpCfg.o ./zigbee/gp/gp_proxy.o ./zigbee/gp/gp_proxyTab.o ./zigbee/gp/gp_sink.o ./zigbee/gp/gp_sinkTab.o ./zigbee/gp/gp_trans.o ./zigbee/gp/gp_transCfg.o ./zigbee/common/zb_config.o ./zigbee/bdb/bdb.o ./zigbee/aps/aps_group.o ./zigbee/af/zb_af.o ./zbhci/usbPrint/hci_usbPrint.o ./zbhci/usbHID/zbhci_usb_hid.o ./zbhci/usbCDC/zbhci_usb_cdc.o ./zbhci/uart/hci_uart.o ./zbhci/zbhci.o ./zbhci/zbhciCmdProcess.o ./zbhci/zbhci_zclHandler.o ./proj/os/ev.o ./proj/os/ev_buffer.o ./proj/os/ev_poll.o ./proj/os/ev_queue.o ./proj/os/ev_timer.o ./proj/drivers/usb/app/usbcdc.o ./proj/drivers/usb/app/usbkb.o ./proj/drivers/usb/app/usbmouse.o ./proj/drivers/usb/app/usbvendor.o ./proj/drivers/usb/usb.o ./proj/drivers/usb/usbdesc.o ./proj/drivers/drv_adc.o ./proj/drivers/drv_calibration.o ./proj/drivers/drv_flash.o ./proj/drivers/drv_gpio.o ./proj/drivers/drv_hw.o ./proj/drivers/drv_i2c.o ./proj/drivers/drv_keyboard.o ./proj/drivers/drv_nv.o ./proj/drivers/drv_pm.o ./proj/drivers/drv_putchar.o ./proj/drivers/drv_pwm.o ./proj/drivers/drv_spi.o ./proj/drivers/drv_timer.o ./proj/drivers/drv_uart.o ./proj/common/list.o ./proj/common/mempool.o ./proj/common/string.o ./proj/common/tlPrintf.o ./platform/services/irq_handler.o ./platform/services/plic_isr.o ./platform/chip_b91/flash/flash_mid146085.o ./platform/chip_b91/flash/flash_mid156085.o ./platform/chip_b91/flash/flash_mid166085.o ./platform/boot/b91/cstartup_b91.o ./platform/boot/link_cfg.o ./apps/sampleContactSensor/app_ui.o ./apps/sampleContactSensor/drv_18b20.o ./apps/sampleContactSensor/sampleSensor.o ./apps/sampleContactSensor/sampleSensorEpCfg.o ./apps/sampleContactSensor/zb_appCb.o ./apps/sampleContactSensor/zcl_sampleSensorCb.o ./apps/common/factory_reset.o ./apps/common/firmwareEncryptChk.o ./apps/common/main.o ./apps/common/module_test.o -lzb_ed -ldrivers_b91
/cygdrive/h/03_workSoft/telinkIot/TelinkIoTStudio/RDS/V3.2.3/toolchains/nds32le-elf-mculib-v5f/bin/../lib/gcc/riscv32-elf/7.4.0/../../../../riscv32-elf/bin/ld.bfd: warning: cannot find entry symbol _start; not setting start address
Finished building target: sampleContactSensor_B91.elf
Invoking: GNU RISC-V Cross Create Flash Image
riscv32-elf-objcopy -O binary "sampleContactSensor_B91.elf" "sampleContactSensor_B91.bin"
Invoking: GNU RISC-V Cross Create Listing
riscv32-elf-objdump --source --all-headers --demangle --line-numbers --wide "sampleContactSensor_B91.elf" > "sampleContactSensor_B91.lst"
Invoking: GNU RISC-V Cross Print Size
riscv32-elf-size --totals "sampleContactSensor_B91.elf"
text code rodata data bss dec hex filename
0 0 0 0 0 0 0 sampleContactSensor_B91.elf
0 0 0 0 0 0 0 (TOTALS)
Finished building: sampleContactSensor_B91.bin
Finished building: sampleContactSensor_B91.siz
Finished building: sampleContactSensor_B91.lst
"../../../tools/tl_check_fw.sh" sampleContactSensor_B91 iot_riscv
*****************************************************
this is post build!! current configure is :sampleContactSensor_B91
File size:0
**************** end of post build ******************
|