Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. i've been doing a deep dive into SPI NOR flash command set and it is horrifying.

i've been doing a deep dive into SPI NOR flash command set and it is horrifying.

Scheduled Pinned Locked Moved Uncategorized
15 Posts 7 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • whitequark@social.treehouse.systemsW This user is from outside of this forum
    whitequark@social.treehouse.systemsW This user is from outside of this forum
    whitequark@social.treehouse.systems
    wrote last edited by
    #1

    i've been doing a deep dive into SPI NOR flash command set and it is horrifying. i don't know how anything works. none of these devices agree with each other on anything, even devices from the same family of the same vendor with the "same" part number (but suffix J instead of suffix V or whatever)

    whitequark@social.treehouse.systemsW r@glauca.spaceR jripley@mastodon.socialJ mhkohne@mastodon.socialM 4 Replies Last reply
    0
    • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

      i've been doing a deep dive into SPI NOR flash command set and it is horrifying. i don't know how anything works. none of these devices agree with each other on anything, even devices from the same family of the same vendor with the "same" part number (but suffix J instead of suffix V or whatever)

      whitequark@social.treehouse.systemsW This user is from outside of this forum
      whitequark@social.treehouse.systemsW This user is from outside of this forum
      whitequark@social.treehouse.systems
      wrote last edited by
      #2

      there is a standard, JESD216B (unless they released JESD216C already) and it does a surprisingly good job at reining in the crackheadedness of it all, but you do end up with 60 pages of... this

      whitequark@social.treehouse.systemsW dlharmon@chaos.socialD 2 Replies Last reply
      0
      • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

        there is a standard, JESD216B (unless they released JESD216C already) and it does a surprisingly good job at reining in the crackheadedness of it all, but you do end up with 60 pages of... this

        whitequark@social.treehouse.systemsW This user is from outside of this forum
        whitequark@social.treehouse.systemsW This user is from outside of this forum
        whitequark@social.treehouse.systems
        wrote last edited by
        #3

        note how there are two commands to read status registers 1 & 2, but only one command to write them both. why? well

        most devices do have a command to write status register 2 exclusively. but some devices reset status register 2 if you write status register 1, and some of them do not

        (since then they've added a status register 3)

        doomsey@hachyderm.ioD whitequark@social.treehouse.systemsW 2 Replies Last reply
        0
        • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

          i've been doing a deep dive into SPI NOR flash command set and it is horrifying. i don't know how anything works. none of these devices agree with each other on anything, even devices from the same family of the same vendor with the "same" part number (but suffix J instead of suffix V or whatever)

          r@glauca.spaceR This user is from outside of this forum
          r@glauca.spaceR This user is from outside of this forum
          r@glauca.space
          wrote last edited by
          #4

          @whitequark inb4 you discover the oldschool _parallel_ NOR commands?

          1 Reply Last reply
          0
          • whitequark@social.treehouse.systemsW This user is from outside of this forum
            whitequark@social.treehouse.systemsW This user is from outside of this forum
            whitequark@social.treehouse.systems
            wrote last edited by
            #5

            @r those did not have 50 different ways to clock bits over four pins and also built-in ECC and so on

            1 Reply Last reply
            0
            • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

              i've been doing a deep dive into SPI NOR flash command set and it is horrifying. i don't know how anything works. none of these devices agree with each other on anything, even devices from the same family of the same vendor with the "same" part number (but suffix J instead of suffix V or whatever)

              jripley@mastodon.socialJ This user is from outside of this forum
              jripley@mastodon.socialJ This user is from outside of this forum
              jripley@mastodon.social
              wrote last edited by
              #6

              @whitequark They’re all a total nightmare, and it’s hard to find a subset to even bootstrap things enough to read the first 512 bytes, where vendors tend to stash a list of NOR quirks. The worst are devices where you can flash their config page to never be compatible with the standard set, persistently.

              whitequark@social.treehouse.systemsW 1 Reply Last reply
              0
              • jripley@mastodon.socialJ jripley@mastodon.social

                @whitequark They’re all a total nightmare, and it’s hard to find a subset to even bootstrap things enough to read the first 512 bytes, where vendors tend to stash a list of NOR quirks. The worst are devices where you can flash their config page to never be compatible with the standard set, persistently.

                whitequark@social.treehouse.systemsW This user is from outside of this forum
                whitequark@social.treehouse.systemsW This user is from outside of this forum
                whitequark@social.treehouse.systems
                wrote last edited by
                #7

                @jripley hm, sorry I meant SPI ones, those do at least have the SFDP

                1 Reply Last reply
                0
                • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

                  note how there are two commands to read status registers 1 & 2, but only one command to write them both. why? well

                  most devices do have a command to write status register 2 exclusively. but some devices reset status register 2 if you write status register 1, and some of them do not

                  (since then they've added a status register 3)

                  doomsey@hachyderm.ioD This user is from outside of this forum
                  doomsey@hachyderm.ioD This user is from outside of this forum
                  doomsey@hachyderm.io
                  wrote last edited by
                  #8

                  @whitequark I keep not understanding why silicon houses have write-only registers with no shadow and no capability of idempotent operations.

                  whitequark@social.treehouse.systemsW 1 Reply Last reply
                  0
                  • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

                    note how there are two commands to read status registers 1 & 2, but only one command to write them both. why? well

                    most devices do have a command to write status register 2 exclusively. but some devices reset status register 2 if you write status register 1, and some of them do not

                    (since then they've added a status register 3)

                    whitequark@social.treehouse.systemsW This user is from outside of this forum
                    whitequark@social.treehouse.systemsW This user is from outside of this forum
                    whitequark@social.treehouse.systems
                    wrote last edited by
                    #9

                    behold: crackhead technology

                    data storage devices terrify me. the only way to store anything is to keep like five different copies of it on mediums made by different vendors. and even then i don't trust it

                    Link Preview Image
                    rafi0t@social.yoyodyne-it.euR 1 Reply Last reply
                    1
                    0
                    • doomsey@hachyderm.ioD doomsey@hachyderm.io

                      @whitequark I keep not understanding why silicon houses have write-only registers with no shadow and no capability of idempotent operations.

                      whitequark@social.treehouse.systemsW This user is from outside of this forum
                      whitequark@social.treehouse.systemsW This user is from outside of this forum
                      whitequark@social.treehouse.systems
                      wrote last edited by
                      #10

                      @doomsey these are not write-only, the instruction set is just designed by a crackhead

                      doomsey@hachyderm.ioD 1 Reply Last reply
                      0
                      • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

                        behold: crackhead technology

                        data storage devices terrify me. the only way to store anything is to keep like five different copies of it on mediums made by different vendors. and even then i don't trust it

                        Link Preview Image
                        rafi0t@social.yoyodyne-it.euR This user is from outside of this forum
                        rafi0t@social.yoyodyne-it.euR This user is from outside of this forum
                        rafi0t@social.yoyodyne-it.eu
                        wrote last edited by
                        #11

                        @whitequark as a person mostly dealing with web based crackheadedness, and an absolute fear of anything hardware related, these threads where I understand absolutely nothing are fascinating and terrifying.

                        1 Reply Last reply
                        0
                        • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

                          i've been doing a deep dive into SPI NOR flash command set and it is horrifying. i don't know how anything works. none of these devices agree with each other on anything, even devices from the same family of the same vendor with the "same" part number (but suffix J instead of suffix V or whatever)

                          mhkohne@mastodon.socialM This user is from outside of this forum
                          mhkohne@mastodon.socialM This user is from outside of this forum
                          mhkohne@mastodon.social
                          wrote last edited by
                          #12

                          @whitequark We're fortunate at the office that no one expects us to swap from one to another without software changes, so we can get away with writing to the chosen device.

                          1 Reply Last reply
                          0
                          • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

                            there is a standard, JESD216B (unless they released JESD216C already) and it does a surprisingly good job at reining in the crackheadedness of it all, but you do end up with 60 pages of... this

                            dlharmon@chaos.socialD This user is from outside of this forum
                            dlharmon@chaos.socialD This user is from outside of this forum
                            dlharmon@chaos.social
                            wrote last edited by
                            #13

                            @whitequark Somehow, they are up to JESD216H. It doesn't get any better.

                            Would have been nice if there had been a standard for the SPI flash itself rather than just the SFDP data.

                            dlharmon@chaos.socialD 1 Reply Last reply
                            0
                            • whitequark@social.treehouse.systemsW whitequark@social.treehouse.systems

                              @doomsey these are not write-only, the instruction set is just designed by a crackhead

                              doomsey@hachyderm.ioD This user is from outside of this forum
                              doomsey@hachyderm.ioD This user is from outside of this forum
                              doomsey@hachyderm.io
                              wrote last edited by
                              #14

                              @whitequark fortunately we have an incompetent offshore team so I don't have to look at that particular brokenness until it's too late

                              1 Reply Last reply
                              0
                              • dlharmon@chaos.socialD dlharmon@chaos.social

                                @whitequark Somehow, they are up to JESD216H. It doesn't get any better.

                                Would have been nice if there had been a standard for the SPI flash itself rather than just the SFDP data.

                                dlharmon@chaos.socialD This user is from outside of this forum
                                dlharmon@chaos.socialD This user is from outside of this forum
                                dlharmon@chaos.social
                                wrote last edited by
                                #15

                                @whitequark JSED216H is 191 pages. Almost like the manufacturers do as they please designing the commands for these things, not communicating with one another, JEDEC just adds it all to JESD216.

                                JESD216H (August 2025), JESD216G (November 2024), JESD216F.02 (June 2022), JESD216F.01 (February 2022), JESD216F (December 2021), JESD216E (August 2021), JESD216D (August 2019), JESD216C (August 2018), JESD216B (May 2014), JESD216A (July 2013), and JESD216 (April 2011).

                                1 Reply Last reply
                                0
                                • R relay@relay.infosec.exchange shared this topic
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups