9 years, 7 months ago.

Link fails with "More than one section matches selector....". LPC1768 platform.

I have uploaded an old project developed by a colleague which fails at the link stage of compiling. The error message is "Error: "/extras/mbed_63bcd7ba4912/LPC1768/LPC1768.sct", line 4 (column 9): Error: L6235E: More than one section matches selector - cannot all be FIRST/LAST." The Error Number is 0 and clicking the help button next to the '0' gives the following extra information -- in file "/"

Look for multiple mbed.bld files in your program. -- There was 1 mbed.bld file in the upload but it does not appear in the Program Workspace panel of the online compiler. Any help on getting the link stage to complete would be appreciated,

Regards, John

Screen shot of project in online compiler window. (I'm using Firefox 44.02 on a Win XP box) /media/uploads/johnpote/screen_shot_02-17-16_at_08.47_pm.jpg

Can you post a screenshot of the expanded program tree in the compiler. (So the different folders/libraries).

posted by Erik - 17 Feb 2016

1 Answer

9 years, 7 months ago.

You have two mbed libs. You have the mbed folder (at the bottom), and between FATFileSystem and MODSERIAL there is another mbed lib (I assume), It shows as folder, but you can simply convert a library to a folder. So either you need to delete that one or the bottom one (depending on which one is supposed to be there).

Accepted Answer

Thanks for the advice. Deleted the mbed folder on the basis that the mbed library lower down would be more up to date. Link stage now completes and program runs as expected. Many thanks. Interestingly I also tried a right click on the lower library icon and then the delete which opened a dialogue to delete a .bld file. It would be helpful if the contents of this lower mbed library were made visible. As shown in the screen shot above it looks completely empty and nothing to do with a .bld file.

posted by John Pote 18 Feb 2016