STMViewer icon indicating copy to clipboard operation
STMViewer copied to clipboard

Invalid data read in sleep mode (WFI)

Open wckdwzrd opened this issue 2 months ago • 25 comments

When microcontroller is in sleep mode (not deep sleep) sometimes I get wrong values. I know that JLink can read data when chip is WFI, not sure about STLink. Maybe in case when STMViewer cannot read data because of sleep it shouldn't display wrong values, and just skip this data read operation. Or find the way how to read data in sleep mode. I also wonder how stlink_read_debug32 function differs from stlink_read_mem32, I couldn't find any description of those functions. I tried to compile project and check it, but couldn't build it with CMake and MinGW, I've got compiler errors at very beginning of the build. Maybe you have some guide or commands how to build it on Windows? P.S. Project is great! Thank you

wckdwzrd avatar Apr 18 '24 15:04 wckdwzrd