Search found 3 matches

by dernasherbrezon
Sun Dec 31, 2023 12:01 am
Forum: ESP-IDF
Topic: problem with CmakeLists.txt conditional configuration
Replies: 7
Views: 7334

Re: problem with CmakeLists.txt conditional configuration

You can conditionally enable no-op sources. For example:

Code: Select all

set(wifi_srcs "")
if(CONFIG_AT_WIFI_ENABLED)
    list(APPEND wifi_srcs "at_wifi.c")
else()
    list(APPEND wifi_srcs "at_no_wifi.c")
endif()
esp-idf won't link not used components.

idf.py size-components can help with troubleshooting.
by dernasherbrezon
Sat Nov 25, 2023 10:48 am
Forum: ESP-IDF
Topic: Can't get low power consumption in deep sleep with SPI driver
Replies: 1
Views: 5048

Re: Can't get low power consumption in deep sleep with SPI driver

It turned out the issue was in the sx127x chip. After reset I put chip into the sleep mode. It was reporting that the sleep mode is active, but obviously it was not. After I changed sequence into: go into sleep mode then into standby mode and finally back to sleep mode Everything started working as ...
by dernasherbrezon
Wed Nov 22, 2023 11:38 pm
Forum: ESP-IDF
Topic: Can't get low power consumption in deep sleep with SPI driver
Replies: 1
Views: 5048

Can't get low power consumption in deep sleep with SPI driver

Hi, I have Heltec lora v2 board. It has esp32 and semtech sx127x chips. sx127x is connected via SPI interface. When I'm trying to put both into deep sleep mode, I'm seeing 1.7mA of power consumption. The algorithm is the following: * init SPI bus ( spi_bus_initialize / spi_bus_add_device ) * read ch...