Skip to content

Conversation

nvlsianpu
Copy link
Contributor

The workaround in the UARTE driver which was up to disabling RX was removed in zephyr-rtos v4.0. Since that MCUboot needs to do corresponding action.

note:
Probably patch might improved a bit so it would be applied only for shell's and mcumgr's console UARTE.

The workaround in the UARTE driver which was up to
disabling RX was removed in zephyr-rtos v4.0. Since that
MCUboot needs to do corresponding action.

Signed-off-by: Andrzej Puzdrowski <[email protected]>
@nvlsianpu nvlsianpu force-pushed the ensure_uarte_kill_rx branch from de96a27 to 20587e2 Compare September 1, 2025 14:51
Copy link

sonarqubecloud bot commented Sep 1, 2025

if (nrfy_uarte_event_check(current, NRF_UARTE_EVENT_RXSTARTED)) {
nrfy_uarte_task_trigger(current, NRF_UARTE_TASK_STOPRX);
/* Wait up to 100ms for task to stop */
for (int i = 0; i < 1000; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heard yesterday there is an deinit driver function in zephyr from @bjarki-andreasen not sure if it does the same as this or different but might be worth a look at

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes there is such deinit - API. I expected it will replace this implementation, but not today,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The API is indeed implemented zephyrproject-rtos/zephyr#93273 can't we just use it?

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