Posted on May 14, 2018 at 05:24Hi
Piotr Romaniuk,
Yes, it is because when BlueNRG-2 entering sleep or standby state, the debug port is not powered.
There is a workaround for this, as described in datasheet 3.21.1 Debugging tips
http://www.st.com/resource/en/datasheet/bluenrg-2.pdf
There are certain situations where debug access is disabled and the chip cannot be accessed, including:
• application that disables debug pins
• application that set the device in sleep or standby state, in which the debug port is not powered.
These cases are common during application development and device can end up in a state where debug access
is no longer possible. To recover this situation, it is recommended to force IO7 pin high and hardware reset the
device in order to force execution of the updater code (see Section 3.23 Pre-programmed bootloader). The user
can then connect with SWD interface and erase the device Flash memory.
Best Regards,
Winfred