Transferred from old forum] Author:Cuu
Hi everyone,
I need help with a battery-operated device (sleepy end device) supporting the Matter-Thread standard.
I have used:
- Connectedhomeip: branch master
- Zephyr: branch develop
- Example: Contact-sensor-app
- Build command: west build -b tlsr9518adk80d_retention
Build error:
"[644/654] Linking CXX executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/matter/connectedhomeip/examples/contact-sensor-app/telink/build/zephyr/zephyr_pre0.map
: && ccache /home/matter/zephyrproject/zephyr-sdk-0.16.1/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-g++ -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf zephyr/CMakeFiles/offsets.dir/./arch/riscv/core/offsets/offsets.c.obj -fuse-ld=bfd -Wl,-T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=/home/matter/connectedhomeip/examples/contact-sensor-app/telink/build/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/riscv/core/libarch__riscv__core.a zephyr/lib/libc/newlib/liblib__libc__newlib.a zephyr/lib/libc/common/liblib__libc__common.a zephyr/lib/posix/liblib__posix.a zephyr/subsys/random/libsubsys__random.a zephyr/subsys/bluetooth/common/libsubsys__bluetooth__common.a zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a zephyr/subsys/net/libsubsys__net.a zephyr/subsys/net/l2/openthread/libsubsys__net__ip__l2__openthread.a zephyr/subsys/net/ip/libsubsys__net__ip.a zephyr/drivers/interrupt_controller/libdrivers__interrupt_controller.a zephyr/drivers/bluetooth/libdrivers__bluetooth.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/entropy/libdrivers__entropy.a zephyr/drivers/flash/libdrivers__flash.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/hwinfo/libdrivers__hwinfo.a zephyr/drivers/ieee802154/libdrivers__ieee802154.a zephyr/drivers/pinctrl/libdrivers__pinctrl.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/timer/libdrivers__timer.a modules/hal_telink/tlsr9/lib..__modules__hal__telink__tlsr9.a modules/hal_telink/tlsr9/crypto/mbedtls/lib..__modules__hal__telink__tlsr9__crypto__mbedtls.a modules/mbedtls/libmodules__mbedtls.a modules/openthread/platform/libopenthread_platform.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a -L"/home/matter/zephyrproject/zephyr-sdk-0.16.1/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-elf/12.2.0/rv32imac_zicsr_zifencei/ilp32" -L/home/matter/connectedhomeip/examples/contact-sensor-app/telink/build/zephyr -lgcc -Wl,--start-group modules/chip-module/lib/libCHIP.a modules/chip-module/lib/libMatterDeviceInfoProviderExample.a -Wl,--end-group zephyr/arch/common/libisr_tables.a -fuse-ld=bfd -mabi=ilp32 -march=rv32imac_zicsr_zifencei -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -lstdc++ -Wl,-no-pie -lm -Wl,-lc -L"/home/matter/zephyrproject/zephyr-sdk-0.16.1/riscv64-zephyr-elf/riscv64-zephyr-elf"/lib/rv32imac_zicsr_zifencei/ilp32 -Wl,-lgcc -lc -specs=nano.specs -Wl,--wrap,sys_heap_alloc -Wl,--wrap,sys_heap_aligned_alloc -Wl,--wrap,sys_heap_aligned_realloc /home/matter/zephyrproject/modules/hal/telink/zephyr/blobs/liblt_9518_zephyr.a -mtune=rocket modules/openthread/build/src/core/libopenthread-mtd.a modules/openthread/build/third_party/tcplp/libtcplp-mtd.a modules/openthread/build/src/core/libopenthread-mtd.a modules/openthread/build/third_party/tcplp/libtcplp-mtd.a -lc && cd /home/matter/connectedhomeip/examples/contact-sensor-app/telink/build/zephyr && /usr/bin/cmake -E echo
/home/matter/zephyrproject/zephyr-sdk-0.16.1/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-elf/12.2.0/../../../../riscv64-zephyr-elf/bin/ld.bfd: zephyr/zephyr_pre0.elf section `bss will not fit in region `RAM
/home/matter/zephyrproject/zephyr-sdk-0.16.1/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-elf/12.2.0/../../../../riscv64-zephyr-elf/bin/ld.bfd: section ram_code_ble VMA [0000000000010000,0000000000010013] overlaps section bss VMA [000000000000a700,0000000000017ce7]
/home/matter/zephyrproject/zephyr-sdk-0.16.1/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-...
Is there any way to resolve this error? Thank you!!!
|