找回密码
 立即注册

微信扫码登录

查看: 109|回复: 5

Iot stusio编译旧版本(RDS 3.23)工程异常,生成bin文件大小为0字节

[复制链接]

2

主题

3

回帖

20

积分

新手上路

积分
20
发表于 2024-11-4 11:46:26 | 显示全部楼层 |阅读模式
如题,我在用新软件编译我之前的工程时(Iot stusio编译旧版本(RDS 3.23)工程),无法正常编译出bin文件,(我已经按照Iot说明将文件格式进行了转化,且调整了编译工具链,编译无报错。)显示如下:

27b3065ff9caf9bce10b763d248a2d0.png image.png image.png

编译有警告: warning: cannot find entry symbol _start; not setting start address ,不知道如何修改,请指导一下,谢谢!
另外,我用Iot stusio编译从官网下载的新的zigbee sdk编译是正常的,说明软件没有问题,应该是我配置的问题。如下:
image.png

27

主题

121

回帖

447

积分

版主

积分
447
发表于 2024-11-4 14:23:56 | 显示全部楼层
从编译警告看应该是没有找到正确的link文件,你对照看一下相关设置。

微信截图_20241104142339.png

2

主题

3

回帖

20

积分

新手上路

积分
20
 楼主| 发表于 2024-11-5 08:45:56 | 显示全部楼层
TL_YB 发表于 2024-11-4 14:23
从编译警告看应该是没有找到正确的link文件,你对照看一下相关设置。

测试修改了link文件路径,一样的现象没有解决,我直接把能编译成功zigbee sdk文件的link文件拷过来也不行,麻烦给看下。
image.png image.png image.png


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 ******************


27

主题

121

回帖

447

积分

版主

积分
447
发表于 2024-11-5 19:29:53 | 显示全部楼层
检查看看相对路径是否配置正确,以及对比下图配置是否正确。

微信截图_20241105192735.png

2

主题

3

回帖

20

积分

新手上路

积分
20
 楼主| 发表于 2024-11-6 08:57:39 | 显示全部楼层
TL_YB 发表于 2024-11-5 19:29
检查看看相对路径是否配置正确,以及对比下图配置是否正确。

可以编译成功了,就是您说的这里有问题,我对应修改了就好了,非常感谢!

image.png

27

主题

121

回帖

447

积分

版主

积分
447
发表于 2024-11-6 16:55:44 | 显示全部楼层
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Telink forum ( 沪ICP备17008231号-1 )

GMT+8, 2024-11-24 07:05 , Processed in 0.108097 second(s), 21 queries .

Powered by Telink 隐私政策

泰凌微电子版权所有 © 。保留所有权利。 2024

快速回复 返回顶部 返回列表