-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32H743 cannot use all the available RAM #15439
Comments
Maybe @jeromecoutant know how to deals with it and use the other RAM sections ? :) |
cc @ARMmbed/team-st-mcd |
I remember NXP K64F has 2 RAM banks as well, RAM is split into two sections (if I am not wrong, you can't write through the boundaries). See the linker script: https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/device/TOOLCHAIN_GCC_ARM/MK64FN1M0xxx12.ld - you can review data and data 2 sections. |
Thank you. I managed to use the RAM_D2 by creating a section like that in the linker script :
Then, in my code i can instantiate vairables at this area like this: static uint32_t map_counter[110][110] __attribute__((section(".map_counters"))); |
Hello, sorry, but information in your main post are wrong.
You wrote about wrong memory settings in MbedOS 6.17, but this memory setting is definitely not from Mbed OS 6.17. The memory settings from your post is from Mbed OS 6.15 or lower because it Mbed OS 6.15.1 was done a correction - #15130 BR, Jan |
Hello @JohnK1987 Indeed, to be exact we are using a custom target based on the STM32H753ZI. We are using Mbed OS 6.17.0 but the linker script of our custom targets comes from an older version of Mbed OS. I didn't see that the linker script was updated, but the issue remains : it only use the 512k bank for user RAM. |
I'm not sure if there are any other solutions besides the one I detailed previously. So, unless you have another idea, we can close the issue :) |
Not fully true => Ethernet is using SRAM3: |
Description of defect
Hello,
The STM32H743 is supposed to have 1 MB of RAM, but it is separated in different sections that does not seems to be continuous.
When compiling and running an Mbed OS application we only have access to 512k of RAM.
The sections are defined like this in the linker script:
whith:
Do you know a way to have access to other area than the RAM, like the RAM_D2 and RAM_D3 ? We need more than 512k for our project.
Maybe we can specify a RAM area when instantiating a new variable ?
Target(s) affected by this defect ?
NUCLEO_H743ZI2
Toolchain(s) (name and version) displaying this defect ?
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.17.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
1.10.5
How is this defect reproduced ?
Trying to use more than 512k of RAM on STM32h7x3 targets
Thank you !
The text was updated successfully, but these errors were encountered: