Skip to main content
Associate II
June 23, 2023
Question

Is it possible to launch from RAM using cube IDE?

Hi, I do not have enough flash memory on my dev board  (STM32F7508-DK) to launch my program. How can I run it from RAM? Is it possible to toggle CubeIDE for that somewhere?

    This topic has been closed for replies.

    3 replies

    Pavel A.
    June 24, 2023

    This board has 16 MBytes of external QSPI flash and 8 Mbytes of external DRAM.

    Please refer to the board and CubeIDE documentation on using these memories. There are also examples and tutorials.

    Associate II
    June 27, 2023

    @Pavel A. Thank you for your answer. I tried to do that .. 
    Here's the documentation which I'm using (Place code in RAM section)
    https://www.st.com/resource/en/user_manual/um2609-stm32cubeide-user-guide-stmicroelectronics.pdf

    Here's my edited files (according to doc)

    flash.ld file
    https://github.com/tempdeltavalue/temp_STM_32_ram/blob/main/STM32F746NGHX_FLASH.ld

    startup file 
    https://github.com/tempdeltavalue/temp_STM_32_ram/blob/main/Core/Startup/startup_stm32f746nghx.s

    main file:
    https://github.com/tempdeltavalue/temp_STM_32_ram/blob/main/Core/main.cpp

    but I still see flash memory error...

    Pavel A.
    June 28, 2023

    Find  a ready file (produced by CubeMX/IDE) named STM32F746NGHX_RAM.ld 

    Do not edit anything else yet.