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-Q1: regarding communication errors in OSPI/XIP

Part Number: AM263P4-Q1

We are using SDK9.2 and have two questions regarding communication errors in OSPI/XIP.

1) Our software utilizes OSPI to perform data write and read operations to and from external Flash memory.
To ensure data integrity, we consider it essential to verify that the data has been correctly written and accurately read.
How can we detect communication errors, such as CRC mismatch?

2)We understand that XIP is controlled by the SDK. Could you please share the best practices for detecting communication errors?

  • Hi Imaoka-San,

    I am checking this on my side. I will get back to you in 1 day.

    Regards,

    Aswin

  • Hi Imaoka-San,

    For ensuring safety during XIP, please see the Enabling safety on external flash page of the SDK.
    Page Link: AM263Px MCU+ SDK: Enabling safety on external flash

    There is provision for filling the flash data with ECC. The ECC and data fetched from the external flash is verified in the Flash Subsystem of the SoC. ECC is calculated by the HW and populated

    This would be the method to ensure correctness of data read from the flash. This is valid for block reads and XIP as well.

    Also please see the section 13.3.2.2.8 Error Correction Code (ECC) and Safety of TRM.

    Please let me know if you have anymore questions regarding the same.

    Regards,

    Aswin