|
发表于 2020-10-30 14:17:42
只看该作者
8#
驱动W25Q64 flash,手册里erase write enable 等CMD都需要在CMD发送后将CS脚拉高,在DTS里设置spi-cs-high,
在dmesg里看到如下错误:
[ 0.972435] spi spi32766.0: setup: unsupported mode bits 4
[ 0.972451] rockchip-spi ff1d0000.spi: can't setup spi32766.0, status -22
[ 0.972461] spi_master spi32766: spi_device register error /spi@ff1d0000/w25q64@00
[ 0.972473] spi_master spi32766: Failed to create SPI device for /spi@ff1d0000/w25q64@00
有大佬帮忙解答吗,
如何才能正确的erase write enable,
确认引脚没复用,write protect 脚拉高了,
能读到flash的全FF数据。 |
|