2de65dda22
With all the variation in chips and boards it's tedious to copy and redefine linker scripts for every option. Making linker scripts more modular also opens up more possibilities, like enabling/disabling the flash file system from the Makefile - or even defining it's size from a Makefile argument (FS_SIZE=12 for a 12kB filesystem if tight on space).
11 lines
207 B
Plaintext
11 lines
207 B
Plaintext
/*
|
|
GNU linker script for NRF52840
|
|
*/
|
|
|
|
_flash_size = 1M;
|
|
_ram_size = 256K;
|
|
|
|
/* produce a link error if there is not this amount of RAM for these sections */
|
|
_stack_size = 8K;
|
|
_minimum_heap_size = 128K;
|