-
Notifications
You must be signed in to change notification settings - Fork 3k
Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides #14457
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
Conversation
@gpsimenos, thank you for your changes. |
Note that pinvalidate script has not been executed... edit: I see there are 2 Travis CI now:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't compile:
$ mbed test --compile -m NUCLEO_L552ZE_Q -t ARM -n drivers-tests-tests-mbed_drivers-echo
[Error] mbed_pinmap_default.cpp@73,9: use of undeclared identifier 'USBTX'
[Error] mbed_pinmap_default.cpp@73,21: use of undeclared identifier 'USBRX'
Suggestion:: $ git diff hal/include/hal/PinNameAliases.h /* Aliases for legacy reasons. To be removed in the next Mbed OS version */ |
Another comment: "git grep USBTX" still has some results... Suggestion: update pinvalidate.py script, and set test as failed if USBTX is used |
The pinvalidate tool is already updated to fail targets that don't use CONSOLE_TX/CONSOLE_RX. Travis is expected to fail the pinvalidate test because this PR modifies a lot of PinNames.h files which are not yet compliant. |
Applied! |
Did you check this ? |
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's start CI in order to check build ?
@adbridge Let's start CI |
Now compiles after suggestion above applied. |
CI started |
@gpsimenos looks like lots of failures... |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Let's retry, all targets should now build! |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
@adbridge Let's merge! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Subject to fixing the travis failures
Travis is expected to fail the pinvalidate test because this PR modifies a lot of PinNames.h files which are not yet compliant :) |
There's no easy way to understand if ARMmbed/mbed-os#14457 has been applied or not in the tree we are compiling
There's no easy way to understand if ARMmbed/mbed-os#14457 has been applied or not in the tree we are compiling
Summary of changes
This PR updates instances of
USBTX
andUSBRX
toCONSOLE_TX
andCONSOLE_RX
respectively, as the names of the UART pins used for console in Mbed boards.All targets are also updated to support overriding the default
CONSOLE_TX
andCONSOLE_RX
pin using theMBED_CONF_TARGET_STDIO_UART_TX
andMBED_CONF_TARGET_STDIO_UART_RX
options inmbed_app.json
.Impact of changes
No impact expected from application point of view. Legacy aliases are in place for now.
Migration actions required
Documentation
Pull request type
Test results
Verified compliance with pinvalidate tool. Some targets did not have USBTX/RX defined and consequently also do not have CONSOLE_TX/RX: S5JS100, S1SBP6A, ARM_MUSCA_B1, ARM_MUSCA_S1.
Travis is expected to fail the pinvalidate test because this PR modifies a lot of PinNames.h files which have not been migrated to the new standard yet.
Reviewers