找回密码
 立即注册

微信扫码登录

查看: 540|回复: 1

[reprinted] Not enough RAM retention to run sleep_enddevice in deep_sleep mode

[复制链接]

9

主题

30

回帖

259

积分

版主

积分
259
发表于 2024-8-27 16:07:00 | 显示全部楼层 |阅读模式
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!!!

9

主题

30

回帖

259

积分

版主

积分
259
 楼主| 发表于 2024-8-27 16:10:14 | 显示全部楼层
Hi,
  tlsr9518adk80d's retention ram is 64K,Contact-sensor-app need 74K ram ,so tlsr9518adk80d can not run Contact-sensor-app in retention state,you can change the prj.conf change the retention to suspend mode ,also it will increase current.

reply_06_01.png

reply_06_02.png

or you can try tlsr9528a chip,it has 96k rention ram to support Contact-sensor-app

reply_06_03.png


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Telink forum ( 沪ICP备17008231号-1 )

GMT+8, 2024-12-22 01:06 , Processed in 0.089947 second(s), 21 queries .

Powered by Telink 隐私政策

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

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