This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unhelpful message: L6235E: More than one section matches selector - cannot all be FIRST/LAST.

mbed/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_MICRO/stm32l152re.sct(34):
error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.

So how about telling me which sections they are?!

I have exported an mbed project from the online compiler, and simply opened it in uVision-4 and tried to build it.
I have made no changes at all.

:-(

This is the stm32l152re.sct file - error line highlighted:

; STM32L152RE: 512KB FLASH + 80KB SRAM
LR_IROM1 0x08000000 0x80000  {    ; load region size_region

  ER_IROM1 0x08000000 0x80000  {  ; load address = execution address
   *.o (RESET, +First)
   *(InRoot$$Sections)
   .ANY (+RO)
  }

  ; 73 vectors = 292 bytes (0x124) to be reserved in RAM
  RW_IRAM1 (0x20000000+0x124) (0x14000-0x124)  {  ; RW data
   .ANY (+RW +ZI)
  }

}

Any hints on how to find the offending Sections?