-
Notifications
You must be signed in to change notification settings - Fork 7k
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
NXP drivers: flash: soc_flash_mcux: CMD_MARGIN_CHECK fails infrequently #83599
Comments
Hi @DerekSnell, Could you share the part / page of the LPC55S69 datasheet you mention? I'm currently using an LPC55S69 device where I see the issue described here and would love to have a better understanding of why this occurs. Thanks! |
Hi @bravl , Best regards |
Hi @DerekSnell, Thanks for your response! Just a small extra question, is there any reason for "concern" that this check fails on relatively new chips? The boards we've seen it on are only a couple of months old and the part of the flash that reports the error has only been written once. Bram |
Hi @bravl , You can sleep easy, my friend :) Best regards |
Hi @DerekSnell Awesome, thank you for the explanation! Bram |
On LPC5500 devices, using
CMD_MARGIN_CHECK
in theis_area_readable()
can return with an error code, even when the flash is readable and operating as expected. TheCMD_MARGIN_CHECK
should be removed fromis_area_readable()
in this driver.From the LPC55S69 datasheet: "As cells age and lose charge, a correctly programmed address will fail this check, while still being able to be read successfully for the remaining duration of the data retention time."
Replicating the issue can be challenging, as the
CMD_MARGIN_CHECK
returns errors on a small percentage of devices, or after a flash sector has been erased/programmed many times. But these errors have been seen on custom boards with the LPC55S69.The text was updated successfully, but these errors were encountered: