2024-09-30 04:05 PM
This is very easy to reproduce:
- Create a new STM32 project using a PD-compatible MCU e.g. STM32G071CBT6
- Enable both UCPD1 and UCPD2 as dual-role ports. Add DMA for Rx/Tx for each port.
- Enable FreeRTOS
- Enable USBPD with default port configuration "Port 0: UCPD1; Port 1: UCPD2", "Full stack", TIM1
- Looking at the "Configuration" window only Port 1 is configurable (see attached)
2024-10-01 01:29 AM
2024-10-01 04:07 AM
Hi Mahmoud,
Thanks for the update. I am not quite sure what the proposed work around is to ensure all the Port 1 & 2 parameters are set correctly. Is the process as follows:
- Enable UCPD1. Disable UCPD2. Configure Port 0 and generate code. Commit to GIT.
- Disable UCPD1. Enable UCPD2. Configure Port 1 and generate code. Revert any changes that appear to related to Port 0. Keep Port 1 changes.
The Post above just says "add the function call MX_UCPD1_Init()" but this obviously won't configure the missing Port information.
Thanks,
Evan.
2024-10-01 04:45 PM
The problem with the approach above is every time you enable or disable even one of the UCPD ports it disabled USBPD middleware package - meaning everything is reset.
Configuring dual USBPD support is broken. How long has the internal ticket been open for?
2024-10-01 04:56 PM
Hi Mahmoud,
What is the last known-good STM32Cube IDE version we can roll back to?
Thanks,
Evan.
2024-10-01 05:03 PM
I can't download 1.15 - it simply reloads the page:
https://www.st.com/en/development-tools/stm32cubeide.html
1.16 works but we know that's broken.
2024-10-01 05:52 PM
I think we've found a work around. Open the IOC file a text editor and set the version back to the previous MxCube version:
MxCube.Version=6.11.1
MxDb.Version=DB.6.0.111
2024-10-08 04:20 PM
Hi Mahmoud,
Could you please update the status of this and when can we expect to see it fixed?
Regards,
Evan