我用evm6678开发板验证spiflash启动过程,按以下步骤作的:
1.打开spi_boot_suit\2_ledtestprj\LedTest\6678下的8个测试工程,成功编译并生成8个.out文件,
生成.out 文件命名为simple0.out 、simple1.out、 simple2.out 、simple3.out ……
2. 将8个.out文件拷贝到spi_boot_suit\1_utilities\multicore_boot_8cores路径下,双击spiboot_multi_8cores.bat批处理文件,开始生成文件,得到spirom_le.dat
3. 将evm板调成no-boot 模式,拨码开关对应 SW3~SW6 1000 0000 0000 1100 (0 对应on 1对应off)
4. 打开MCSDK自带的nor-writer工程,将工程bin文件夹下的nor_writer_input.txt 打开,修改"app.bin"为"spirom_le.dat" 并将spirom_le.dat拷贝到mcsdk_xxxx\tools\writer\nor\evmc6678l\bin路径下
5. 链接工程,等PC指针停在main函数入口,打开view--memory browser,输入0x80000000,load memory 选择spirom_le.dat,(自动)勾上Use the header...
再次确认start address 为0x80000000,length为spirom_le.dat的长度(单位是word) 开始往DDR里灌数。
6. 烧写工程run,console输出 ,烧写成功。
NOR programming completed successfully
7.断电,将evm修改拨码开关为spi-boot模式,SW3~SW6:1011 0000 0010 1000 (0 对应on 1对应off)
8.上电重启,发现所有led灯一直亮没有闪烁,打开spi_boot_suit\2_ledtestprj\LedTest\6678下的8个测试工程连接开发板连接不上,显示:error initializing emulator:(error -2083 @0x0)……
烧写成功了但是没有boot起来,而且这种模式下无法连接仿真器,无法观察指针的状态。还请大神来指点一下