2024-07-02 06:19 AM - edited 2024-07-02 11:10 PM
Hi team,
We have our own customized USBPD board (STM32L562CET6) which support both SPR(100W) and EPR(140W). SPR is working great, now we want to work on 140W using EPR mode. So that initially we have tried to enter EPR mode by following method
#define USBPD_EPRMDO_ACTION_ENTER (uint32_t)(0x01 << 24)
#define USBPD_EPRMDO_DATA_ENTER (uint32_t)(0x8C << 16)
eprmdo[0] = 1; //Header - no.of data objects
eprmdo[1] = USBPD_EPRMDO_ACTION_ENTER | USBPD_EPRMDO_DATA_ENTER;//EPRMDO
status = USBPD_PE_Request_DataMessage(0, USBPD_DATAMSG_EPR_MODE, eprmdo);
But it returns "USBPD_FAIL". Please clarify me that "Is it possible to enter EPR mode by using above mentioned method? If yes, please correct me why i am getting USBPD_FAIL status."
2024-07-03 12:34 PM
Hi @AVND
First, using Extended Power Range, according to spec, you can reach up to 240W,
Second, EPR-capable Source port is defined in USB Type-C 2.3 standards. However, STM32L562 complies with USB Type-C specification release 2.0 as stated in the reference manual (and in datasheet there is a typo).
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-07-04 12:57 AM
Hello AVND,
STMicroelectronics USBPD library for EPR is still under development so you won't be able to build EPR apps with it.
The flow to negociate an EPR contract is not as simple.
You need first to negociate an SPR contract and then enter in EPR mode, then the source can present EPR PDO and you will be able to negociate an EPR contract.
Best Regards,
2024-07-04 02:21 AM - edited 2024-07-04 02:32 AM
Thanks for the quick reply!!!
@LLECH.1 Can you please confirm when will we get an updated firmware version of USBPD which support EPR, is there any timeline that we have to wait for the release? Based on this we will plan accordingly.
@FBL we have tried sink role so please confirm whether we can use the STM32L56 after when EPR version USBPD get released or we need to move on some other MCU which support USB Type-C 2.3 Standards.
2024-07-08 10:55 PM
Hi Team Any update?