Skip to content

boot: zephyr: Refactor USB DFU entry logic #2277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sayooj-aerlync
Copy link

Consolidates USB DFU entry logic by unifying GPIO and timeout-based DFU triggers under a common flag. This avoids code duplication and improves maintainability.
Also improves log clarity for different DFU exit conditions.

@sayooj-aerlync
Copy link
Author

Hi @nordicjm @de-nordic

The tests are failing with the following logs:

+ git clone https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git
~/work/mcuboot ~/work/mcuboot/mcuboot
Cloning into 'trusted-firmware-m'...
fatal: unable to access 'https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/': The requested URL returned error: 502

What shall I do to make it clone?

@nordicjm
Copy link
Collaborator

Hi @nordicjm @de-nordic

The tests are failing with the following logs:

+ git clone https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git
~/work/mcuboot ~/work/mcuboot/mcuboot
Cloning into 'trusted-firmware-m'...
fatal: unable to access 'https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/': The requested URL returned error: 502

What shall I do to make it clone?

FIH hardening tests can be ignored, these are failing due to a problem with the TFM git server

Consolidates USB DFU entry logic by unifying GPIO and timeout-based
DFU triggers under a common flag. This avoids code duplication and
improves maintainability.
Also improves log clarity for different DFU exit conditions.

Signed-off-by: Sayooj K Karun <[email protected]>
@sayooj-aerlync
Copy link
Author

Please have a look into this @de-nordic @nordicjm

@nordicjm
Copy link
Collaborator

nordicjm commented May 6, 2025

Will look at it after the current 2.2.0 release concludes, currently bug fixes only

@sayooj-aerlync
Copy link
Author

Could you please check this?

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.

3 participants