AnsweredAssumed Answered

Run code from RAM

Question asked by alem_ on May 26, 2017
Latest reply on Jun 8, 2017 by Erwan Y

Hello I'm working with SPC56EL60L3, and SPC5STUDIO v5.0.

I need to have a section of code running from RAM, a function more specifically.

How do I do this in SPC5Studio? I guess I need to add a directive like:


__attribute__ ((section (".ram_code")))


before the function declaration, where ram_code is the defined in the linker script.

Could you, please, provide an example?

Thank you.