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.

6713程序在外部32位flash中运行速率太慢的问题



6713外部挂接32位宽,100ns访问速率的异步flash,程序在内部sram中调试ok后烧写到外部flash中,上电运行速度特别慢,在sram中led测试灯闪烁频率位1秒亮灭各一次,在flash中运行需要8秒亮灭1次,定时器周期中断为5ms,也就是说5ms的内容无法及时完成,需要耗时40ms才能完成。请问各位遇到过这样的问题吗?

ps:5ms内的任务为一般的读取外部空间数值,数据打包,发送(写外部存储空间),程序中所有的变量均定位在内部sram。仅代码段在外部flash中。

  • 这个正常,片外memory读写速度肯定要比片上RAM慢,所以通常我们不会把代码放在外部ROM里运行,尽量放在片内或者片外速度较快的SDRAM里运行,flash一般只做存储代码用。