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.

非程序烧录的flash擦写问题!?请各位前辈指点



我使用的是2808芯片,CSM对FLASH保护我已关闭;我先想对指定的flash内写入指定的几个数值(CMD文件中该flash分配在page1数据段),但始终写入失败,请问各位前辈,除了关闭CSM保护还有其他步骤要做吗?

  • 1、flash擦写操作需要专门的API函数

    2、flash必须是先擦再写

    3、flash擦写的代码需要在ram里面执行,然后还必须关掉中断。

    具体建议你仔细看一下flash API相关的文档,到TI网站上找。很多开发者都自己写bootloader通过各种接口比如sci,can等进行软件在线更新,

    你这个flash读写是最基本的操作,看懂了自然就没有疑问了。

  • 请参考这边帖子:http://www.deyisupport.com/question_answer/microcontrollers/c2000/f/56/t/19788.aspx