Trying to flash code in RAM of nRF52832 using Segger Embedded Studio.
Is there any SDK Example program for the same Please share the same
Trying to flash code in RAM of nRF52832 using Segger Embedded Studio.
Is there any SDK Example program for the same Please share the same
Not entirely clear what you mean by that?
You mean load code into RAM?
Yes I need to load code in RAM instead of Flash Memory.
Ok, so you want to execute code from RAM. Is it for a particular function call or all function calls in a particular source file? You will need to change the linker script for this.
Ok, so you want to execute code from RAM. Is it for a particular function call or all function calls in a particular source file? You will need to change the linker script for this.
Yes, I need to execute the whole program(all function call) from RAM. I know we need to change in linker script 'Flash_Placement.xml' & Section Placement Macro. I have tried different methods referring website still I have not got a solution.
I need (sic?) to execute the whole program(all function call) from RAM
Why?
If you explain your goal, people may be able to help you get there ...
http://www.catb.org/esr/faqs/smart-questions.html#goal
Again:
I have tried different methods
What, exactly, have you tried?
What problems, exactly, are you having?
My goal is very simple. I'm trying to flash blinky SDE example program directly to RAM. Such a way that if I power OFF & ON the board. LED should not blink.(Code will be gone off)
No, "running from RAM" is not a goal - it is a means to an end.
RAM is volatile - so, when you power-off the board, the code will be gone!
So running from RAM is not going to achieve your stated goal with the LED!
I have tried setting of ProgramSection load="No" in Flash area and making ProgramSection load="yes" in the RAM area in 'Flash_Placement.xml' and removed FLASH related Macro in Section Placement MAcro in Common (Private Configuration), but I got build error in many cases.