2026-01-24 8:16 AM
So i have the stm32G0 usb-c disco board.
https://www.st.com/en/evaluation-tools/stm32g071b-disco.html
I've flashed the latest USBPD_Analyzer software on the device and i have the latest UCPD monitor project.
The semi problem is that it's kind of frustrating that in SPY MODE by default the mico doesn't show as a USB device. I only see the usb micro usb connection when i'm in Snk Mode. Is there a reason why in spy mode the USB connection to the PC from the micro doesn't show up?
So what i have to do is. Start in Snk mode. Connect to the PC via the micro usb connector and connect to the UCPD monitoring program. Then i can switch to SPY MODE then i can attach my devices to it. Which can kind of be flakey some times.
2026-01-24 8:52 AM
Connection
So the STMG0 doesn't actually connect to the USB device. It has a uart connection that talks to the programing STM32F0 chip.
Read switch
Here's the read switch. It does some kind of protection. Just not sure what it does.
Code
You do a HAL_NVIC_SystemReset. Every time there a change in DOOR_SENSE_PIN.
But i don't really see where the uart comm's happen.