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.

MCU-PLUS-SDK-AM243X: Could AM243x support W25Q64JVSSIQ for QSPI Boot mode?

Part Number: MCU-PLUS-SDK-AM243X
Other Parts Discussed in Thread: SYSCONFIG

Hi Champs,

I am asking for my customer here! Thanks~

My customer develop Ethernet and PCIE based on AM243x, and they adopt the  W25Q64JVSSIQ as Flash chip.

 W25Q64JVSSIQ: https://www.mouser.cn/ProductDetail/Winbond/W25Q64JVSSIQ?qs=qSfuJ%252Bfl%2Fd4DecxlHDmB8w%3D%3D

Need confirm with you the below question:

Q1: AM243x support Custom Flash Device, so can we support W25Q64JVSSIQ?

https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/latest/exports/docs/api_guide_am243x/CUSTOM_FLASH_SUPPORT_GUIDE.html

How to judge the 1S-4S-4S? Could you give me example show me detailed info? Thanks~

Q2: I have noticed that W25Q64JVSSIQ- only Dual/Quad SPI, but current SDK only have OSPI-SBL to boot device. Just like the below link said, we need modify the SBL with reference to the Flash driver source code for QSPI boot modes. If our device support W25Q64JVSSIQ, how to modify it? How to write the QSIP-SBL for AM243x? How to get and generate the Flash driver source code?

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1104418/am2434-qspi-spi-boot

Q3: Based on the above question, if our device support W25Q64JVSSIQ, AM263x support QSPI-SBL to boot device, so is QSPI SBL boot for AM243x and AM263x same? Is it possible to refer to AM263xQSPI startup to achieve customer needs? 

Q4: Could you explain the more detailed info between the RBL and SBL as below figure? According to different Boot modes, how does RBL jump to SBL? Thanks a lot!

  • Hi Champs,

    Any updates on here? 

  • Hi Shaoxing,

    How to judge the 1S-4S-4S? Could you give me example show me detailed info? Thanks~

    The device mentioned above and the link associated with it states that its a Quad flash and here is a snippet of the same.

    You should be using 1-1-4 mode.

    Q2: I have noticed that W25Q64JVSSIQ- only Dual/Quad SPI, but current SDK only have OSPI-SBL to boot device.

    The SDK supports all kinds of boot and SBL. It is agnostic of the interface.

    You need to choose the correct protocol here -

    Add a correct SFDP table via JSON and it will take care of it. You can get the SFDP table from the example mentioned. https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/latest/exports/docs/api_guide_am243x/EXAMPLES_DRIVERS_OSPI_FLASH_DIAG.html

    No manual modifications is required for the user apart from the once mentioned in the guide. To give a reference, SBL-OSPI is the same example which works for AM243x-EVM which has Octal Flash and AM243x-LP works with Quad Flash.

    Q3: Based on the above question, if our device support W25Q64JVSSIQ, AM263x support QSPI-SBL to boot device, so is QSPI SBL boot for AM243x and AM263x same? Is it possible to refer to AM263xQSPI startup to achieve customer needs? 

    No they are not similar. QSPI of AM263x does not work with FSS and is not a correct reference. I suggest you to go through AM243x-LP which has a Quad Flash.

    Take a note of the example name. It is SBL OSPI for AM243x-LP.

    Q4: Could you explain the more detailed info between the RBL and SBL as below figure? According to different Boot modes, how does RBL jump to SBL?

    RBL is a TI deliverable ROM code. The detail can be found in Chapter 4 Initialization in the TRM.

    The RBL to SBL jump from Public ROM to SBL code is handled via DMSC ROM.

    Hope this helps.

    Best Regards,
    Aakash

  • Hello Aakash,

    Very thanks for your reply. Since we only have the SBL OSPI example for AM243x-LP. So how to get SFDP table, and Sysconfig has no method to configure the QSPI, as you showed the below figure? Thanks a lot!

  • Hi ,

    The OSPI Flash Diagnostics run on 1s-1s-1s mode. It queries for the SFDP table. The logs on the terminal can be stored and used as JSON input.

    This is fairly easy if its the first case - software-dl.ti.com/.../CUSTOM_FLASH_SUPPORT_GUIDE.html

    Important NoteAs of now the SFDP parsing in the SDK supports upto JEDS216D standard.

    Best Regards,
    Aakash

  • Hello Aakash,

    Thank you very much for your answer!

    Quickly one question here: Can OSPI SBL be used to boot the QSPI interface of Flash? Or do we need QSPI SBL file for AM243x? Thanks~

     

  • Hi ,

    Can OSPI SBL be used to boot the QSPI interface of Flash? Or do we need QSPI SBL file for AM243x? Thanks

    Same example will work. You need not change the example or do not need another example.

    Best Regards,
    Aakash

  • Aakash,

           For OSPI/QSPI boot mode,  as RBL ROM code need load SBL code from flash, does the ROM code use SFDP to get the flash parameter then read SBL code successfully to internal memory? Since the SPI Flash interface is initialized by ROM code, then SBL code could continuous load App code without OSPI/QSPI initialization, is my understanding correct?  If customer use QSPI/OSPI boot, then the flash type must support SFDP? 

           Thanks a lot for your support! 

                                Jane Lu 

  • Hi Jane,

    SPI Flash is initialized by ROM by reading the SFDP table only incase of xSPI Boot Mode. Refer xSPI Boot in TRM.

    But ROM initializations of flash are for low frequency of <= 50MHz. SBL re-initializes the flash for highest frequency to achieve better boot performance given that the RBL is only responsible for booting the SBL but SBL will be responsible of booting Application Image with size much higher than the size of application.

    Flash must support SFDP for xSPI boot mode but if it does not then they need to change the boot mode to OSPI/QSPI/SPI boot mode where the read commands of the flash must be the same as the one mentioned in the TRM.

    I suggest you to go through TRM chapter for better understanding.

    Hope this helps.

    Best Regards,
    Aakash