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.

AM2431: OSPI interface using multiple Chip selects is not supported with Sysconfig

Part Number: AM2431
Other Parts Discussed in Thread: SYSCONFIG

We are using  OSPI interface with CS0,  and CS1. CS0 will be configured as QSPI and CS1 will be configured as OSPI .

Apparently the Sysconfig only allow us to configure  and select one Chip select for  the OSPI/ QSPI port. Is this a hardware limitation or is this a bug in Sysconfig tool?


  • Hi Iance,

    I don't think your observation is correct. I tried with ospi_flash_dma example delivered OOB with mcu_plus_sdk_am243x_08_03_00_18.

    • Modify the Chip Select as CS1 (as given below)

    Save the syscfg and rebuild the example.

    • Changes are visible in the ti_driver_config.h

    • Driver code uses the same param

    • Successful build is observed

    Can you walk me through your steps, so that I can support you better ?

    Best Regards,
    Aakash

  • Yes, you can select one chip select at a time. however, we cannot select both Chip selects simultaneously.  In other words, we have two devices which we want to be active and don't want to have two configurations.

  • Hi Iance,

    This is a very specific use case and we have our driver in place to support generic use case.

    As you do not want to duplicate the configurations, I suggest you to modify the .chipSelect in gOspiAttrs during runtime and then reinitialize the driver. But this is an unexplored territory and we have not tested our drivers in this way.

    I can further help you with this if you can you share more details on what are the different part numbers of flash that you are using, what are their sizes etc. ? Maybe we get some insight on your requirements, then we can share the feedback from this to concerned teams.

    Best Regards,
    Aakash

  • OK, So it sound like you are saying TI does not support using two devices on the OSPI. This configuration is standard for most SPI/OSPI/QSPI processor  when multiple chip selects are offered it usually implies the processor supports using all the chip selects simultnaously. It seems unusual that TI does not support this. The usage case for having multiple chip selects and only one can be supported at a time does not seem be a useful feature and is very misleading. Does it say it the datasheet that only once chip select can be used?

    Our application uses the PSRAM device  APS12808L-OBM-BA for CS1, and Winbond NOR flash W25Q32JWSSIQ on CS0

    I had a ticket in earlier which identified a similar problem with the single SPI interfaces and the TI response was similar to your response for the OSPI. In the case of OSPI apparently having a single master with multiple devices is not supported. Again this does not seem to be highlighted in the datasheet and seems to me that these should be listed in the errata.

    Please reply

  • Hi Iance,

    Thanks for your thoughts. I understand about use-case need to have multiple chip selects across the different types of flashes.

    There are two aspects here (as you also have brought in your summary)

    1. SW/driver supporting heterogeneous chips - 

    Currently, this is not supported. We will discuss this internally and come back on support plan. Mostly likely due to lack of platform to test it, we can help you get this up on your set up.

    Would this work for you? 

    2. OSPI IP Support to drive CS simultaneously

    Seems, this is limitation is our current IP.  I will discuss with IP designers and understand if anything can be done to workaround. Also check the feasibility of enabling this in our future devices.

    Please give us some time to get back on (2).

    Regards,

    Prasad