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

Add support for QSPI to Cypress Boards #10435

Merged
merged 1 commit into from May 2, 2019
Merged

Conversation

morser499
Copy link

Description

Added support for QSPI to Cypress targets

Pull request type

[ ] Fix
[ ] Refactor
[x] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

@ciarmcom ciarmcom requested review from a team April 17, 2019 19:00
@ciarmcom
Copy link
Member

@morser499, thank you for your changes.
@ARMmbed/mbed-os-maintainers @ARMmbed/mbed-os-hal @ARMmbed/mbed-os-test @ARMmbed/mbed-os-storage please review.

Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

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

Otherwise looks fine to me




// #define FAST_MODE_ENABLE() \
Copy link
Contributor

Choose a reason for hiding this comment

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

why this code is commented out?

Copy link
Author

Choose a reason for hiding this comment

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

removed the commented code. this is not supported by the PSoC 6 device

Copy link
Contributor

Choose a reason for hiding this comment

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

Was the test "features-storage-tests-blockdevice-general_block_device" successful?

@@ -0,0 +1,259 @@
/* mbed Microcontroller Library
* Copyright (c) 2018-2018 ARM Limited
*
Copy link
Contributor

Choose a reason for hiding this comment

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

please add SPDX identifiers to new files

Copy link
Author

Choose a reason for hiding this comment

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

fixed

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 18, 2019

Please also fix travis astyle

Copy link
Contributor

@maciejbocianski maciejbocianski left a comment

Choose a reason for hiding this comment

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

LGTM

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 18, 2019

We would like to produce 5.12.2 release candidate today prior holidays, please let us know when the update can be done.

},
"CY8CPROTO_062_4343W": {
"QSPI_FREQ": "50000000",
"QSPI_MIN_PROG_SIZE": "512"
Copy link
Contributor

@offirko offirko Apr 18, 2019

Choose a reason for hiding this comment

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

Please note that SFDP standard requires minimum Program-Granularity of 1byte.
The standard and our code fully support 512 Bytes Page Size without the need for this parameter.
The parameter was added for supporting devices that couldn't support the standard, and has an impact on Filesystem heap.
If the flash chips that you're adding support SFDP standard and so does the Cypress target, then this parameter is not required.

Copy link
Author

Choose a reason for hiding this comment

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

removed the prog_size setting as both the PSoC 6 and memory chip are compatible.

Copy link
Contributor

Choose a reason for hiding this comment

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

@morser499 - Thanks for the update! I'm not sure whether the test "features-storage-tests-blockdevice-general_block_device" runs as default - it would be a good test to verify the above.

Copy link
Author

Choose a reason for hiding this comment

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

I did run those tests, however, I don't have most of the reports anymore. I can rerun them if you would like. Attached is a screenshot (it isn't letting me upload the html file) of the last log I ran.

062_ble_gcc

Copy link
Contributor

Choose a reason for hiding this comment

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

Most important is running "features-storage-tests-blockdevice-general_block_device" after you've removed the prog_size. And making sure in the test report that it ran on QSPIF blockdevice

Copy link
Author

Choose a reason for hiding this comment

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

These tests were run after the removal of prog_size. How do I verify it ran on the QSPIF blockdevice?

Copy link
Author

Choose a reason for hiding this comment

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

Just uploaded the details for the mbed-os-features-storage-tests-blockdevice-general_block_device (below) which seems to indicate that it was using QSPIF

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 18, 2019

This needs rebase, latest fixes were merged early today for 5.12.2. Please update

@0xc0170 0xc0170 removed the request for review from a team April 18, 2019 17:00
@adbridge
Copy link
Contributor

This needs rebase, latest fixes were merged early today for 5.12.2. Please update
@morser499 Any update on this please? This is blocking our 5.12.2 release...

@morser499
Copy link
Author

Please also fix travis astyle

Fixed

@0xc0170 0xc0170 changed the title Added support for QSPI to Cypress Boards Add support for QSPI to Cypress Boards Apr 29, 2019
@adbridge
Copy link
Contributor

@offirko could you please re-review the changes ? Thanks

@morser499
Copy link
Author

morser499 commented Apr 30, 2019

I believe all the test issues are now addressed

@adbridge
Copy link
Contributor

adbridge commented May 1, 2019

@offirko could you please review the test fixes ? In the meantime, kicking off the ci.

@adbridge
Copy link
Contributor

adbridge commented May 1, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented May 1, 2019

Test run: FAILED

Summary: 2 of 7 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-IAR

@morser499
Copy link
Author

I overlooked the Sequana CM0 target. That has now been fixed too.

@0xc0170
Copy link
Contributor

0xc0170 commented May 2, 2019

CI restarted

@mbed-ci
Copy link

mbed-ci commented May 2, 2019

Test run: FAILED

Summary: 1 of 11 test jobs failed
Build number : 3
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_exporter

@0xc0170
Copy link
Contributor

0xc0170 commented May 2, 2019

Exporters restarted (one failure that was success but failed as well)

Update: not yet rerun, having issue with CI

@0xc0170
Copy link
Contributor

0xc0170 commented May 2, 2019

@ARMmbed/mbed-os-test review ^^ exporters rerun

@alekla01
Copy link
Contributor

alekla01 commented May 2, 2019

Restarted the failed exporter (uvision6) / target (K66F) combinations.

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 4, 2019

This PR affects other boards. Looking at the commit, as it is squashed it is very hard to find a reason why TESTS/mbed_hal/qspi/qspi_test_utils.cpp is being changed here. Future reference: never change common code with target code in one commit if not related, they are not in this PR.

@ARMmbed/mbed-os-maintainers we need to request changes for commits like this, blame on me here as well.

Not reverting the entire PR (one commit), I can revert only changes to the common test code. The main question is: why these changes are needed and how they affect targets?

maciejbocianski added a commit to maciejbocianski/mbed-os that referenced this pull request Jun 4, 2019
Remove some buggy code introduced to hal_qspi_test by PR ARMmbed#10435
Added support for QSPI to Cypress Boards
a8570ff
artokin pushed a commit that referenced this pull request Jul 3, 2019
Remove some buggy code introduced to hal_qspi_test by PR #10435
Added support for QSPI to Cypress Boards
a8570ff
evedon pushed a commit that referenced this pull request Jul 11, 2019
Remove some buggy code introduced to hal_qspi_test by PR #10435
Added support for QSPI to Cypress Boards
a8570ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants