standby in stm32u375 achieved
Moderator: RoccoMarco
- 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
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
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.
Thanks for your help in chasing this! I do think the changes to spiStop are needed.
- 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
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
Giovanni