In the Keil, how to Set initial stack pointer (MSP) by changing linker script? Relevant example would help.
In the Keil startup file there is option to set stack and heap sizes, but no option to set my own address for initial stack pointer in the Keil startup file.
You have to edit the linker script and position STACK section to your desired address.
In the Options for Target / Linker uncheck Use Memory Layout from Target Dialog and click on Scatter File Edit button, and edit the linker script as you see fit.