Skip to content
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

boot: zephyr: serial_adapter: Fail if USB CDC enabled with console and fail to build if main thread is not preemptible #1853

Merged
merged 3 commits into from
Nov 7, 2023

Conversation

nordicjm
Copy link
Collaborator

@nordicjm nordicjm commented Nov 6, 2023

This prevents MCUboot from successfully building if console and serial recovery (USB CDC) are both enabled and they both point to the same device. Also adds a build failure if the main thread priority is not preemptible and USB CDC ACM serial recovery is used, this is because if this is the case, USB events will never be able to be processed and serial recovery cannot ever enumerate

@nordicjm nordicjm added area: zephyr Affects the Zephyr port area: serial recovery labels Nov 6, 2023
@nordicjm nordicjm requested a review from de-nordic November 6, 2023 14:41
This prevents MCUboot from successfully building if console and
serial recovery (USB CDC) are both enabled and they both point to
the same device

Signed-off-by: Jamie McCrae <[email protected]>
Adds a build failure if the main thread priority is not preemptible
and USB CDC ACM serial recovery is used, this is because if this is
the case, USB events will never be able to be processed and serial
recovery cannot ever enumerate

Signed-off-by: Jamie McCrae <[email protected]>
@nordicjm nordicjm requested a review from de-nordic November 6, 2023 15:21
@nordicjm nordicjm changed the title boot: zephyr: serial_adapter: Fail if USB CDC enabled with console boot: zephyr: serial_adapter: Fail if USB CDC enabled with console and fail to build if main thread is not preemptible Nov 6, 2023
Fixes USB configurations so that they build out of the box, this
previously falsely built successfully but would not run

Signed-off-by: Jamie McCrae <[email protected]>
@nordicjm nordicjm merged commit 0a8bbbf into mcu-tools:main Nov 7, 2023
55 checks passed
@nordicjm nordicjm deleted the fixusb branch December 12, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants