Skip to main content
pipiluxixi1
Associate II
March 31, 2009
Question

Is it possible to use external SRAM as data memory without using MicroLib?

  • March 31, 2009
  • 2 replies
  • 639 views
Posted on March 31, 2009 at 06:06

Is it possible to use external SRAM as data memory without using MicroLib?

    This topic has been closed for replies.

    2 replies

    jilisegiar
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:08

    in the provided stm32f10x_vect.s comment ''Stack_Mem SPACE Stack_Size'' and add the following line:

    Stack_Mem EQU 0x20000000

    pipiluxixi1
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:08

    Hi,

    I have a problem with Keil MDK and STM32E_EVAL board. I want to use external SRAM as data memory and internal SRAM for Stack. In MDK IDE->Project->Option, I checked Off-Chip RAM1(Start:0x68000000,Size:0x100000) and uncheked On-Chip IRAM1. According to stm32f10x_vector.s, set DATA_IN_ExtSRAM EQU 1. In order to make my application to run correctly, I must check use MicroLib in Project->Option. Only by this mean, the SP can be set in internal RAM.

    But I don't want to use MicroLib.

    Is it possible to use two seperate RAM described above without using MicroLib?

    I want to let MDK Linker to locate variables automatically. That is to say, set options in IDE instead of locating variables manually.

    Must I make some changes to stm32f10x_vector.s?

    Can anyone give me some advice? Thanks a lot.