Skip to main content
dchen
Associate III
May 8, 2023
Solved

STM32U5 and Hyper ram

  • May 8, 2023
  • 1 reply
  • 1396 views

Hi,

After I configure hospi1->Init.MemoryType = HAL_OSPI_MEMTYPE_HYPERBUS;

If I still want to send a command using CA[47:0] (or DQ[7:0]) and read back data such as device ID, how should I approach this? Is there an example code I can refer to?

I am wondering if the command type (sCommand) needs to be OSPI_HyperbusCmdTypeDef? the max address is 32 bit but I need to send 48 bit.

or should I use OSPI_RegularCmdTypeDef? Then set MemoryType to HAL_OSPI_MEMTYPE_HYPERBUS later after I read all the data I want?

Thanks in advance.

This topic has been closed for replies.
Best answer by Aime

Hi @Community member​ ,

I think the easiest way for you to start is by using one of the example provided par CubeMX.

You can download them on CubeMX :

  • Select "Start My project from a Example"
  • Enter "OSPI_HyperRAM"
  • Then select the project according to your MCU (STM32U5) in your case  .


_legacyfs_online_stmicro_images_0693W00000bjl8KQAQ.png 

Best Regards,

A.MVE

1 reply

AimeBest answer
ST Employee
May 10, 2023

Hi @Community member​ ,

I think the easiest way for you to start is by using one of the example provided par CubeMX.

You can download them on CubeMX :

  • Select "Start My project from a Example"
  • Enter "OSPI_HyperRAM"
  • Then select the project according to your MCU (STM32U5) in your case  .


_legacyfs_online_stmicro_images_0693W00000bjl8KQAQ.png 

Best Regards,

A.MVE