-
Notifications
You must be signed in to change notification settings - Fork 3k
Migrate nRF52840-DK to Arduino Uno pin names #14960
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
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.
Could do with a long description in the commit message. Otherwise, LGTM
Please review travis failing pin validation |
Well it fails with the old version too :) I think it has to do with how Nordic defines the pins, is gives errors like:
when the script is run with -vvv. What is the Nordic maintainer situation? |
Fixed it. Moved some pins to #define from enum as required. Had to remove some whitespaces since the regex in the validation tool is pretty strict about it :) |
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.
second commit - can you add nRF52840-DK:
prefix there.
Test passed so this hsould be ready for CI
5c6894b
to
665d4e7
Compare
Done |
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Pinmap test case failed, please review |
For convenience, this is the failing test case: mbed-os/hal/tests/TESTS/pin_names/arduino_uno/main.cpp Lines 157 to 158 in 3318720
This case is bound to fail on Nordic boards as the peripherals can be muxed arbitrarily and mbed-os/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/serial_api.c Lines 1432 to 1435 in 3318720
How should we proceed? |
@gpsimenos can you review please? |
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.
LGTM, I believe it's OK to ignore the failing test case.
This would start failing in our CI. Nordic pinmaping is valid so our test case should either consider this or we shall update testing pinmap set for Nordic to not be the same - I've noticed their uart pinmap is basically pXX, 0, 0 - if we set console uart to be non zero, would that fix the error ? |
This pull request has automatically been marked as stale because it has had no recent activity. @boraozgen, please carry out any necessary work to get the changes merged. Thank you for your contributions. |
@gpsimenos What else can we do with the test, nordic pinmap features seems to break the test (this is valid use case), so we should review the tests. |
I can see, checking what is causing this labeling :( |
Adapted the file to the latest pin naming guidelines. pinvalidate.py passes.
665d4e7
to
c77c85c
Compare
Pull request has been modified.
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 3 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
A similar issue seems to apply to the I2C test too :/ Failing test for convenience:
Edit: logs extract
Failing line:
|
Test is checking if the default I2C pins are in the I2C pin tables |
Again, dummy pinmap is returned, which causes the fail: mbed-os/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/i2c_api.c Lines 219 to 227 in 3318720
|
But why these pins are not part of PinMap_I2C_testing ??? |
If we add these two to the testing pinmaps? |
I'll close this pull request. Please reopen with an update or add an issue to keep track of this. |
Summary of changes
Updates the pin names and removes the migration warning.
Impact of changes
Migration actions required
Documentation
None.
Pull request type
Test results
Reviewers