cancel
Showing results for 
Search instead for 
Did you mean: 

Weird issue with defining the size of external memory on STM32U5G9NJHxQ in CubeMX

G_Anastasopoulos
Associate III

Dear All,

I have created a project where I have placed the APS6408L memory on the HSPI1 peripheral of the STM32U5G9NJH6Q.

On CubeMX, I am setting this in the peripheral configuration:

G_Anastasopoulos_0-1740672383737.jpeg

And in the memory management tab I see this:

G_Anastasopoulos_1-1740672409515.jpeg

I was expecting to see 16MB there.
Using this setup my project does not work as the device hard faults when I try to access the second half of the external RAM.

Doing this in the configuration:

G_Anastasopoulos_2-1740672483664.jpeg

leads to this:

G_Anastasopoulos_3-1740672496016.jpeg

And I have tested the code allocating a buffer at the end of the external RAM, playing with it and it works, but I believe that the configuration should be the that of the first image and the result should be that of the second image.


Is this an issue of CubeMX?

Thanks in advance

1 REPLY 1
TDK
Guru

64 Mbit = 8 MB, not 16.

If you feel a post has answered your question, please click "Accept as Solution".