cancel
Showing results for 
Search instead for 
Did you mean: 

QUADSPI_BK1_IO3 issue in STM32G474 and STM32H753

junggun
Associate

Hello.

I am testing QSPI indirect mode using STM32G474 and STM32H753.

However, I found a weird operation of QUADSPI_BK1_IO3 pin.

Other pins are OK, but QUADSPI_BK1_IO3 is high states as in the redboxes.

It should be low states (0).

I have tested in STM32G474 and STM32H753.

Both are the same.

Plz let me know how to solve this issue.

 

JG

 

junggun_1-1720156873124.png

 

junggun_2-1720157273932.png

 

 

while (1) {
  sCommand.InstructionMode = QSPI_INSTRUCTION_1_LINE;
  sCommand.AddressMode = QSPI_ADDRESS_4_LINES;
  sCommand.AddressSize = QSPI_ADDRESS_24_BITS;
  sCommand.Address = 0x008000;
  sCommand.AlternateByteMode = QSPI_ALTERNATE_BYTES_NONE;
  sCommand.DataMode = QSPI_DATA_4_LINES;
  sCommand.DummyCycles = 2;
  sCommand.DdrMode = QSPI_DDR_MODE_DISABLE;
  sCommand.SIOOMode = QSPI_SIOO_INST_EVERY_CMD;
  sCommand.NbData = 4;
  sCommand.NbData = 2;
  sCommand.Instruction = 0x81;  //AF
  sCommand.Address = 0x008000;
  if (HAL_QSPI_Command(&hqspi, &sCommand, 1000) != HAL_OK) {
    Error_Handler();
  }

  uint8_t test[2];
uint8_t test22];
test[0] = 0x12;
test[1] = 0x48;

if (HAL_QSPI_Transmit(&hqspi, &test, 1000) != HAL_OK) {
  Error_Handler();
}
if (HAL_QSPI_Command(&hqspi, &sCommand, 1000) != HAL_OK) {
  Error_Handler();
}

sCommand.InstructionMode = QSPI_INSTRUCTION_1_LINE;

sCommand.AddressMode = QSPI_ADDRESS_4_LINES;
sCommand.AddressSize = QSPI_ADDRESS_24_BITS;
sCommand.AlternateByteMode = QSPI_ALTERNATE_BYTES_NONE;
sCommand.DataMode = QSPI_DATA_4_LINES;
sCommand.DummyCycles = 2;
sCommand.DdrMode = QSPI_DDR_MODE_DISABLE;
sCommand.SIOOMode = QSPI_SIOO_INST_EVERY_CMD;
sCommand.NbData = 2;
sCommand.Instruction = 0xaa;
sCommand.Address = 0x008000;

if (HAL_QSPI_Command(&hqspi, &sCommand, 1000) != HAL_OK) {
  Error_Handler();
}

if (HAL_QSPI_Receive(&hqspi, &test2, 1000) != HAL_OK) {
  Error_Handler();
}
}
0 REPLIES 0