Dear ADI Engineering Zone Team,
I hope this message finds you well. We are currently working with the SC594 SOM and facing an issue while trying to access the IS25LX256 flash on a FreeRTOS environment using the OSPI driver. By default the flash is in STR mode and we are able to successfully configure it to DTR mode . Specifically, we are encountering difficulties when attempting to read the flash ID information in DTR mode.
Below is stig structure we are using to access the flash in DTR mode:
STIG_Command.CmdOpcode = CMD_JEDEC_READ;
STIG_Command.CmdOpcode2 = 0x00;
STIG_Command.eBusMode = ADI_OSPI_STIG_OPI;
STIG_Command.eTransferMode = ADI_OSPI_TRANSFERMODE_DTR;
STIG_Command.NumOfDummyCycles = 8;
STIG_Command.ModeDataEnable = 0;
STIG_Command.ModeData = 0;
STIG_Command.eDataMode = ADI_OSPI_STIG_READDATA_EN;
STIG_Command.DataSize = 6;
STIG_Command.AddressEnable = 1;
STIG_Command.AddrSize = ADI_OSPI_CMD_ADDR_SIZE_4;
STIG_Command.Address = 0;
STIG_Command.pBuffer = deviceIDData;
status = adi_ospi_StigCommand(*phDevice, &STIG_Command);
We are experiencing a runtime error when attempting to read the flash IDs in DTR mode. Attached is a screenshot of the error message for your reference.
Could you please provide guidance on how to properly perform read and write operations on the flash when it is configured in DTR mode? If there is any additional information you require from our end to assist with troubleshooting, please let us know.
Thank you for your attention to this matter, and we look forward to your guidance.
Focusing on the DTR issue.
[edited by: sohm at 12:58 PM (GMT -4) on 6 May 2024]