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: L6236E: No section matches selector - no section to be FIRST/LAST

I have been facing this error: L6236E: No section matches selector - no section to be FIRST/LAST when I try to migrate the keil project from Compiler version 5 to version 6.

Details:

Controller: TLE9879QXA40

Keil SDK: 5.28a and 5.29

I have gone through all the help available and none of them has worked.

1. I have enabled "Startup" in "device" section of Manage runtime environment (Diamond box icon)

2. Tried "Use default compiler version 6", V6.12, V6.13.1

3. Assemble by using ArmClang V6 is disabled to use the legacy armasm.

4. No changes done to startup_tle987X.S as everything inside is from legacy (arm style)

From the build logs, it looks like, ArmClang is being used to assemble even when it is not selected.

Below is the build logs....

Rebuild started: Project: Pocket1
*** Using Compiler 'V6.12', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Rebuild target 'Project1'
creating preprocessor file for HCU_HumanControlUnit.c...
compiling HCU_HumanControlUnit.c...
creating preprocessor file for MAC_MachineControl.c...
creating preprocessor file for scu.c...
assembling startup_tle987x.s...
startup_tle987x.s: warning: RTE\Device\TLE9879QXA40\startup_tle987x.s: 'assembler' input unused [-Wunused-command-line-argument]
startup_tle987x.s: warning: argument unused during compilation: '-I .\RTE\Device\TLE9879QXA40' [-Wunused-command-line-argument]
startup_tle987x.s: warning: argument unused during compilation: '-I .\RTE\_Bluefire' [-Wunused-command-line-argument]
startup_tle987x.s: warning: argument unused during compilation: '-I C:\Users\hsn6kor\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\CMSIS\Core\Include' [-Wunused-command-line-argument]
startup_tle987x.s: warning: argument unused during compilation: '-I C:\Users\hsn6kor\AppData\Local\Arm\Packs\Infineon\TLE987x_DFP\1.4.0\Device\Include' [-Wunused-command-line-argument]
startup_tle987x.s: warning: argument unused during compilation: '-D __UVISION_VERSION=528' [-Wunused-command-line-argument]
startup_tle987x.s: warning: argument unused during compilation: '-D _RTE_' [-Wunused-command-line-argument]
startup_tle987x.s: warning: argument unused during compilation: '-D TLE9879QXA40' [-Wunused-command-line-argument]
RTE\Device\TLE9879QXA40\startup_tle987x.s(1): warning: A1313W: Missing END directive at end of file
compiling scu.c...
creating preprocessor file for system_tle987x.c...
RTE/Device/TLE9879QXA40/system_tle987x.c(43): warning: unknown attribute 'at' ignored [-Wunknown-attributes]
const uint32 p_NACNAD  __attribute__((at(NACStart),used)) = (uint32)NAD_NAC;
                                      ^
1 warning generated.
compiling system_tle987x.c...
creating preprocessor file for tle_device.c...
compiling tle_device.c...
creating preprocessor file for wdt1.c...
compiling wdt1.c...
linking...
.\output\Pocket\objects\Pocket.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 1 error messages.
".\output\Pocket\objects\Pocket.axf" - 1 Error(s), 15 Warning(s).
Target not created.
Build Time Elapsed:  00:01:22

Please help!