cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP157D-DK1 missing RAM

MHerz.1
Associate II

Hello, I'm currently working with a STM32MP157D-DK1 Development Board with 4GB DDR3L. I populated the board with a prebuild openstlinux 6.1 build like discribed in a guide in the ST wiki.

When checking the total memory i unfortunatly only get 407MB that are used.

 

root@stm32mp1:~# free --mega
               total        used        free      shared  buff/cache   available
Mem:             407         138         152          13         140         269
Swap:              0           0           0

 

 Is there a way to use the complete 4GB of RAM?

 

Kind regards,

Markus

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

HI @MHerz.1 , 407MBytes sound normal. The memory is 4Gbits which is 512MBytes and some part are probably reserved for OpTee, DMA buffers and exchange buffers with Cortex-M4.

Regards

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
PatrickF
ST Employee

HI @MHerz.1 , 407MBytes sound normal. The memory is 4Gbits which is 512MBytes and some part are probably reserved for OpTee, DMA buffers and exchange buffers with Cortex-M4.

Regards

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
PatrickF
ST Employee

Few more details in dmesg

root@stm32mp1:~# dmesg | grep Memory:
[    0.000000] Memory: 325492K/524288K available (12288K kernel code, 1371K rwdata, 3636K rodata, 1024K init, 235K bss, 133260K reserved, 65536K cma-reserved, 0K highmem)

Maybe look into this page (not fully related, but some interesting information about DDR mapping)
https://wiki.st.com/stm32mpu/wiki/How_to_configure_a_256MB_DDR_mapping_from_STM32_MPU_Distribution_Package#Introduction

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.