zephyr: Sample USB-C Sink Not Working in Zephyr v3.7.0 on weact_stm32g431_core
Describe the bug
After upgrading Zephyr from v3.6.0 to v3.7.0, the project samples/subsys/usb_c/sink fails to work correctly on weact_stm32g431_core. The project compiles successfully, but the USB-C sink functionality does not work as expected.
To Reproduce
Steps to reproduce the behavior:
- CONFIG_LOG_DEFAULT_LEVEL=3
- Switch to Zephyr v3.7.0.
- Run
west updateto update dependencies. - Compile and flash
weact_stm32g431_core samples/subsys/usb_c/sink. - The project fails to work correctly.
Expected behavior
The project should compile and run successfully, enabling USB-C PD sink functionality.
Environment (please complete the following information):
- OS: Windows 10
- Toolchain: Zephyr SDK 0.16.8
- Commit SHA or Version used: v3.7.0
Additional context
The issue seems to be related to changes in the hal_stm32 module between v3.6.0 and v3.7.0. Specifically, the revision 60c9634f61c697e1c310ec648d33529712806069 works correctly, while f1317150eac951fdd8259337a47cbbc4c2e6d335 does not.
- name: hal_stm32
revision: f1317150eac951fdd8259337a47cbbc4c2e6d335
path: modules/hal/stm32
groups:
- hal
Using git bisect, the issue was narrowed down to the commit 6d2120588d502e91c33f379728d2ce9a6fa1e9e3.
Additional Information
-
The issue specifically occurs when
CONFIG_LOG_DEFAULT_LEVEL=3. At log levels 2 or 4, the version ofhal_stm32does not impact the functionality. -
When using the problematic version of
hal_stm32withCONFIG_LOG_DEFAULT_LEVEL=3, there is no log output from the UART. This issue does not occur at log levels 2 or 4.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (11 by maintainers)
Hi @marwaiehm-st , thanks for responses.
I have gathered some additional information that might be crucial for diagnosing the issue.
The problem occurs specifically when
CONFIG_LOG_DEFAULT_LEVEL=3. At log levels 2 or 4, the version ofhal_stm32does not impact the functionality.Additionally, when using the problematic version of
hal_stm32withCONFIG_LOG_DEFAULT_LEVEL=3, there is no log output from the UART. This behavior is not observed at other log levels.I will update the issue with these new details.
Here is the normal log output when everything is functioning correctly:
Please let me know if there is anything else I can provide to assist in resolving this issue.