-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add one board Green Tea SPI Communication Test #8919
Add one board Green Tea SPI Communication Test #8919
Conversation
c17a0a8
to
e8c61c3
Compare
a290cfe
to
0892667
Compare
Well done @mprse ! @screamerbg or @MarceloSalazar need to have a look at this as well. please add them as reviewer. |
Thanks! I'm travelling today, but will try it tomorrow morning |
TESTS/mbed_hal/spi_com/configs.h
Outdated
#ifndef MBED_SPI_PINS_H | ||
#define MBED_SPI_PINS_H | ||
|
||
#if defined(TARGET_NUCLEO_F429ZI) |
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.
If every target has to add to this config file, and pins.h
, is this file going to grow too big and a quite messy? Is there a better way to achieve the same function?
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.
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.
Huh. @ARMmbed/mbed-os-core Any thoughts on this?
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.
I discussed this with @maciejbocianski and QSPI test doesn't use header files for pins definition, but only for flash config. In QSPI pins have been unified across all targets with QSPI feature enabled. So in this case we could also define SPI pins in target's PinNames.h
file. To run one board test we require two SPI interfaces, so I suggest to add the following definitions:
SPI0_MOSI
, SPI0_MISO
, SPI0_SCK
, SPI0_CS
SPI1_MOSI
, SPI1_MISO
, SPI1_SCK
, SPI1_CS
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.
Looks better than these pins in the header file, to define SPIx pins
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 sounds a better idea to me!
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.
Test has been updated:
- removed header files with pins definition
- provided pins definition in target's
PinNames.h
file - adapted pin names in the test
- adapted documentation.
be424ad
to
f24ab96
Compare
@0xc0170 @jamesbeyond @MarceloSalazar @screamerbg When y'all get a chance. |
Depends on at least #8445 |
f24ab96
to
9b5d3f0
Compare
This test is ready for review, but requires SPI pins definition from #7976. |
9b5d3f0
to
e8c2e22
Compare
f3429a3
to
9b1ccaa
Compare
e8c2e22
to
86aa9c9
Compare
Rebased after spi feature branch has been rebased on master to solve Travis issue. |
The build results are now much better! But still, there are some problems on
mbed-os/features/storage/kvstore/conf/kv_config.cpp Lines 548 to 559 in 1d30511
mbed-os/features/storage/system_storage/SystemStorage.cpp Lines 137 to 145 in 1d30511
Looking at the above code snippets this code should not be compiled according to the configuration (SD component is not provided for Lines 1522 to 1530 in 71c84e8
|
Summary of
I'm looking into this now. |
CI started |
Test run: FAILEDSummary: 3 of 9 test jobs failed Failed test jobs:
|
5527d35
to
5f4a009
Compare
At this point, we have two problems on the feature branch which I don't know how to fix. These problems probably are related to CI system itself and can not be handled by changing mbed config.
This board has a wifi module connected by the SPI interface. On the feature branch, SPI is disabled for this board, but the driver is included during the build process. This causes an error since SPI is not available.
Not sure what is going on here. This board does not have The SPI feature branch is broken for a very long time. @0xc0170 @cmonr Could you help me to solve above problems. Edit: Edit:
|
@ARMmbed/mbed-os-test Please review above comment |
CI restarted |
Test run: FAILEDSummary: 2 of 13 test jobs failed Failed test jobs:
|
So the results are better, but still few problems to solve:
Under investigation.
Under investigation. |
ANALOGIN is related to SPI. If SPI is not supported, then ANALOGIN also. This change should fix: ARM_CM3DS_MPS2::ARMC6::TESTS-MBED_HAL-PINMAP [Error] @0,0: L6218E: Undefined symbol analogin_pinmap (referred from BUILD/tests/ARM_CM3DS_MPS2/ARMC6/TESTS/mbed_hal/pinmap/TESTS/mbed_hal/pinmap/main.o).
Looks like `FVP_MPS2 family` has SERIAL_FC feature enabled, but does not provide pins definition for `PinMap_UART_CTS`, `PinMap_UART_RTS`. This should fix the following failures: ARMC6::FVP_MPS2_M0 ARMC6::FVP_MPS2_M0P ARMC6::FVP_MPS2_M3 ARMC6::FVP_MPS2_M4 ARMC6::FVP_MPS2_M7 [Error] serial_api.c@403,12: use of undeclared identifier 'PinMap_UART_CTS'; did you mean 'PinMap_UART_TX'?
…ples. Not supported on the spi feature branch.
5f4a009
to
d14c50a
Compare
Ci restarted |
Test run: FAILEDSummary: 2 of 11 test jobs failed Failed test jobs:
|
CI restarted |
Test run: FAILEDSummary: 5 of 7 test jobs failed Failed test jobs:
|
8594d8a
to
1676243
Compare
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
Provide one board SPI communication test which uses Green Tea Framework.
This PR can not be merged until PR which defines the new HAL API and adds at least one example implementation is merged. Probably then the test will have to be adapted to the final API version.
Detailed description can be found in README.md file in the test folder.
List of PRs with related tests
Pull request type