Skip to main content
RDos
Associate II
April 22, 2020
Question

Migrate STM32F765VIT6 to STM32H743VIT6 QSPI Fail

  • April 22, 2020
  • 5 replies
  • 894 views

I am migrating from STM32F765VIT6 to STM32H743VIT6

But I can't use QSPI with W25Q512, With F765 OK, but with H743 it returns unsupported device.

void MX_QUADSPI_Init (void)

{

  hqspi.Instance = QUADSPI;

  hqspi.Init.ClockPrescaler = 2;

  hqspi.Init.FifoThreshold = 4;

  hqspi.Init.SampleShifting = QSPI_SAMPLE_SHIFTING_NONE;

  hqspi.Init.FlashSize = 25;

  hqspi.Init.ChipSelectHighTime = QSPI_CS_HIGH_TIME_1_CYCLE;

  hqspi.Init.ClockMode = QSPI_CLOCK_MODE_0;

  hqspi.Init.FlashID = QSPI_FLASH_ID_1;

  hqspi.Init.DualFlash = QSPI_DUALFLASH_DISABLE;

  if (HAL_QSPI_Init (& hqspi)! = HAL_OK)

  {

    Error_Handler ();

  }

}

This topic has been closed for replies.

5 replies

ST Technical Moderator
April 24, 2020

Hello @RDos​ ,

Could you please provide more details on your case, so that it will be easier to understand this issue?

Which software and tools are you using (version) ? where the code hangs/stop and it returns "unsupported device"?

The STM32H7x3 line devices are compatible with the STM32F7 Series devices.

You can review this AN4936 Application note Migration of microcontroller applications from STM32F7 Series to STM32H7x3 line microcontrollers.

Best Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
RDos
RDosAuthor
Associate II
April 24, 2020

Using STM32CubeIDE 1.3.1, HAL V1.7.0

Using W25Q512 in QSPI mode,

The return from BSP_QSPI_Init =

QSPI_NOT_SUPPORTED;

uint8_t BSP_QSPI_Init (void)

{

QSPI_CommandTypeDef s_command;

uint8_t value = W25Q128FV_FSR_QE;

  / * QSPI memory reset * /

  if (QSPI_ResetMemory ()! = QSPI_OK)

  {

    return QSPI_NOT_SUPPORTED;

  }

/ * Enable write operations * /

if (QSPI_WriteEnable ()! = QSPI_OK)

{

return QSPI_ERROR;

}

ST Technical Moderator
April 27, 2020

we need more details on your hardware and software enviroment. Are you using ST board without update ?

May be you can share your source file, this will help to analyze your issue.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
RDos
RDosAuthor
Associate II
April 29, 2020

IOC file

ST Technical Moderator
May 11, 2020

It's possible that the problem is in the BSP file. Can you please send me the BSP file for QUADSPI that you are using ?

Are you using a customized ST board ?

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks