In arm_startup_nrf52.s (in the 8.9.0 device family pack), there is a new bit of code:
IF :DEF: __STARTUP_CONFIG
#include "startup_config.h"
ENDIF
I assume this code allows one to manually specify things like Stack_Size and Heap_Size. Is there a template of this file provided anywhere or is it just something that we write ourselves?
Also (and this is the reason I noticed this change), why does using --cpreproc in the Asm options result in the compiler looking for startup_config.h? As far as I can see, using the C preprocessor should not define STARTUP_CONFIG anywhere. Am I wrong? What is going on here?
What problems might I encounter if I remove the --cpreproc from my project?