No documentation on spi_flash_get_id

User avatar
kolban
Posts: 131
Joined: Tue Jun 16, 2015 1:09 pm
Location: Fort Worth, Texas, USA

No documentation on spi_flash_get_id

Postby kolban » Tue Oct 20, 2015 7:59 am

The SDK 1.4 documentation provides a description of an API called "spi_flash_get_id" but does not describe what it returns. I believe that there is "bit encoding" of information but do not know what it should be. This report requests documentation of the meaning of the return values in the SDK documentation.

eriksl
Posts: 159
Joined: Fri May 22, 2015 6:22 pm

Re: No documentation on spi_flash_get_id

Postby eriksl » Mon Oct 10, 2016 10:02 pm

+1

User avatar
raspberrypidmx
Posts: 15
Joined: Wed Apr 27, 2016 6:15 am
Contact:

Re: No documentation on spi_flash_get_id

Postby raspberrypidmx » Wed Oct 12, 2016 12:31 am

The flash ID is a 24 bit number.

First 8-bits are representing the manufacturer -> https://github.com/jhcloos/flashrom/blo ... ashchips.h
The second 8-bits gives the type.
And the third 8-bits gives the capacity -> 2^capacity Mbits

Who is online

Users browsing this forum: No registered users and 4 guests