SDK NRF5 ARMGCC

hit there,

i am trying to work with the NRF5 SDK ARMGCC, in the IDE options a ARMGCC folder exists with an .ld file and makefile. i run the make and get the following error i inserted. this is from a clean install of the SDK  i also tried to use another version of the SDK with the exact same resaults. note that this is a clean example with no changes or additions to the code.

thanks,

Barry

C:\Users\ephra\Dropbox\PROJECTS\AQUASMART\NORDIC\workspace\workspace_nrf5\nRF5SDK160098a08e2\examples\ble_peripheral\ble_app_uart_clipon\pca10040\s132\armgcc>make
mkdir _build
cd _build && mkdir nrf52832_xxaa
Assembling file: gcc_startup_nrf52.S
Compiling file: nrf_log_backend_rtt.c
Compiling file: nrf_log_backend_serial.c
Compiling file: nrf_log_default_backends.c
Compiling file: nrf_log_frontend.c
../../../../../../components/libraries/log/src/nrf_log_frontend.c: In function 'nrf_log_module_name_get':
../../../../../../components/libraries/log/src/nrf_log_frontend.c:213: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]
  213 |         return p_module_data->p_module_name;
      |                             ^~
In file included from ../../../../../../components/libraries/util/sdk_common.h:57,
                 from ../../../../../../components/libraries/log/src/nrf_log_frontend.c:40:
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:33: note: object '__start_log_const_data' of size 4
  121 |     extern data_type * CONCAT_2(__start_, section_name);        \
      |                                 ^~~~~~~~
../../../../../../components/libraries/util/nordic_common.h:118:31: note: in definition of macro 'CONCAT_2_'
  118 | #define CONCAT_2_(p1, p2)     p1##p2
      |                               ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:24: note: in expansion of macro 'CONCAT_2'
  121 |     extern data_type * CONCAT_2(__start_, section_name);        \
      |                        ^~~~~~~~
../../../../../../components/libraries/log/nrf_log_instance.h:78:1: note: in expansion of macro 'NRF_SECTION_DEF'
   78 | NRF_SECTION_DEF(log_const_data, nrf_log_module_const_data_t);
      | ^~~~~~~~~~~~~~~
../../../../../../components/libraries/log/src/nrf_log_frontend.c: In function 'nrf_log_color_id_get':
../../../../../../components/libraries/log/src/nrf_log_frontend.c:237:33: 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]
  237 |         color_id = p_module_data->debug_color_id;
      |                                 ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:33: note: object '__start_log_const_data' of size 4
  121 |     extern data_type * CONCAT_2(__start_, section_name);        \
      |                                 ^~~~~~~~
../../../../../../components/libraries/util/nordic_common.h:118:31: note: in definition of macro 'CONCAT_2_'
  118 | #define CONCAT_2_(p1, p2)     p1##p2
      |                               ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:24: note: in expansion of macro 'CONCAT_2'
  121 |     extern data_type * CONCAT_2(__start_, section_name);        \
      |                        ^~~~~~~~
../../../../../../components/libraries/log/nrf_log_instance.h:78:1: note: in expansion of macro 'NRF_SECTION_DEF'
   78 | NRF_SECTION_DEF(log_const_data, nrf_log_module_const_data_t);
      | ^~~~~~~~~~~~~~~
../../../../../../components/libraries/log/src/nrf_log_frontend.c:234:33: 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]
  234 |         color_id = p_module_data->info_color_id;
      |                                 ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:33: note: object '__start_log_const_data' of size 4
  121 |     extern data_type * CONCAT_2(__start_, section_name);        \
      |                                 ^~~~~~~~
../../../../../../components/libraries/util/nordic_common.h:118:31: note: in definition of macro 'CONCAT_2_'
  118 | #define CONCAT_2_(p1, p2)     p1##p2
      |                               ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:24: note: in expansion of macro 'CONCAT_2'
  121 |     extern data_type * CONCAT_2(__start_, section_name);        \
      |                        ^~~~~~~~
../../../../../../components/libraries/log/nrf_log_instance.h:78:1: note: in expansion of macro 'NRF_SECTION_DEF'
   78 | NRF_SECTION_DEF(log_const_data, nrf_log_module_const_data_t);
      | ^~~~~~~~~~~~~~~
../../../../../../components/libraries/log/src/nrf_log_frontend.c: In function 'nrf_log_module_filter_get':
../../../../../../components/libraries/log/src/nrf_log_frontend.c:307:57: 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]
  307 |             severity = (nrf_log_severity_t)p_module_data->compiled_lvl;
      |                                                         ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:33: note: object '__start_log_const_data' of size 4
  121 |     extern data_type * CONCAT_2(__start_, section_name);        \
      |                                 ^~~~~~~~
../../../../../../components/libraries/util/nordic_common.h:118:31: note: in definition of macro 'CONCAT_2_'
  118 | #define CONCAT_2_(p1, p2)     p1##p2
      |                               ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:24: note: in expansion of macro 'CONCAT_2'
  121 |     extern data_type * CONCAT_2(__start_, section_name);        \
      |                        ^~~~~~~~
../../../../../../components/libraries/log/nrf_log_instance.h:78:1: note: in expansion of macro 'NRF_SECTION_DEF'
   78 | NRF_SECTION_DEF(log_const_data, nrf_log_module_const_data_t);
      | ^~~~~~~~~~~~~~~
cc1.exe: all warnings being treated as errors
make: *** [_build/nrf52832_xxaa/nrf_log_frontend.c.o] Error 1

C:\Users\ephra\Dropbox\PROJECTS\AQUASMART\NORDIC\workspace\workspace_nrf5\nRF5SDK160098a08e2\examples\ble_peripheral\ble_app_uart_clipon\pca10040\s132\armgcc>

Parents
  • Hello Barry,

    Please try with version 9 of the GCC ARM Embedded toolchain. The build errors suggest that you are using a newer version which has not been tested with nRF5 SDK v17.1.0.

    From the SDK release notes:

    The following toolchains/devices have been used for testing and verification:
     
     - ARM: MDK-ARM version 5.25   
     - GCC: GCC ARM Embedded 9.2020-q2.major
     - IAR: IAR Workbench 7.80.4
     - SES: SES 5.42a

    Best regards,

    Vidar

Reply
  • Hello Barry,

    Please try with version 9 of the GCC ARM Embedded toolchain. The build errors suggest that you are using a newer version which has not been tested with nRF5 SDK v17.1.0.

    From the SDK release notes:

    The following toolchains/devices have been used for testing and verification:
     
     - ARM: MDK-ARM version 5.25   
     - GCC: GCC ARM Embedded 9.2020-q2.major
     - IAR: IAR Workbench 7.80.4
     - SES: SES 5.42a

    Best regards,

    Vidar

Children
Related