cancel
Showing results for 
Search instead for 
Did you mean: 

About setting QSPI from ioc

Son, Dong-Seong
Associate III

Hi I am testing a STM32H745I-DISCO

I am setting QSPI from ioc file by referring to the example code provided by ST

Below is the example qspi configuration code

  QSPIHandle.Instance = QUADSPI;

  /* QSPI initialization */

  /* ClockPrescaler set to 1, so QSPI clock = 200MHz / (1+1) = 100MHz */

  QSPIHandle.Init.ClockPrescaler   = 1;

  QSPIHandle.Init.FifoThreshold   = 1;

  QSPIHandle.Init.SampleShifting   = QSPI_SAMPLE_SHIFTING_HALFCYCLE;

  QSPIHandle.Init.FlashSize     = QSPI_FLASH_SIZE;

  QSPIHandle.Init.ChipSelectHighTime = QSPI_CS_HIGH_TIME_3_CYCLE;

  QSPIHandle.Init.ClockMode     = QSPI_CLOCK_MODE_0;

  QSPIHandle.Init.FlashID      = QSPI_FLASH_ID_2;

  QSPIHandle.Init.DualFlash     = QSPI_DUALFLASH_ENABLE;

  sCommand.InstructionMode  = QSPI_INSTRUCTION_1_LINE;

  sCommand.AddressSize    = QSPI_ADDRESS_32_BITS;

  sCommand.AlternateByteMode = QSPI_ALTERNATE_BYTES_NONE;

  sCommand.DdrMode      = QSPI_DDR_MODE_DISABLE;

  sCommand.DdrHoldHalfCycle = QSPI_DDR_HHC_ANALOG_DELAY;

  sCommand.SIOOMode     = QSPI_SIOO_INST_EVERY_CMD;

Below is a picture of how I set the parameter values ​​in the ioc file

0693W00000YAh2kQAD.pngParameter values ​​that configure QSPIHandle exist in the ioc file. However, the parameter values ​​that set sCommand are not visible in the ioc file.

How should I set the parameter values ​​of sCommand in the ioc file?

0 REPLIES 0