cancel
Showing results for 
Search instead for 
Did you mean: 

QSPI Issue

Faiz Ahmed
Associate II
Posted on February 12, 2018 at 13:42

Hi,

I am doing a project using STM32L432KC controller and EPCQ256 (32MegaBytes) -QSPI flash, Here I am able to Erase, Write and Read. but I am able to write only 1-4 MegaBytes and then writing is gets stopped (Here I attached a Screenshot where it is get's stopped).

I tried enabling 4ByteAddressMode using below code still it is giving same problem.... is there any Bug in my below Function,

QSPI_StatusTypeDef QSPI_ENABLE_4BYTE_MODE(void)

{

 QSPI_CommandTypeDef sCommand;

 QSPI_WriteEnable(&hqspi);

 

  sCommand.InstructionMode  = QSPI_INSTRUCTION_1_LINE;

  sCommand.Instruction       = ENTER_4_BYTE_ADDR_MODE_CMD;

  sCommand.AddressMode       = QSPI_ADDRESS_NONE;

  sCommand.AlternateByteMode = QSPI_ALTERNATE_BYTES_NONE;

  sCommand.DataMode          = QSPI_DATA_1_LINE;

  sCommand.DummyCycles       = 0;

  sCommand.DdrMode           = QSPI_DDR_MODE_DISABLE;

  sCommand.DdrHoldHalfCycle  = QSPI_DDR_HHC_ANALOG_DELAY;

  sCommand.SIOOMode          = QSPI_SIOO_INST_EVERY_CMD;

  sCommand.NbData            = 0;

  if (HAL_QSPI_Command(&hqspi, &sCommand, HAL_QPSI_TIMEOUT_DEFAULT_VALUE) != HAL_OK)

  {

    Error_Handler();

  }

}

please suggest me how to write Full-Flash-Memory

#clive-one #stm32 #qspi #qspi-flash #nesrine-m
0 REPLIES 0