Power Management settings cause spi delays
Posted: Thu Jan 31, 2019 7:21 pm
Hi,
I' using ESP32 as spi master for driving LCD over spi, clock freq configured as 60MHz.
Graphic library uses custom tick handler esp_register_freertos_tick_hook().
I'm loading picture from spiffs image and draw it on LCD.
After I enabled Component config -> Power Management -> Support for power management I'm facing huge delays in picture drawing. All other settings remains same.
On logic analyzer I noted taht there are delays between commands:
POWER SAVE DISABLED:
delay between commands ~56ms
POWER SAVE ENABLED:
delay between commands ~350 ms
As I see, there is special handle in spi driver for this configuration (CONFIG_PM_ENABLE):
https://github.com/espressif/esp-idf/bl ... ter.c#L190
What should I take into account if enable Power save? Why delays apear? Maybe it affects on ticks handling somehow?
Reagrds
I' using ESP32 as spi master for driving LCD over spi, clock freq configured as 60MHz.
Graphic library uses custom tick handler esp_register_freertos_tick_hook().
I'm loading picture from spiffs image and draw it on LCD.
After I enabled Component config -> Power Management -> Support for power management I'm facing huge delays in picture drawing. All other settings remains same.
On logic analyzer I noted taht there are delays between commands:
POWER SAVE DISABLED:
delay between commands ~56ms
POWER SAVE ENABLED:
delay between commands ~350 ms
As I see, there is special handle in spi driver for this configuration (CONFIG_PM_ENABLE):
https://github.com/espressif/esp-idf/bl ... ter.c#L190
What should I take into account if enable Power save? Why delays apear? Maybe it affects on ticks handling somehow?
Reagrds