Skip to main content
N ORhan
Associate III
July 26, 2018
Question

Linker Script for external SDRAM

  • July 26, 2018
  • 3 replies
  • 782 views

Hello everyone. Can anynone please explain the steps to configure linker script to use external SDRAM? I'm using Atollic True Studio as IDE and STM32F746GDISCO as evaluation board.

Thank you.

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    July 26, 2018

    Take a look at this example, likely others in the repository

    STM32Cube_FW_F7_V1.12.0\Projects\STM32746G-Discovery\Examples\FMC\FMC_SDRAM_DataMemory\SW4STM32\STM32746G_DISCOVERY\STM32F746NGHx_FLASH.ld

    The linker script just describes memory regions, code in your startup file would need to bring the memory up, and copy over the statics, etc.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    N ORhan
    N ORhanAuthor
    Associate III
    July 26, 2018

    Thanks for your reply but what should i do step by step to have external SDRAM work properly. For example, Atollic TrueStudio can not read the values of variables stored in the address higher than 0xC0000000 which i defined as SDRAM region in the linker script.

    It says "Failed to execute MI command:

    -data-evaluate-expression RGB565_480x272

    Error message from debugger back end:

    Cannot access memory at address 0xc0000000".

    What configurations should i do to make my defined address range in linker script accessible?

    N ORhan
    N ORhanAuthor
    Associate III
    July 26, 2018

    I'm not using any HAL driver or library so i want to understand the whole concept to make my project work properly.

    Thanks again Clive for your reply.