Software description
5.2.1
Spy mode case
In spy mode, the door is open, and the Discovery kit may receive a second plug to spy the
messages exchanges.
In spy mode, the Discovery kit must not interfere with the two type C devices to which it is
connected.
This is why, as soon as open door is detected, T2, T3 and T5 MOSFETs are turned ON.
BSP_MOSFET_On(MOSFET_ENCC1);
BSP_MOSFET_On(MOSFET_ENCC2);
Door is open, RD56 (5K1 Ohms) is ignored (needed only for standalone mode to be seen as
a sink), and CC1 and CC2 pins are connected from the G0 UCPD IP.
if no micro USB is plugged, as soon as the source device detects the sink device, VBUS is
driven, and the G0 Discovery kit is powered on.
Here are the menus sequence. Details on the menus in following
18/30
Table 6. Code example: MOSFET control in spy mode
Figure 12. CC lines isolation/pull down
UM2546 Rev 1
UM2546
Section 5.2.3
Need help?
Do you have a question about the STM32G071B-DISCO and is the answer not in the manual?