2007-11-28 04:47 AM
2007-11-27 06:27 AM
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 advance2007-11-27 07:21 AM
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 sjo2007-11-27 09:03 PM
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...
2007-11-27 09:23 PM
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 sjo2007-11-28 04:47 AM
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