STM32WB 2.5mA static current after advertising stops (P2P server)
- 7 replies
- 5518 views
So this is my third day working on this problem.
I have created an P2P server project based after the example and the MOOC videos.
It works just fine, no problem during the first 60 seconds.
The current consumption is around 200uA during advertising.
But when the advertising stops the current goes up to 2.0 - 2.5mA
I have compared the p2p server project example file by file, and there is nothing that i can find that could cause this.
The board is custom designed by me, and all the IO ports are electrical disconnected to any other parts of the board. the oscillators and components are taken from a WB55 dev board from ST.
The MCU is the STM32WB35CEU7A with the latest FUS V1.2.0 and BLE_Stack_full V1.12.1
Project is based on cube V1.12.0
I have made two identical PCB boards, result is the same on both.
I have added a Task that blinks an led each 5 seconds, and additional led that shows when the M4 core is running. And both blinks the same time both before and after advertising stops.
So my thought is that the M0 core is stuck and not in sleep mode after the advertising stops.
I have included the project with code.
Is there a way to determent if the M0 core is in sleep mode or running/stuck ?
