Hello @claeskjellstrom ,
Thanks for your post. Since you are using a custom board, my testing is limited on this end. I will try my best to provide you with some suggestions.
First, please check the hardware connections. Make sure that all the connections on the SPI bus, especially the MISO line, are secure and there are no short circuits or open circuits. Also, verify that the pins of the LPS22HH for configuration and operation are correctly connected according to its datasheet.
Regarding the SPI communication settings, check if the clock polarity (CPOL) and clock phase (CPHA) are set correctly to match the requirements of the LPS22HH. Also, ensure that the SPI transfer rate is within the acceptable range for the device, especially in the low-power VLPR mode.
It would be beneficial to conduct some comparison tests. Try replacing the LPS22HH chip with a different one to see if the problem persists, which could indicate a chip-specific issue. Additionally, test the SPI read/write operations in other non-low-power modes to determine if the problem is unique to the VLPR mode.
Hope these suggestions will help you identify and solve the problem. If you have solved your problem or there is any new progress, you are welcome to share it in our community.
BRs,
Celeste