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.

AM263P4: Using multiple devices via OSPI select chips

Part Number: AM263P4
Other Parts Discussed in Thread: TMS570LC4357

Hi, I'm exploring which MCU to use for our next project.

Currently I'm looking at AM263P4 and have question about usage of OSPI. We were planning to connect PSRAM and flash to OSPI using different chip select. But studying it revealed that it might not be possible to do like this?

When I was using EMIF of TMS570LC4357, I was able to connect SDRAM as synchronous device and vfpga as async2. Accessing different address spaces starting from 0x6000 0000 and 0x8000 0000 automatically handled chip selects.

I read AM263P4 memory map and it seems OSPI address space is not separated by chip select and all 3 segments direct access to same physical device, chip select chosen by register. So unless I manually switch which device to access, I can't use both device to use. Is this correct?

  • Hi,

    Thank you for your question regarding OSPI usage on the AM263P4.

    You are correct in your understanding. The AM263P4 has a single OSPI controller, and unlike the EMIF on the TMS570LC4357 where different address ranges automatically handle chip selects for different devices, the OSPI implementation works differently:

    AM263P4 OSPI Limitations:

    • The OSPI memory-mapped regions share the same address space
    • Chip select switching is controlled via register configuration, not by address decoding
    • You cannot access both PSRAM and Flash simultaneously through memory-mapped regions
    • To switch between devices, you need to reconfigure the chip select in the OSPI controller registers

    Possible workaround is to implement software-based device switching (though this adds overhead and complexity).

    I would recommend evaluating the AM261x family, which features:
    • Two independent OSPI controllers
    • Each controller has its own dedicated address space
    • Allows concurrent access to both PSRAM and Flash without manual switching
    • More similar to your previous EMIF experience with automatic chip select handling

    Would you like more details about the AM261x specifications, or do you need help exploring the workaround options for AM263P4?

    Best regards,

    Mayank Shadwani