Genio 510 - spi-mtk.nor.c - could not read full UID from NOR flash only 2 instead 8 bytes read

Hello,

we want to read the UID of the SPI-NOR flash like this:
CS low
0x4B opcode
0x00 0x00 0x00 0x00 4 dummy bytes
read 8 bytes unique ID
CS high

The spi-mtk-nor driver read function reads only 2 bytes instead of the 8 bytes

With the oscilloscope we see the CS signal been changed back to high too early.

The first 2 bytes in response are valid data!

Why is that and can ist be fixed or is that a hardware limit ?

Michael

Hi Michael,

Currently the spi-mtk-nor.c driver can only support custom transaction up to 7 bytes(that’s why you can only get 2 bytes of valid data).

Please issue e-service to MTK for further support on the expansion of custom transaction.

Thanks.