-
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 OSPI driver to support the Octa mode of Macronix octaflash MX25LM51245G #12619
Conversation
sync with source repo
Sync to latest mbed-os
@rogeryou, thank you for your changes. |
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.
Great work!
I am going to execute tests asap!
@ARMmbed/team-st-mcd
@@ -12525,7 +12525,7 @@ | |||
} | |||
}, | |||
"components_add": [ | |||
"FLASHIAP" | |||
"OSPIF" |
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.
Why FLASHIAP is removed ?
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.
Why FLASHIAP is removed ?
Before I add the OSPI driver, I have executed the test "features-storage-tests-blockdevice-general_block_device" of FLASHIAP, but it failed.
Have you tested FLASHIAP on DISCO_L4R9I before?
You can see the error information below.
mbedgt: processing target 'DISCO_L4R9I' toolchain 'GCC_ARM' compatible platforms... (note: switch set to --parallel 1)
mbedgt: test case filter (specified with -n option)
features-storage-tests-blockdevice-general_block_device
test filtered in 'features-storage-tests-blockdevice-general_block_device'
mbedgt: running 1 test for platform 'DISCO_L4R9I' and toolchain 'GCC_ARM'
mbedgt: mbed-host-test-runner: started
mbedgt: :741::FAIL: Expected -1 Was 0
mbedgt: :741::FAIL: Expected -1 Was 0
mbedgt: :747::FAIL: Expected 0 Was 1
mbedgt: :741::FAIL: Expected -1 Was 0
mbedgt: :747::FAIL: Expected 0 Was 2
mbedgt: :258::FAIL: Expected 0 Was -1
mbedgt: :274::FAIL: Expected 92 Was 23
mbedgt: :274::FAIL: Expected 163 Was 0
mbedgt: :274::FAIL: Expected 105 Was 0
mbedgt: :274::FAIL: Expected 177 Was 0
mbedgt: :274::FAIL: Expected 133 Was 0
mbedgt: :274::FAIL: Expected 106 Was 56
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.
Working in mbed-os master branch:
target | platform_name | test suite | result | elapsed_time (sec) | copy_method |
---|---|---|---|---|---|
DISCO_L4R9I-ARMC6 | DISCO_L4R9I | features-storage-tests-blockdevice-buffered_block_device | OK | 15.64 | default |
DISCO_L4R9I-ARMC6 | DISCO_L4R9I | features-storage-tests-blockdevice-flashsim_block_device | OK | 15.32 | default |
DISCO_L4R9I-ARMC6 | DISCO_L4R9I | features-storage-tests-blockdevice-general_block_device | OK | 26.57 | default |
DISCO_L4R9I-ARMC6 | DISCO_L4R9I | features-storage-tests-blockdevice-heap_block_device | OK | 17.56 | default |
DISCO_L4R9I-ARMC6 | DISCO_L4R9I | features-storage-tests-blockdevice-mbr_block_device | OK | 17.6 | default |
DISCO_L4R9I-ARMC6 | DISCO_L4R9I | features-storage-tests-blockdevice-util_block_device | OK | 16.34 | default |
DISCO_L4R9I-ARMC6 | DISCO_L4R9I | tests-mbed_hal-qspi | OK | 38.15 | default |
DISCO_L4R9I-GCC_ARM | DISCO_L4R9I | features-storage-tests-blockdevice-buffered_block_device | OK | 15.58 | default |
DISCO_L4R9I-GCC_ARM | DISCO_L4R9I | features-storage-tests-blockdevice-flashsim_block_device | OK | 15.26 | default |
DISCO_L4R9I-GCC_ARM | DISCO_L4R9I | features-storage-tests-blockdevice-general_block_device | OK | 26.53 | default |
DISCO_L4R9I-GCC_ARM | DISCO_L4R9I | features-storage-tests-blockdevice-heap_block_device | OK | 17.63 | default |
DISCO_L4R9I-GCC_ARM | DISCO_L4R9I | features-storage-tests-blockdevice-mbr_block_device | OK | 16.44 | default |
DISCO_L4R9I-GCC_ARM | DISCO_L4R9I | features-storage-tests-blockdevice-util_block_device | OK | 16.07 | default |
DISCO_L4R9I-GCC_ARM | DISCO_L4R9I | tests-mbed_hal-qspi | OK | 37.88 | default |
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.
Hi,
I execute the command below, and I got failed result.
sudo mbed test -m DISCO_L4R9I -t GCC_ARM -n features-storage-tests-blockdevice-general_block_device
Could you tell me the command you executed to test many test suite in one time?
Thanks a lot!
@rogeryou thanks for the PR but it looks like you have modified the PR header template to remove some fields (or are using a very old template). Could you please update to the correct template and fill in the missing information? Thanks. |
Hi I have try this branch:
|
Hi, |
OSPI code is missing in static_pinmap.cpp/h files |
Hi, |
Hi, There is no compilation error here without OSPI code in static_pinmap.cpp/h. |
@rogeryou Hi, can you please rebase your branch to remove merge commits ? To have clean linear git history, just adding new files (or any fixes to these). |
Still compilation error with ARM. |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
I agree... I currently can't work with that branch... |
Modify the astyle Add DEVICE_OSPI in SFDP.cpp
@jeromecoutant |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
@adbridge the bot doesn't seem to realize that this PR has been closed. |
@VeijoPesonen yeah it's a known issue, it is on the list of investigations. |
Summary of changes
Add OSPI HAL driver and OSPIF block device driver for using Macronix octaflash MX25LM51245G.
ST Octo-SPI was ported on QSPI MBED API, but we can only use in SPI mode and the Octo mode is not supported. So, we add OSPI driver to enable Octo mode to improve read and write performance.
Impact of changes
Enable the octa mode of MX25LM51245G.
Migration actions required
N/A
Documentation
N/A
Pull request type
Test results
OSPI HAL test was executed.
OSPIF driver test was executed.
Reviewers