Tool/software:
Requirement:
I want to freely select the command phase, address phase, alternate phase, dummy instruction phase, and data phase in the OSPI protocol. Is this idea feasible on the AM64x?
Tool/software:
Requirement:
I want to freely select the command phase, address phase, alternate phase, dummy instruction phase, and data phase in the OSPI protocol. Is this idea feasible on the AM64x?
Ryan,
if you want full control over the OSPI protocol the User's Guide discusses a "Legacy Mode" that can be used. However as far as I know there is no example software we can readily provide on this front, so depending on the environment you are using (Linux? Bare-metal/RTOS?) this will require work to get it implemented.
I'm curious, what's behind your request? What are you trying to interface with? The OSPI peripheral module should support most commonly used Flash chips right out of the box without having to use "legacy mode".
Regards, Andreas
Hi Ryan,
I have another question, is Legacy Mode not equal to Standard SPI, right?
No, during earlier internal discussions I was told the module cannot be used like a standard SPI. I wanted to see if we can extend the driver stack to be able to offer an additional standard SPI module to customers that need it, which was why I was checking this before. But this is not possible.
My scenario involves communication between OSPI and FPGA.
If you are in control of the FPGA, perhaps you can "emulate" a standard NOR SPI Flash with your FPGA? This would then allow you do do high speed transfers and use all the advanced features the OSPI peripheral offers (like memory-mapping the emulated NOR SPI contents for direct access, etc.) This would allow much faster and lower-overhead operation than legacy mode.
Regards, Andreas