Wind River Support Network

HomeDefectsLIN1019-5426
Fixed

LIN1019-5426 : spi-nor driver not working properly with Cypress flash s25fl064l - marvell-cn96xx

Created: Sep 17, 2020    Updated: Oct 21, 2020
Resolved Date: Oct 13, 2020
Found In Version: 10.19.45.11
Fix Version: 10.19.45.12
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: BSP

Description

There was an issue with Cypress flash s25fl064l. With current driver implementation, the flash gets stuck and no further read operations succeed. This happens on board marvell-cn96xx

Cypress and Macronix devices (We have mx25l25635e on cn96xx) don't have the same behavior when write/erase command is done on protected area.

From s25fl064l datasheet (attached):
Known Differences from Prior Generations
1.1.2.1 Error Reporting
FL-K, FL1-K and FL-P memories either do not have error status bits or do not set them if program or erase is attempted on a protected sector. This product family does have error reporting status bits for program and erase operations. These can be set when there is an internal failure to program or erase, or when there is an attempt to program or erase a protected sector. In these cases the program or erase operation did not complete as requested by the command. The P_ERR or E_ERR bits and the WIP bit will beset to and remain 1 in SR1V. The clear status register command must be sent to clear the errors and return the device to STANDBY state.

With Macronix part, WIP bit is reset even if the write/command is not really done on protected area.

So SPI NOR driver needs to be updated in order to declare Cypress part with the right property
Live chat
Online