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.

DRA829V: How to implement XIP with customer application?

Part Number: DRA829V
Other Parts Discussed in Thread: UNIFLASH

Hi, experts,

My customers needs to make their own application XIP with Cypress OSPI. 

They have successfully ran the XIP demo on J7 EVM, and want to achieve XIP on customer board with Cypress OSPI. They want to know when and how to configure Cypress OSPI to make it work in XIP mode.

It would be appreciated if more introduction about boot flow in XIP mode provided, along with corresponding programming guide.

Thanks.  

  • Hi Felix,

    I am working on creating an XIP training video, I understand that there might not be much collateral around that.

    You can directly access the training when it is out, it is planned for June. In the meantime I can support you on this thread.

    For the controller side, you need not worry much as the CUST SBL in the SDK will take care of that. What we need to do is make out application in such a way that it can be executed in place from the flash. For that you need to first get the application working in the normal store and download mode i.e. with MMCSD SBL etc. So once you have a working application I can help you with what needs to happen in terms of memory map, cache settings etc needed to run in XIP.

    Do you have a working reference example and can we start modifying it?

    Also, is you application RTOS based or baremetal?

    Regards,

    Karan

  • Hi, Karan,

    The training video would be wonderful!

    Is there any modification needed in CUST SBL if using other OSPI Flash instead of Micron on EVM?

    Thanks.

  • Hi Felix,

    As far as CUST SBL is concerned, there should not be any modifications needed I believe. There could be some changes needed to uniflash or the OSPI driver. Just to be sure on what needs to be done I would want you to bring up an existing SDK dome which runs in XIP on the customer board. This will clear a lot of things.

    Once we have that then we can start modifying that application to achieve the customer's use-case.

    Regards,

    Karan

  • Hi Felix,

    Cypress uses a different set of opcodes than Micron.. So its not possible to use Micron driver with Cypress flash as is at least in 8D-8D-8D mode. So driver for sure will need an update.

    Regards,

    Karan

  • Hi, Karan,

    Yes, customer engineers have modified the driver to access Cypress Flash, and these modifications should be done on SBL to enable octal access on loading sysfw and following code fetch. They want some guidance to learn how XIP mode is configured in the demo, and then they can implement it on their own board.

    Thanks.

  • Hi Fan,

    We are still working on some kind of public documentation for the same (along with the training I mentioned).

    Meanwhile I will forward you one internal confluence link with some details.

    Regards,

    Karan