本帖最后由 airwill 于 2014-12-1 09:43 编辑
我翻了几个 SPI 芯片的手册, 也没有看到 0xDD 的写 FLASH 命令. 从你给出的数据看, 好象由 20字节写了进去.
如果命令弄错了, 应该不会写入数据, 那么会不会数据传输过快, 或者供电有问题.
另外,是不是在擦写操作要注意 READY 状态.
BUSY Status (BUSY)
BUSY is a read only bit in the status register (S0) that is set to a 1 state when the device is executing a Page Program, Quad Page Program, Sector Erase, Block Erase, Chip Erase, Write Status Register or Erase/Program Security Register instruction. During this time the device will ignore further instructions except for the Read Status Register and Erase/Program Suspend instruction (see tW, tPP, tSE, tBE, and tCE in AC Characteristics). When the program, erase or write status/security register instruction has completed, the BUSY bit will be cleared to a 0 state indicating the device is ready for further instructions.
|