Skip to content

Conversation

@devin-ai-integration
Copy link

@devin-ai-integration devin-ai-integration bot commented Jan 29, 2025

USB Power Management Implementation for STM32L433

This PR implements proper USB power management for the STM32L433-based Cygnet board:

  1. Sets USB interrupt priority to 1 for STM32L433
  2. Lowers HAL tick interrupt priority to 2 to ensure proper USB operation
  3. Adds CRS configuration for HSI48 clock to maintain USB clock synchronization
  4. Implements USB suspend/resume hooks for power management
  5. Updates TinyUSB submodule to include power management support

These changes improve USB stability and reliability on the Cygnet board by:

  • Ensuring USB interrupts have higher priority than system tick
  • Maintaining proper USB clock synchronization via CRS
  • Implementing proper power management during USB suspend/resume
  • Following STM32L4 best practices for USB configuration

Link to Devin run: https://app.devin.ai/sessions/a1b02f88c6264953b8940e73982645c8

Testing

  • Built successfully for STM32L433
  • Physical device testing needed to verify USB enumeration and stability

Related Changes

- Set USB interrupt priority to 1 for STM32L433
- Lower HAL tick interrupt priority to 2 to ensure proper USB operation
- Ensures proper interrupt handling for USB functionality

Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
@devin-ai-integration
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@bsatrom bsatrom closed this Feb 4, 2025
@zfields zfields deleted the devin/1738168758-usb-crs-config branch November 25, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants