Skip to main content
Visitor II
November 28, 2007
Question

move code in ram

  • November 28, 2007
  • 5 replies
  • 1074 views
Posted on November 28, 2007 at 13:47

move code in ram

    This topic has been closed for replies.

    5 replies

    Visitor II
    November 27, 2007
    Posted on November 27, 2007 at 15:27

    Hi,

    I know that this question was already asked and aswered in this forum but I can't find information that help me.

    I want to move all my flash related code to ram so I can program/erase the bank0 (B0F7 to be exact).

    I found this post :

    http://www.st.com/mcu/forums-cat-4655-17.html

    and I tried this solution, but RVDK tell me :

    Quote:

    ''..\source\conf.c'', line 222: Error: #77-D: this declaration has no storage class or type specifier

    __ramfunc void init_flash_write_tables(void)

    ... and this is obscur to me.

    If someone can give me some info about that or point me where I can find them.

    Thanks in advance

    Visitor II
    November 27, 2007
    Posted on November 27, 2007 at 16:21

    The code you are referring to was designed for IAR, you are using Keil.

    Keil provide an example with their tools

    http://www.keil.com/support/docs/3228.htm

    Have a look at the RAM_Function example.

    Cheers

    sjo

    Visitor II
    November 28, 2007
    Posted on November 28, 2007 at 06:03

    Thanks for the reply, but sadly I am not using Keil but Realview. So what I look for is the equivalent procedure to put code in ram with realview...

    Visitor II
    November 28, 2007
    Posted on November 28, 2007 at 06:23

    Keil and Realview are the same compiler/linker.

    You just need to use a scatter file and place the required file into the ram section.

    http://forums.arm.com/lofiversion/index.php/t9262.html

    It is also mentioned somewhere in the realview docs aswell.

    Also try a google search, may find more examples.

    Regards

    sjo

    Visitor II
    November 28, 2007
    Posted on November 28, 2007 at 13:47

    Thanks a lot Sjo, it work now.

    It's simpler than I thinked, with all theses __ramfunc things that I saw when I was googling this problem