cancel
Showing results for 
Search instead for 
Did you mean: 

Image Quality Problem at AT25SF128A External Flash

NDura.16
Associate II

Hi,

I use flash memory ( at25sf128) in my project and I can read data from flash correctly, I checked it . Also I checked the configuration of quad in out fast read command. However, The images do not have correct view on LCD. Have you ever had this problem before?

my code of memorymap mode is here ;

 QSPI_CommandTypeDef   s_command;

 QSPI_MemoryMappedTypeDef s_mem_mapped_cfg;

 /* Configure the command for the read instruction */

 s_command.InstructionMode  = QSPI_INSTRUCTION_1_LINE;

 s_command.Instruction    = QUAD_INOUT_FAST_READ_CMD;

 s_command.AddressMode    = QSPI_ADDRESS_4_LINES;

 s_command.AddressSize    = QSPI_ADDRESS_24_BITS;

 s_command.AlternateByteMode = QSPI_ALTERNATE_BYTES_4_LINES;

 s_command.DataMode     = QSPI_DATA_4_LINES;

 s_command.DummyCycles    = 6;//N25Q128A_DUMMY_CYCLES_READ_QUAD;

 s_command.DdrMode      = QSPI_DDR_MODE_DISABLE;

 s_command.DdrHoldHalfCycle = QSPI_DDR_HHC_ANALOG_DELAY;

 s_command.SIOOMode     = QSPI_SIOO_INST_EVERY_CMD;

 s_command.AlternateBytesSize = QSPI_ALTERNATE_BYTES_8_BITS;

 s_command.AlternateBytes = 0x00; //0x20 M5=1,M4=0 

 /* Configure the memory mapped mode */

 s_mem_mapped_cfg.TimeOutActivation = QSPI_TIMEOUT_COUNTER_DISABLE;

 s_mem_mapped_cfg.TimeOutPeriod   = 0;

  

 if (HAL_QSPI_MemoryMapped(&QSPIHandle, &s_command, &s_mem_mapped_cfg) != HAL_OK)

 {

  return QSPI_ERROR;

 }

My problem is;

0693W00000GWSA7QAP.jpgControl of the memory with stlink;

0693W00000GWtG7QAL.jpg 

Thank you

Best regards

0 REPLIES 0