You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending commands to the QSPI hal, QSPIFBlockDevice treats mode (alt) cycles as though they were dummy cycles. This causes problems on the PSOC6 targets where the data pins are tri-stated during the dummy cycles. This means that if the last value sent prior to the dummy cycles happens to also be a valid mode value for the memory in use, the memory part can wind up in an unexpected state.
For example, in QSPIFBlockDevice::_sfdp_detect_best_bus_read_mode:
QSPIFBlockDevice should retain the mode cycle and dummy cycles as separate values and pass them separately to the QSPI hal driver (which already supports mode/alt bits as a separate entity).
The problem was reproduced using features-storage-tests-kvstore-static_tests built with GCC_ARM for CY8CPROTO_062_4343W, while attempting to test the addition of QSPI support for PSOC6 targets.
I will submit a pull request shortly with a proposed fix.
Issue request type
[ ] Question
[ ] Enhancement
[x] Bug
The text was updated successfully, but these errors were encountered:
Description
When sending commands to the QSPI hal, QSPIFBlockDevice treats mode (alt) cycles as though they were dummy cycles. This causes problems on the PSOC6 targets where the data pins are tri-stated during the dummy cycles. This means that if the last value sent prior to the dummy cycles happens to also be a valid mode value for the memory in use, the memory part can wind up in an unexpected state.
For example, in QSPIFBlockDevice::_sfdp_detect_best_bus_read_mode:
QSPIFBlockDevice should retain the mode cycle and dummy cycles as separate values and pass them separately to the QSPI hal driver (which already supports mode/alt bits as a separate entity).
The problem was reproduced using features-storage-tests-kvstore-static_tests built with GCC_ARM for CY8CPROTO_062_4343W, while attempting to test the addition of QSPI support for PSOC6 targets.
I will submit a pull request shortly with a proposed fix.
Issue request type
The text was updated successfully, but these errors were encountered: