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

Error: CFI instruction used without previous .cfi_startproc

Hi

I get the following compiler (assembler) error in my project:

...
Compiling file: hardfault_handler_gcc.c
/tmp/ccstUNqW.s: Assembler messages:
/tmp/ccstUNqW.s:46: Error: CFI instruction used without previous .cfi_startproc
/tmp/ccstUNqW.s:47: Error: CFI instruction used without previous .cfi_startproc
Makefile.common:273: recipe for target '_build/nrf52810_xxaa/hardfault_handler_gcc.c.o' failed
make: *** [_build/nrf52810_xxaa/hardfault_handler_gcc.c.o] Error 1

The error seems to be related to the debugging information compiler flag (-g). The error only occurs when the flag "-g0" (or no g-flag) is set.

If a debug information flag "-g1" or greater is set no error occurs.

Does anybody know how to solve this problem?

Currently I try to migrate a project from nRF52832 to nRF52810.This error does not occur in the "old" nRF52832-Project.

Here are some more information about the "new" nRF52810-Project:

nRF52810, SDK14.2, S112 (5.1.0), arm-gcc toolchain (V5.4.1)

Parents Reply Children
Related