On 09.09.2024 10:15, Sadeep Madurange wrote:
Thank you very much for the pointer. I managed to upload the program \0/
This is my first linker script. If I have done something really stupid,
please let me know.
MEMORY
{
rom (rx) : ORIGIN = 0x00080000, LENGTH = 0x00080000
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00010000
}
This is not the right place to discuss GNU linker scripts, but
{
rom (rx) : ORIGIN = 0x00080000, LENGTH = 512K
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
}
looks more readable. You can also use arithmetic like 64K - 1K if you'll
need it.
Sergey.