This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

tm4c1294 ssi接口问题



我现在想用ssi0做SPI通信,接的是传统的双线SPI FLASH,但是现在只能读到FLASH ID 读不到FLASH的数据。用的TI的自带的SPI FLASH 驱动?

  • 只能读到FLASH ID 读不到FLASH的数据,这就说明你读的时序是正确的,估计是指令什么的写错了。你的代码太长了,没法一一看的。只能自己慢慢调了,记着抓波形就好了。波形要和数据手册中的一样的。

  • 你好,

    建议你附上你抓的波形。

    注意SPI flash是上升沿采样还是下降沿采样,把MCU的采样时序设置正确。

    除了读,你可以操作一下写flash,clk不要太高,1-2M即可。