2024-01-31 03:55 AM
I have STEVAL-CCC002V1 with STUSB1600A controled with STM32F103 over I2C. Samsung Galaxy Tab connected to USB-C and I want to charge it.
But I can't switch to "source power role". No matter how hard I try the controller is still in sink.
Here I have a list of several I2C registers:
CC_CAPABILITY_CTRL @18h: 10100001
- 3.0 A USB Type-C current
- VCONN discharge disabled on CC pin
- VCONN supply capability enabled on CC pin
CC_POWER_MODE_CTRL @28h: 0
VCONN_MONITORING_CTRL @20h: 10110000
MONITORING_STATUS @10h: 1011
- VBUS, VCONN - OK
VBUS_MONITORING_CTRL @2Eh: 111
CC_CONNECTION_STATUS register @0Eh: 1000001
- CC_ATTACHED_MODE: source attached
- DEVICE_POWER_MODE :operating in normal power mode
- CC_POWER_ROLE: operating as a sink
- CC_VCONN_SUPPLY: VCONN is not supplied on CC pin
- CC_ATTACH: attached
CC_OPERATION_STATUS register@11h: 10000010
- CC_PIN_ATTACHED: CC2 is attached
- SINK_POWER_STATE: PowerDefault.SNK (source supplies default USB current)
- TYPEC_FSM_STATE: Attached.SNK
Anyone have any idea what I'm doing wrong?