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

error: L6236E: No section matches selector - no section to be FIRST/LAST.

Hello,

I am working with nRF52832 and using Keil uVISION 5.

While building the exapmple from nRF SDK v15, I am getting this error :

error: L6236E: No section matches selector - no section to be FIRST/LAST.

I also tried the following suggested on ARM forum, but the error remains same.

  • I opened the project in keil.
  • In target->linker, I unchecked Use memory layout from target dialogue.
  • Entered 0x00026000 in R/O base and 0x200018A8 in R/W base address from .sct file in \..\components\softdevice\s132\hex\s132_nrf52_6.0.0_softdevice.sct

******File content********

; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************

LR_IROM1 0x00026000 0x0005A000  {    ; load region size_region
  ER_IROM1 0x00026000 0x0005A000  {  ; load address = execution address
   *.o (RESET, +First)
   *(InRoot$$Sections)
   .ANY (+RO)
  }
  RW_IRAM1 0x200018A8 0x0000E758  {  ; RW data
   .ANY (+RW +ZI)
  }
}

Any help?

  • Hi,

    Thank you for the clarification. It sounded a bit strange to build the blinky example without using LEDs, as the purpose of that example is to turn a LED on and off.

    Keep in mind that for any GPIO usage you must make some assumptions about what is connected to the SoC. You may of course make it configurable, which, in some sense, the board files essentially are a solution for. You may of course do this differently if configuration through header files is not a solution for your needs.

    Regards,
    Terje

  • I just want to compile any example project. Whether it is blinky or Beacon or any. I don't have any board right now. I downloaded the sdk again and tried to compile without changing anything.

    but I am still facing this error : error: L6236E: No section matches selector - no section to be FIRST/LAST.

    If you could help futher.

    Anyways, Thanks for your support.

  • Hi,

    I think I finally figured out what may be the issue. In Keil, next to the LOAD button in the toolbar, there is a drop down menu where you can select either "nrf52832_xxaa" or "flash_s132_nrf52_6.0.0_softdevice".

    The first one, "nrf52832_xxaa" (or correspondingly for other SoCs depending on which project), is for building and programming the application.

    The second one, "flash_s132_nrf52_6.0.0_softdevice" (or correspondingly for other SoCs), will generate the error messages that you see if you try to build it. It is only intended for loading the SoftDevice onto the SoC.

    So, in order to build the project correctly you must select the first item, which selects the application.

    If the SoftDevice hex file has been corrupted by attempting to build a new one, you can find the SoftDevice for download on our web pages. nRF52832 SoftDevices are downloadable from the downloads page for the nRF52 DK.

    Regards,
    Terje

  • It worked!!!

    I do get what you want you by selecting proper target but I am not able to link the error sentence with it. Can you help me to understand it, If possible.

    Otherwise It's okay, At least I can go further with my project.

    Thanks, Terje!!

Related