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

mimxrt1011: UART: Add additional error checking #4513

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

jepler
Copy link
Member

@jepler jepler commented Mar 30, 2021

.. and make the 'invalid pin' messages standard.

Closes #4502

.. and make the 'invalid pin' messages standard.

Closes adafruit#4502
@jepler
Copy link
Member Author

jepler commented Mar 30, 2021

Running uart_test_script on the rt1010-evk:

>>> import uart_test_script
RX pin: board.D6 	 TX pin: board.D7
RX pin: board.D6 	 TX pin: board.AUDIO_BCLK
RX pin: board.A0 	 TX pin: board.AUDIO_MCLK
RX pin: board.AUDIO_SYNC 	 TX pin: board.AUDIO_MCLK
RX pin: board.USER_LED 	 TX pin: board.AUDIO_MCLK
RX pin: board.D0 	 TX pin: board.D1

@tannewt tannewt merged commit ea7ca8a into adafruit:main Mar 30, 2021
}
}

if (self->rx) {
self->uart = mcu_uart_banks[self->rx->bank_idx - 1];
} else {
assert(self->rx);
Copy link

@d-c-d d-c-d Mar 31, 2021

Choose a reason for hiding this comment

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

was the assert(self->rx) a known failure, since we just checked self-rx above, so we know it's false
compare that to the self-tx and self->uart usages below

@jepler jepler deleted the mimxrt10xx-uart-fault branch November 3, 2021 21:10
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.

Hardfault when picking wrong UART pin on iMX RT1011
4 participants