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

TROUBLE WITH KEIL MDK-ARM, PROBABLY WITH Build Link.

hello all: I have compile successfully my project.but have link trouble about my project codes for the nRF51822 with the Keil MDK-ARM toolchain (v4.6).

For example, for the My project, I get the following console output: compiling softdevice_handler.c... linking... ._build\BTP_app_ection.axf: Error: L6406E: No space in execution regions with .ANY selector matching libspace.o(.bss). ._build\BTP_app_ection.axf: Error: L6406E: No space in execution regions with .ANY selector matching ble_dis.o(.data). ._build\BTP_app_ection.axf: Error: L6406E: No space in execution regions with .ANY selector matching main.o(.data). ._build\BTP_app_ection.axf: Error: L6406E: No space in execution regions with .ANY selector matching ble_conn_params.o(.bss). ._build\BTP_app_ection.axf: Error: L6406E: No space in execution regions with .ANY selector matching app_button.o(.data). ._build\BTP_app_ection.axf: Error: L6406E: No space in execution regions with .ANY selector matching ble_conn_params.o(.data). ._build\BTP_app_ection.axf: Error: L6406E: No space in execution regions with .ANY selector matching softdevice_handler.o(.data). ._build\BTP_app_ection.axf: Error: L6406E: No space in execution regions with .ANY selector matching ble_debug_assert_handler.o(.data). ._build\BTP_app_ection.axf: Error: L6407E: Sections of aggregate size 0x150 bytes could not fit into .ANY selector(s). Target not created

I discover my proect code low 40K, above thing not happen. Is there any know problem with the MDK-ARM? Could this problem be related somehow to my specific Windows machine? I am running out of ideas here.

Parents
  • Dear Vladimir: Thanks very much! My computer is not use lite version of keil. my programm is 40KB. I think mem maybe out range. Our nRF 51822 shoulud be ARM Cortex-M0 low power 32-bit CPU running at 16 MHz. 256kByte on-chip Flash at 16kByte SRAM. But Version 4.6 Keil for my program show : [b]linking... Program Size: Code=10988 RO-data=252 RW-data=276 ZI-data=6756
    FromELF: creating hex file... "._build\BTP_app_ection.axf" - 0 Error(s), 3 Warning(s). Load "C:\Keil\ARM\Device\Nordic\nrf51822\Board\pca10001\ble\BTP_app_ection V1.2-1223\arm\_build\BTP_app_ection.AXF"

    • JLink Info: Device "NRF51822" selected (256 KB flash, 8 KB RAM). Set JLink Project File to "C:\Keil\ARM\Device\Nordic\nrf51822\Board\pca10001\ble\BTP_app_ection V1.2-1223\arm\JLinkSettings.ini"

    • JLink Info: Device "NRF51822" selected (256 KB flash, 8 KB RAM).[/b] [i][/i]

      How can i change to select 16KB RAM?

       Thanks !
        Merry Christmas !
      
  • From 0x2000000 to 0x20002000 is memory used by softdevice, so you can't use all 16 KB. Your application can use only 8 KB of RAM from 0x20002000. But to be sure try to update your SEGGER’s J-Link tools. Merry Christmas.

Reply Children
No Data
Related