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

error: L6235E when switching from -O0 to -O1, 2, or 3!

When switching from -O0 to any other option, I get the linking error .\keilproj.sct(54): error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.

the code compiles and builds perfectly when using -O0, and by switching to -O1..3 i'm hoping in freeing up some space for new features.

keilproj.sct(54):

  RW_NVRAM2 0x68001000 UNINIT 0x0003E000  { ; no init section
    *(EMV_Data, +First)                     ; this is persistant section with data to survive resets
  }