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).
13 lines
222 B
Plaintext
13 lines
222 B
Plaintext
/*
|
|
GNU linker script for NRF51 AA
|
|
*/
|
|
SEARCH_DIR(.)
|
|
GROUP(-lgcc -lc -lnosys)
|
|
|
|
_flash_size = 256K;
|
|
_ram_size = 16K;
|
|
|
|
/* Default stack size when there is no SoftDevice */
|
|
_stack_size = 4K;
|
|
_minimum_heap_size = 8K;
|