程序.bin文件的大小约160k,通过SPI Flash启动需要约8秒,这速度正常吗?
通过Nor Flash启动只需要约2秒。
处于成本考虑,希望使用SPI Flash作为启动存储器。
不知道可以方法解决启动速度的问题?
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.
程序.bin文件的大小约160k,通过SPI Flash启动需要约8秒,这速度正常吗?
通过Nor Flash启动只需要约2秒。
处于成本考虑,希望使用SPI Flash作为启动存储器。
不知道可以方法解决启动速度的问题?
请问怎么加上对SPI clock分频的配置?
我转换成.bin文件的过程是:
EVM515.cmd文件内容如下:
-boot
-v5505
-serial8
-reg_config 0x1c02,0x0000
-reg_config 0x1c03,0x0000
-reg_config 0x1c04,0x0020
-reg_config 0x1c05,0x0002
-delay 0x20
-reg_config 0x1812,0x0000
-reg_config 0x1813,0x0000
-reg_config 0x1810,0x8001
-reg_config 0x1c33,0x0000
-reg_config 0x1060,0x0000
-reg_config 0x1014,0xd42d
-reg_config 0x1015,0x0c86
-delay 0x20
-b
-o EVM_Sample2.bin
EVM_Sample.out
cmd.bat文件的内容为:
hex55 evm5515.cmd
双击cmd.bat,即可把EVM_Sample.out转换成EVM_Sample2.bin文件。
【最佳方法】
除了配置SPICDR为0x002外,还可以通过配置PLL寄存器,提高系统时钟频率来缩短加载时间。
我把EVM515.cmd文件内容改为:
-boot
-v5505
-serial8
-reg_config 0x1C1F,0x0
-reg_config 0x1C20,0x8BB4
-reg_config 0x1C21,0x8000
-reg_config 0x1C22,0x0806
-reg_config 0x1C23,0x0200
-reg_config 0x3000,0x0002
-delay 0x500
-reg_config 0x1C1F,0x1
-b
-o EVM_Sample.bin
EVM_Sample.out
加载时主频是98M左右。原来加载需要5秒左右,修改后仅需要2秒。