TI中文支持网
TI专业的中文技术问题搜集分享网站

急求啊~~各位大神帮帮忙啊~C6748 SPI FLASH问题!!!!

我现在的问题

我程序内有60组比较大的数组初值,想烧写的时候烧写进FLASH,为串行的外部FLASH。能不能指定扇区存储我的这些初值数据?

因为在程序运行的时候,得到新的数据需要更新其中某个数组,以防下次重新上电的时候是最新的初值。

还有就是想问下串行 SPIflash会不会与DSP内存的地址有对应的一个地址映射关系?

noaming:

 SPIflash没有和DSP内存的地址一一对应。通过DSP的spi接口,可以对spi flash进行寻址,读写等。你可以看一下你的spi flash手册,如何操作的。

qiqi michal:

回复 noaming:

TItan  谢谢你的回答,那我想问下SPI自启动,FLASH会全部自动加载到内存当中去的吗?加载到内存的地址是多少?需不需要说编写二级bootloader引导程序?烧写到FLASH的时候能不能将代码段和数据段放到指定的扇区段。。。

noaming:

回复 qiqi michal:

你好,SPI boot可以使用AIS脚本来做的。初始流程如下:

9.4 SPI Boot Modes• All SPI boot modes use the chip select 0 signal. The appropriate pin (SPI0_SCS[0] or SPI1_SCS[0])must be connected to the external SPI device.• The SPI EEPROM device must use 16-bit addressing, and its read command must equal 0x03. Thebootloader will look for an AIS image at offset 0x00000000.• The SPI flash device must use 24-bit addressing, and its read command must equal 0x03. Thebootloader will look for an AIS image at offset 0x00000000.• In the SPI-boot modes, the received data is sampled at the rising edge of the clock and the data to betransmitted on the falling edge of the clock as shown 

加载的内存地址,以及加载多少到内存,都是有AIS脚本来控制。

请参看这里:

http://www.ti.com/lit/an/spraat2f/spraat2f.pdf

qiqi michal:

回复 noaming:

我能对这些命令自定义吗?

noaming:

回复 qiqi michal:

你好,这些脚本命令是有格式的,请根君上面的文档说明,并按步骤操作软件来使用。

赞(0)
未经允许不得转载:TI中文支持网 » 急求啊~~各位大神帮帮忙啊~C6748 SPI FLASH问题!!!!
分享到: 更多 (0)