您好,
选择SPI boot 时,以上的配置是依据什么进行配置的,在哪个文档里有提到呢?
我做如下配置可以实现boot:
Parameter Table Index 是 0000
chip select 是 00
Addr Width 是 1
4,5pin 是 0
Mode 是 01
请问以上配置的根据在哪里有提到?
谢谢!
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.
您好,
选择SPI boot 时,以上的配置是依据什么进行配置的,在哪个文档里有提到呢?
我做如下配置可以实现boot:
Parameter Table Index 是 0000
chip select 是 00
Addr Width 是 1
4,5pin 是 0
Mode 是 01
请问以上配置的根据在哪里有提到?
谢谢!
Parameter Table Index在RBL source code中可以找到,该值决定SPI读取数据的起始地址,即SPI boot parameter table中的Read Addr MSW/LSW字段根据该值计算=Parameter table index*128B,之后SPI从该起始地址读取数据。SPI boot parameter table见bootloader user guide SPRUGY5B,以及tiboot.h中的结构体BOOT_PARAMS_SPI_T。
关于SPI boot pin3~6的使用参见gaussDsp.c中函数chipDefaultSpiReadAddr,该函数在spimain.c中由bootInitBootParamsSpi调用对read_addr_msw及read_addr_lsw初始化。
C6657 RBL:http://software-dl.ti.com/sdoemb/sdoemb_public_sw/rbl/1_0_C6657/index_FDS.html
其他pin都是用来配置SPI work mode,见SPI user guide。
SPI支持3-pin/4-pin两种operation mode,分别对应这里的4/5 pin mode,3pin mode只使用管脚SPICLK、SPISOMI、SPISIMO,4-pin mode支持同时连接多个chip,所以增加管脚/SPISCS(n). 具体参考SPI user guide section2-6,2-7.
在4-pin mode时,支持片选,所以需要配置当前连接的chip,该字段即对应chip select的配置,取值范围0~3.
Andy,你好。
根据你这样说,1、我是不是可以理解为:SPI boot parameter table中的Read Addr MSW / LSW,其实是不需要我们去配置的,不管写什么,都是无效的?
以此是不是说,所有类型boot parameter table中的参数只要在后面的Configured Through Boot Configuration pins一栏写了YES的,都可以不用管,因为RBL直接从BOOTMODE的引脚就确定了?
具体像本例中的Read Addr MSW / LSW,在datasheet上的标示是:
2、还是说,标了YES的那些参数,必须保持与BOOTMODE[0:12]引脚配置的值一致,否则,引脚配置的值会被后来的这个boot parameter table里的值覆盖掉?
谢谢!