-
Notifications
You must be signed in to change notification settings - Fork 3k
Feature qspi kinetis #8485
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
Feature qspi kinetis #8485
Conversation
This should support QSPI on Kinetis devices Signed-off-by: Mahesh Mahadevan <[email protected]>
This needs a device specific file Signed-off-by: Mahesh Mahadevan <[email protected]>
Signed-off-by: Mahesh Mahadevan <[email protected]>
Add 16-bit access mode when writing the transfer size to prevent the QSPI transaction from starting Signed-off-by: Mahesh Mahadevan <[email protected]>
Add the QSPI pin defines, clock information and flash details Signed-off-by: Mahesh Mahadevan <[email protected]>
Add the QSPI pin defines, clock information and flash details Signed-off-by: Mahesh Mahadevan <[email protected]>
1. Add flash config files. 2. Flash used is MX25U3235F, include information for this device in the flash config file Signed-off-by: Mahesh Mahadevan <[email protected]>
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.
A single implementation question. Looks wonderful!
#define QSPI_ERASE_BLOCK_32_MAX_TIME 1150000 // 1s | ||
#define QSPI_ERASE_BLOCK_64_MAX_TIME 2300000 // 2s | ||
|
||
#define EXTENDED_SPI_ENABLE() \ |
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 is this in a preprocessor macro instead of being an inlined static 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.
This is how the tests are written
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 is this in a preprocessor macro instead of being an inlined static 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.
@cmonr @mmahadevan108 @0xc0170
There was two reasons why preprocessor macro was used:
- it can be easily redefined in target flash config to cover some target specifics
TESTS/mbed_hal/qspi/flash_configs/STM/DISCO_L475VG_IOT01A/flash_config.h
- it prevents cyclic dependency between flash config
TESTS/mbed_hal/qspi/flash_configs/MX25RXX35F_config.h
and test utilsTESTS\mbed_hal\qspi\qspi_test_utils.h
@@ -12,10 +15,11 @@ | |||
* list of conditions and the following disclaimer in the documentation and/or | |||
* other materials provided with the distribution. | |||
* | |||
* o Neither the name of Freescale Semiconductor, Inc. nor the names of its | |||
* o Neither the name of the copyright holder nor the names of its |
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.
👍
@@ -1,9 +1,12 @@ | |||
/* | |||
* The Clear BSD License |
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.
👍
/morph build |
Build : SUCCESSBuild number : 3421 Triggering tests/morph test |
Exporter Build : FAILUREBuild number : 3045 |
exporter build failed because if IAR license issues: retrying: |
Exporter Build : SUCCESSBuild number : 3048 |
Anyone from @ARMmbed/mbed-os-hal available to review? |
Tests are all green, can you share the logs here (from your email I understood the config for this flash still needed to be 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.
Waiting for the QSPI tests results
@0xc0170 Below are the QSPI test results for K82F and KL82Z. The email regarding the flash config is for a third target (LPC564XX) that I working on, I will submit that a separate PR once the flash config file is ready. |
QSPI test results provided. Please rereview.
Bringing this in. |
Description
Pull request type