Hello!
I am trying to lower the sleep current of our custom board. Right now in sleep, the whole system have a current consumption of 100uA. There might be component choices affecting this also so it's not really good for comparison.
- If I sleep directly after boot, we get 100uA.
- If I disable init of bsdlib, this number goes down to 70uA.
- If I just disable socket offload I get the same result.
- If I use bsd_shutdown it will consume a couple of mA during sleep.
Do you have any ideas of what might help us lower it? Anything would be helpful :)
The nrf9160 chip uses mcuboot+spm+app. We use i2c and logging (to flash), but current consumption is barely affected by disabling these.
SDK: v1.0.0
Modem FW: 1.0.1
Some of our prj.conf:
# General config CONFIG_NEWLIB_LIBC=y CONFIG_TEST_RANDOM_GENERATOR=y CONFIG_ASSERT=n CONFIG_REBOOT=y CONFIG_SENSOR=y CONFIG_DEBUG=n CONFIG_USE_SEGGER_RTT=n CONFIG_SEGGER_SYSTEMVIEW=n # Heap and stacks CONFIG_HEAP_MEM_POOL_SIZE=16384 CONFIG_MAIN_STACK_SIZE=8192 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 CONFIG_MAIN_THREAD_PRIORITY=7 CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=2048 # BSD library CONFIG_BSD_LIBRARY=y CONFIG_BSD_LIBRARY_TRACE_ENABLED=n # Network CONFIG_NETWORKING=y CONFIG_NET_SOCKETS=y CONFIG_NET_SOCKETS_OFFLOAD=y CONFIG_NET_SOCKETS_POSIX_NAMES=y # AT Host CONFIG_AT_HOST_LIBRARY=n CONFIG_UART_0_INTERRUPT_DRIVEN=n CONFIG_SRAM_SIZE=128 # COAP configuration CONFIG_COAP=y # Disable native network stack to save some memory CONFIG_NET_IPV4=n CONFIG_NET_IPV6=n CONFIG_NET_UDP=n CONFIG_NET_TCP=n # Enable flash operations. CONFIG_FLASH=y CONFIG_FLASH_PAGE_LAYOUT=y CONFIG_FLASH_MAP=y CONFIG_MPU_ALLOW_FLASH_WRITE=y CONFIG_FLASH_LOAD_SIZE=0 # Flash circular buffer CONFIG_FCB=y # Console CONFIG_CONSOLE_SUBSYS=n CONFIG_CONSOLE_HANDLER=n CONFIG_CONSOLE_GETCHAR=n CONFIG_CONSOLE=n CONFIG_STDOUT_CONSOLE=n CONFIG_UART_CONSOLE=n CONFIG_PRINTK=y CONFIG_SERIAL=n
Thanks alot in advance
Joakim