mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Klotz, Oliver" <Oliver.Klotz@knorr-bremse.com>
To: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: SPI NOR w25q128 "flash operation timed out"
Date: Fri, 17 Feb 2023 08:22:25 +0000	[thread overview]
Message-ID: <VI1PR04MB5007D429B9FDF43D49A6CC99BFA19@VI1PR04MB5007.eurprd04.prod.outlook.com> (raw)

Hello,

I am using an am335x based SOM with SPI NOR flash.
Recently the SOM vendor replaced Micron n25q128a13 with Winbond w25q128.

Winbond works fine with barebox-2016.07.0, but fails with barebox-2023.01.0, barebox-2022.09.0, barebox-2021.07.0.

Although the device is properly detected as “m25p80 m25p80@00: w25q128 (16384 Kbytes)” – INFO(0xef4018).
erase and mw commands end in "flash operation timed out".

I tried w/wo CONFIG_MTD_SPI_NOR_USE_4K_SECTORS and with 24/48MHz SPI clock.

I have added some trace messages for read_sr() and run “erase /dev/m25p0.bareboxenv” (partition size = 128 Kbytes, sector size = 64 Kbytes)

read_sr() returns 0x00 0x03 0x03 0x03 0x03 0x03 0x03 and then it is stuck to 0xff and this is causing the timeout.

When running the same binary on the Micron-SOM then I get 0x00, a bunch of 0x03, 0x00, a bunch of 0x03 and finally 0x00 as expected for erasing 2 sectors.


Is anyone facing similar issue with w25q128?

Any idea what might be the problem here?


Thanks and best Regards

Oliver Klotz


Kiepe Electric GmbH
Firmensitz:  Kiepe-Platz 1, D-40599 Düsseldorf
Geschäftsführer: Alexander Ketterl
Registergericht: Düsseldorf HRB 34306
Zertifiziert: DIN EN ISO 9001:2015

This transmission is intended solely for the addressee and contains confidential information.
If you are not the intended recipient, please immediately inform the sender and delete the message and any attachments from your system.
Furthermore, please do not copy the message or disclose the contents to anyone unless agreed otherwise. To the extent permitted by law we shall in no way be liable for any damages, whatever their nature, arising out of transmission failures, viruses, external influence, delays and the like.

             reply	other threads:[~2023-02-17  8:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-17  8:22 Klotz, Oliver [this message]
2023-02-17  8:58 ` Ahmad Fatoum
2023-03-09 17:37   ` Klotz, Oliver
2023-03-09 17:52     ` Alexander Shiyan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=VI1PR04MB5007D429B9FDF43D49A6CC99BFA19@VI1PR04MB5007.eurprd04.prod.outlook.com \
    --to=oliver.klotz@knorr-bremse.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox