Debug in RAM
To debug in RAM, there are several steps to follow:
1. Modifying the ld script.
2. Assigning PC to the specific RAM address.
3. Assigning SP to the specific RAM address.
4. Downloading the binary file to RAM.
The ld script is responsible for telling the linker the layout of the compiled executable. For example, the
memory layout looks like: