-
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
Fix QSPIF Bus mode mask and quad enable write SR size #10171
Conversation
some modes in quad enable
@ARMmbed/mbed-os-maintainers , @ARMmbed/mbed-os-storage , @VairaRamasamy - please review. |
@VairaRamasamy - can you please test the fix on CY8CPROTO_062_4343W |
@@ -874,6 +875,7 @@ int QSPIFBlockDevice::_sfdp_set_quad_enabled(uint8_t *basic_param_table_ptr) | |||
status_reg_setup[1] = 0x2; // Bit 1 of status Reg 2 | |||
_read_register_inst = 0x35; | |||
sr_read_size = 1; | |||
sr_write_size = 2; |
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.
seems to be misaligned (astyle should catch these)
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.
sorry fixing
@@ -1032,7 +1034,7 @@ int QSPIFBlockDevice::_sfdp_detect_best_bus_read_mode(uint8_t *basic_param_table | |||
} | |||
is_qpi_mode = false; | |||
examined_byte = basic_param_table_ptr[QSPIF_BASIC_PARAM_TABLE_FAST_READ_SUPPORT_BYTE]; | |||
if (examined_byte & 0x40) { | |||
if (examined_byte & 0x20) { |
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.
how is this mode fix related to sr_write_size - they are both in the same commit - should they be in separate commits ?
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.
Its two small changes, both are related to quad enabling process... though they in different areas. I can separate them if required.
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 be fine, what about commit message (issues have details for these fixes to be tter understand them) ?
Maybe meant "@vimalrajr"? |
When setting Quad Enable, either SR1, SR2 or CR setup is required. Either way register size is up to 2 bytes.
a88dafe
to
1a4c11e
Compare
@offirko, 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.
@VairaRamasamy - can you please test the fix on CY8CPROTO_062_4343W
@offirko I've tested this on CY8CPROTO_062_4343W and it works! Thanks for the fix.
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 would consider adding a return in the default section of the case.
Other than that, it looks good to me.
@yossi2le - thanks, I fixed default "Unsupported" behavior to do nothing but log warning and return. |
CI started |
Test run: FAILEDSummary: 2 of 9 test jobs failed Failed test jobs:
|
@offirko please take a look at the failures |
CI started |
Test run: FAILEDSummary: 1 of 13 test jobs failed Failed test jobs:
|
@NirSonnenschein - failures are on K66F that wasnt available: "[1553892247.32][CONN][ERR] Failed to connect to resource" , can you please rerun CI |
restarted CI |
Test run: FAILEDSummary: 1 of 13 test jobs failed Failed test jobs:
|
@NirSonnenschein - hmm same K66F availability issue.. |
Test run: SUCCESSSummary: 13 of 13 test jobs passed |
Few targets went offline, fixed today |
…o/offir_qspi_bus_mask_fix
Fix Bus mode mask, and fix status register write size in some quad enable modes
Fix: #10165
Fix: #10163
Pull request type