cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5 and Hyper ram

dchen
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Aime
ST Employee

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

View solution in original post

1 REPLY 1
Aime
ST Employee

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