Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

[SOLVED] Compile error with nRF5 SDK - nrf_log_frontend

Hi everyone,

I try to compile a couple of examples which include the nrf_log_frontend.c and they all fail with the same error:

Compiling file: nrf_log_frontend.c
In function 'nrf_log_module_name_get',
    inlined from 'module_name_get' at ../../../../../../components/libraries/log/src/nrf_log_frontend.c:1361:26:
../../../../../../components/libraries/log/src/nrf_log_frontend.c:219:29: error: array subscript 'nrf_log_module_const_data_t[0]' is partly outside array bounds of 'nrf_log_module_const_data_t[0]' [-Werror=array-bounds=]
  219 |         return p_module_data->p_module_name;
      |                ~~~~~~~~~~~~~^~~~~~~~~~~~~~~

The complete error log is in the attached files,
The example used in that case was /examples/peripheral/usbd_cdc_acm/pca10056/blank/armgcc
Other examples without the logger work perfectly.

Fresh download of the SDK, v17.1.0 Same issue with v16.0.0, just on a different line
The only thing changed is the path of the compiler in /sdk/components/toolchain/gcc/Makefile.posix

GNU_INSTALL_ROOT ?= /usr/local/bin/
GNU_VERSION ?= 13.2.1
GNU_PREFIX ?= arm-none-eabi

Any idea about that?

Thanks

8081.nrf5_sdk.log.zip

Parents Reply Children
No Data
Related