Skip to content

Conversation

@devin-ai-integration
Copy link

USB Interrupt Priority and CRS Configuration for STM32L433

This PR implements proper USB interrupt priority configuration and Clock Recovery System (CRS) setup 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

These changes should 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
  • 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

devin-ai-integration bot and others added 2 commits January 29, 2025 16:39
- 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>
Implements board-level power management hooks for USB suspend/resume on the
STM32L433-based Cygnet board. This includes:

- USB interrupt priority configuration
- Power management implementation for suspend/resume
- GPIO clock management during low power states
- System clock reconfiguration after wake from STOP mode

Part of the USB functionality improvements for the Cygnet board.

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

devin-ai-integration bot and others added 4 commits January 29, 2025 16:55
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
…_commit.py

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

Devin is currently unreachable - the session may have died.

devin-ai-integration bot and others added 22 commits January 29, 2025 18:37
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
devin-ai-integration bot and others added 2 commits January 30, 2025 02:05
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
Co-Authored-By: bsatrom@blues.com <bsatrom@blues.com>
@bsatrom bsatrom closed this Feb 4, 2025
@zfields zfields deleted the devin/1738169385-usb-power-management 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