standby in stm32u375 achieved

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: standby in stm32u375 achieved

Post by Giovanni »

This is very strange, could you try to clear just the SPE bit instead of all SPI registers?
geoffrey.brown
Posts: 122
Joined: Thu May 07, 2015 9:47 pm
Has thanked: 3 times
Been thanked: 18 times

Re: standby in stm32u375 achieved

Post by geoffrey.brown »

It was really confusing because the coupling between spi, stop modes, and flash was really strange. I ended up writing a stand alone program to test just this path. In the end, I had to explicitly handle restarting power modes and flash after stop modes. Once that was done, your changed spi driver works fine. What the connection between the two is far from clear, but my best guess is that by not clearing the spi device, the actual stop mode wasn't being entered (a silent fail on the part of the stm32u375). I base this guess on actually measuring the current when the device was supposed to enter stop1.

Thanks for your help in chasing this! I do think the changes to spiStop are needed.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: standby in stm32u375 achieved

Post by Giovanni »

It is possible that the logic for entering stop mode checks for the various peripherals state, the problem is that such failed check is not logged anywhere as error status apparently.

Giovanni
Post Reply