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.

[FAQ] PROCESSOR-SDK-AM62A: How to plot graph for OSPI Phy Tuning Algorithm?

Part Number: PROCESSOR-SDK-AM62A

Tool/software:

Explanation:

While running the OSPI Phy Tuning algorithm we tend to compute the Optimal Tuning Point(OTP).

Under the file ospi_phy.c, we come across the API: OSPI_phyTuneGrapher

The API OSPI_phyTuneGrapher scans through all possible combinations of rdDelay(o till 4), txDLL(0 till 127) and rxDLL(0 till 127).

A value of 1 is recorded if a particular combination is successful in reading the 128 bytes of pre flashed data else a value of 0 is recorded.

This value is recorded in an array named phyTuningArray(a 3D array [rdDelay][txDLL][rxDLL]).

To represent this array in a graph, we can perform the following steps:

  1. Run the following piece of attached code, which saves the graph in a binary format to a custom local directory.
  2. Once the graph is saved as "graph_data_temperature_testing.bin", run the attached python script as follows: "python graph.py graph_data_temperature_testing.py".

The graph plots can be used to see the variation across different temperatures.