Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

assert() stopped working. Generates 'undefined symbol' error

Hi,

I'm basing my project on ble_hrs_freertos example project (nRF52832, SDK14.2, PCA10040)

When calling assert(condition) in the original example project, it works as expected.

When calling assert(condition) in my project I get "Error: L6218E: Undefined symbol __aeabi_assert (referred from main.o)." linker error message.

(The reason for using assert() rather than app_error_handler()-like functions, is that substantial part of the code should run on other platforms. These platforms support assert() but not the nordic-specific forms)

I've changed none of my project's linker settings (to the best of my knowledge) and when including <assert.h> I see extern reference to __aeabi_assert (see screen cap).

Where else can I look?

Any advice will be highly appreciated.

Thanks

Parents Reply Children
No Data
Related