This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Assembling gcc_startup_nrf52810.S to Object file

I'm trying to develop from the Linux command line, using arm gcc tools, for the nRF52 Development kit, and can't get the startup assembly file assembled to an object file:

nRF5_SDK_15.3.0_59ac345/modules/nrfx/mdk/gcc_startup_nrf52810.S

I'd thought that using a simple command like:

/usr/local/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-as    nRF5_SDK_15.3.0_59ac345/modules/nrfx/mdk/gcc_startup_nrf52810.S

would have produced the default .o output file. Instead I'm getting an error:

nRF5_SDK_15.3.0_59ac345/modules/nrfx/mdk/gcc_startup_nrf52810.S:35: Error: bad or irreducible absolute expression

The line in question:

.align __STARTUP_CONFIG_STACK_ALIGNEMENT

That alignment value is #defined so perhaps this has to be run through the C preprocessor before being assembled.

Related