Skip to main content
Ark1
Associate III
August 31, 2018
Question

Accessing the onboard SDRAM in stm32f429 will end in issue here. I don't get the exact address of the SDRAM addressing methodology. so help me folks.

  • August 31, 2018
  • 9 replies
  • 1333 views

..

    This topic has been closed for replies.

    9 replies

    T J
    Senior III
    August 31, 2018

    did you try 42 ?

    there is no question here

    the address of the SDRAM blocks is:

    0xC0000000 for SDRAM1 and 0xD000000 for SDRAM2

    Did you make a board ? or you are using a board some of us have ?

    Ark1
    Ark1Author
    Associate III
    September 1, 2018

    i am using your board for storing the data that sent via USB to SDRAM for that i need to program the address . i know that address manually but in program??

    i don't know the methodology to save the data in that address. so i need assistance ?

    T J
    Senior III
    September 1, 2018

       uint32_t *pSdramAddress = (uint32_t *)(SDRAM_DEVICE_ADDR);

           *pSdramAddress++ = 0x76543210;

    Ark1
    Ark1Author
    Associate III
    September 1, 2018

    Thanks for your support. i already post another question regarding USB OTG kindly help me for that problem also??

    T J
    Senior III
    September 1, 2018

    I am new at this too,

    I haven't done OTG yet :(

    Ark1
    Ark1Author
    Associate III
    September 1, 2018

    ok , thanks for your support

    Tesla DeLorean
    Guru
    September 1, 2018

    >>i am using your board for storing the data...

    Understand that the bulk of people here don't work for ST, and don't know specifically what board you have, you need to be specific as we aren't working with you.

    Assuming probably a STM32F429I-DISCO or DISC1 board.

    Here, where configured, the SDRAM address is 0xD0000000. This could be accessed via a pointer, or described in the Linker Script or Scatter File. Directing the Heap there, and malloc()ing it might be a more comfortable/familiar method.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Ark1
    Ark1Author
    Associate III
    September 3, 2018

    hi clive , i am usind f429 discovery board only. could give me some sample code for SDRAM?

    Tesla DeLorean
    Guru
    September 3, 2018

    STM32Cube_FW_F4_V1.21.0\Drivers\BSP\STM32F429I-Discovery\stm32f429i_discovery_sdram.c

    STM32Cube_FW_F4_V1.21.0\Projects\STM32F429I-Discovery\Applications\FatFs\FatFs_RAMDisk

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..