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

Compile errors in MQTT example .

Hi!
I'm testing a mqtt publish example in nRF5 SDK v15.2.0 with nRF52832 DK(pca10040).
It succeeded in connecting with raspberry's mqtt-broker with non-secure type. It works well!
But If I just add one more app-timer-handler(it's output APPL_LOG data repeatly in 1 second) causing
compiler error like this.

linking...
.\_build\nrf52832_xxaa.axf: Error: L6406E: No space in execution regions with .ANY selector matching 

system_nrf52.o(.data).
.\_build\nrf52832_xxaa.axf: Error: L6406E: No space in execution regions with .ANY selector matching 

rand.o(.data).
.\_build\nrf52832_xxaa.axf: Error: L6406E: No space in execution regions with .ANY selector matching 

nrf_drv_rng.o(.data).
.\_build\nrf52832_xxaa.axf: Error: L6406E: No space in execution regions with .ANY selector matching 

nrf_sdh.o(.data).
.\_build\nrf52832_xxaa.axf: Error: L6406E: No space in execution regions with .ANY selector matching 

pbuf.o(.data).
.\_build\nrf52832_xxaa.axf: Error: L6406E: No space in execution regions with .ANY selector matching 

iot_context_manager.o(.data).
.\_build\nrf52832_xxaa.axf: Error: L6406E: No space in execution regions with .ANY selector matching 

mem_manager.o(.data).
.\_build\nrf52832_xxaa.axf: Error: L6406E: No space in execution regions with .ANY selector matching 

nrf_log_backend_rtt.o(.data).
.\_build\nrf52832_xxaa.axf: Error: L6406E: No space in execution regions with .ANY selector matching 

nrf_sdh_ble.o(.data).
.\_build\nrf52832_xxaa.axf: Error: L6407E: Sections of aggregate size 0x24 bytes could not fit into 

.ANY selector(s).
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 2 information, 0 warning and 10 error messages.
".\_build\nrf52832_xxaa.axf" - 10 Error(s), 0 Warning(s).
Target not created.

I changed define condition in "sdk_config.h"

#define IOT_BLE_6LOWPAN_CONFIG_LOG_ENABLED 1
#define BLE_6LOWPAN_LEGACY_MODE 0
#define MQTT_CONFIG_LOG_ENABLED 1
#define NRF_LOG_BACKEND_RTT_ENABLED 1
#define NRF_LOG_BACKEND_UART_ENABLED 0

I need your help.

Parents
  • Hi,

     

    nrf_log_backend_rtt.o(.data).
    .\_build\nrf52832_xxaa.axf: Error: L6406E: No space in execution regions with .ANY selector matching 
    
    nrf_sdh_ble.o(.data).
    .\_build\nrf52832_xxaa.axf: Error: L6407E: Sections of aggregate size 0x24 bytes could not fit into 
    
    .ANY selector(s).
    Not enough information to list image symbols.
    Not enough information to list the image map.

    You do not have enough space in RAM to successfully compile your project. It's not by much, so you can try tuning your optimization settings a bit, or disable logging.

    You could also try to reduce the stack size a bit, by setting the ASM preprocessor "__STACK_SIZE=7168" (NOTE: not in the C preprocessor, but in the ASM preprocessor!)

    Kind regards,

    Håkon

Reply
  • Hi,

     

    nrf_log_backend_rtt.o(.data).
    .\_build\nrf52832_xxaa.axf: Error: L6406E: No space in execution regions with .ANY selector matching 
    
    nrf_sdh_ble.o(.data).
    .\_build\nrf52832_xxaa.axf: Error: L6407E: Sections of aggregate size 0x24 bytes could not fit into 
    
    .ANY selector(s).
    Not enough information to list image symbols.
    Not enough information to list the image map.

    You do not have enough space in RAM to successfully compile your project. It's not by much, so you can try tuning your optimization settings a bit, or disable logging.

    You could also try to reduce the stack size a bit, by setting the ASM preprocessor "__STACK_SIZE=7168" (NOTE: not in the C preprocessor, but in the ASM preprocessor!)

    Kind regards,

    Håkon

Children
No Data
Related