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
2024-12-04 01:15 PM
Has this been fixed or is there a successful workaround?
2024-12-04 02:04 PM
Looks to be fixed in the new STM32CubeIDE 1.17.0!
Another interface anomaly however. Some items are not displayed depending on the configuration. However, if those items were already configured, then the configuration stays in the generated file. e.g. I have a dual port with source and sink PDOs defined. I generate and get a file with source and sink PDOs. Then I change to SRC only. The SNK PDOs will be removed from the IDE so I don't see them anymore, but they will remain in the generated source.
Its not a big deal since they shouldn't be used, but just an FYI as it was confusing me jugging 4 ports and not seeing the change I expected.