Page 1 of 1

No documentation on spi_flash_get_id

Posted: Tue Oct 20, 2015 7:59 am
by kolban
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.

Re: No documentation on spi_flash_get_id

Posted: Mon Oct 10, 2016 10:02 pm
by eriksl
+1

Re: No documentation on spi_flash_get_id

Posted: Wed Oct 12, 2016 12:31 am
by raspberrypidmx
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