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.
Hello,
1.
how should the bootmode pins set on the CPU if an OSPI Flash is attached which starts in default x1 mode?
2.
Is it possible to configure the OSPI interface to Quad mode (ChipSelect1) after booting up the Uboot?
Regards
Daniel
Hello Daniel,
AM64x GP EVM has Cypress S28HS512T, which is an xSPI compliant OSPI flash.
- BOOTMODE pins is configurd to boot from xSPI boot mode
- RBL starts booting r5-spl with xSPI boot mode (refer to 4.4.1.2 xSPI Boot of AM64x TRM)
- Once r5-spl starts to run, it is possible for u-boot to (re)configure xSPI/OSPI... as needed.
git.ti.com/gitweb
Best,
-Hong
Hello Hong, again, how should I set the bootmode pins for an OSPI Boot Flash which starts up default in x1 mode? I guess the bootmode pins should be set to OSPI, or? The interface should also start with x1 in OSPI mode, or?
Regards
Daniel
Hello Daniel,
Here is my BOOTMODE pins configured for xSPI boot mode for RBL booting r5-spl on TI AM64x GP EVM
SW2:1100 1110
SW3:0100 0000
=> md.l 0x43000030 1
43000030: 00000273
Best,
-Hong
Hi Hong,
if I use a OSPI boot Flash, which starts default in x1 mode after power-up, I have to use xSPI instead of OSPI? Is that correct?
Thanks
Regards
Daniel
Hello Daniel,
Let's use OSPI flash on AM64x GP EVM as an example.
It boots x1 by default.
=> md.l 0x43000030 1
43000030: 0273
BOOT_MODE_CONFIG = B[9:7]= 100
BOOT_MODE = B[6:3] = 1110
=> B[9]=SFPD=1 => SFDP enabled
=> B[8]=Read_cmd=0 => 0x0B Read Command
=> B[7]=Mode=0 => 1S-1S-1S mode @ 50MHz
=> B[6:3] = 1110 => xSPI
So I'd recommend to check the OSPI flash in your design.
Best,
-Hong
Hi Hong, the settings may ok for the used flash on the EVM. Could you please check if the "MX25UM25645G" from Macronix can be used with your settings provided?_MX25UM25645G.pdf
THX
Regards
Daniel
Hello Daniel,
MX25UM25645G (like most Macronix device) can be booted by ROM in 1S mode, or either xSPI or SPI with 1S can be configured in BOOTMODE pins. The advantage of using xSPI with 1S selected is that the bus speed is at 50MHz whereas using the SPI boot mode the bus speed is 6.125MHz. Once the R5-SPL/SBL is booted by ROM from OSPI, OSPI controller can be re-configured by the next stage SW as needed.
Best,
-Hong