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?

Parents
  • Hi,

    What example from nRF5 SDK v15.0.0 are you trying?

    Can you make sure it is a fresh unchanged copy of the SDK? (Download again if necessary.)

    I have never seen that it has been necessary to do anything like what you did with the linker and scatter file changes that you did, so the problem is most likely somewhere else.

    Please note that you should not select the SoftDevice build in Keil and try to build that, as the SoftDevice is precompiled and should only be downloaded (not built). You can select it and then load it onto the device, but you will get errors if you try to compile it.

    Regards,
    Terje

  • Hello tesc,

    I now just tried the basic blinky example.

    The error error:  #20: identifier "BSP_INIT_LEDS" is undefined is solved(just to define it in code or /cc++ in target). But now again the first error is coming

    ..\..\..\..\..\..\components\softdevice\s132\hex\s132_nrf52_6.0.0_softdevice.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.

    This time I have not changed any setting in linker or anywhere.

    See attached photos for reference, if useful.(also attached a photo where error is showing)

Reply
  • Hello tesc,

    I now just tried the basic blinky example.

    The error error:  #20: identifier "BSP_INIT_LEDS" is undefined is solved(just to define it in code or /cc++ in target). But now again the first error is coming

    ..\..\..\..\..\..\components\softdevice\s132\hex\s132_nrf52_6.0.0_softdevice.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.

    This time I have not changed any setting in linker or anywhere.

    See attached photos for reference, if useful.(also attached a photo where error is showing)

Children
No Data
Related