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.

F280XX I2C 应用程序问题



使用F28069 通过I2C 外接24LC1025T E2PROM,用硬件I2C采用查询方式读写E2PROM.现在的问题是,全部程序在RAM中运行时,读写正确,将程序写入到

FLASH,无论是在flash中运行,或将查询读写函数搬移到RAM运行,读写都不正确。示波器看了一下,发现SCL都不正确,请问一下,可能是什么原因造成的?

谢谢!

  • 确定flash有正确初始化,或者查询函数确实搬运到了RAM中运行?这两个功能的实现都与memory copy有关。

    另一个思路是可以确认分配给I2C的GPIO端口是否成功,I2C相关寄存器里的值在实际运行后,是否跟你的配置完全一样?