Associate III
May 20, 2020
Solved
DSI lane states reset after STOP2 mode, should remain in ULPS
- May 20, 2020
- 1 reply
- 1343 views
I'm trying to make a simple low power application using the STM32L4R9I-DISCO board where I
- draw some stuff to the display,
- put the DSI link in ULPM,
- go to STOP2 mode,
- wakeup using the RTC,
- bring the DSI link out of ULPM
- repeat
I've gotten to the point where I wakeup from STOP2 and try to bring DSI out of ULPM, but DSI_PSR resets to the default LP-11 stop mode on both lines, which confuses the HAL_DSI_ExitULPM() function. This is not the behavior I expected, as the RM says the DSI is frozen and register content is kept during STOP2.
Interestingly, DSI_PSR is the only register that changes. Everything else stays the same. It's like the PHY just "forgets" what mode the lanes are in.
Code is attached at the bottom, I've tried not disabling the DSI (thought maybe it was resetting) but it doesn't make a difference, DSI_PSR still changes.