w25qxx
w25qxx copied to clipboard
关于初始化验证设备ID的问题
Version
No response
Describe the bug
初始化时验证了设备ID是否等于0xEF17,高8位为厂商ID会有所不同
Reproduce
No response
Expected behavior
No response
Additional context
No response
Hello, thank you for using our driver. W25QXX series drivers will verify the chip ID when initializing. The first is to verify whether the SPI/QSPI communication is normal, and the second is to verify whether the chip model is correct to ensure the safety of subsequent operations. This ID is related to the manufacturer and chip capacity, and can be increased by w25qxx_type_t, which is usually found in the datasheet of the chip.
您好,感谢您使用我们的驱动。W25QXX系列驱动在初始化时会验证芯片ID,这么做第一是验证SPI/QSPI通信是否正常,第二是验证芯片型号是否正确,保证后面部分操作的安全。该ID与制造厂家以及芯片容量有关,可以根据需要增加w25qxx_type_t的枚举类型,此类ID一般会在芯片的datasheet中找到。