Keil Logo

Error L101

Summary
*** Error L101

Segment Combination Error
Section: section-name
Class: class-name
Module: filename (module-name)

Description

The attributes of the specified partial section in the specified module cannot be combined with the attributes of the previously defined partial sections with the same section and class name. The partial section is ignored.

Cause

This error typically only occurs with assembly modules. In general, you can define a section with a specific name and a specific class in one assembly module. Then you can define the same section with the same name and class in other (assembly-) modules. The linker will combine all sections with the same name to one section. The problem here is, that all sections which have the same name and class information must also have the same attributes (WORD, BYTE, BITADDRESSABLE.....). If this is not the case, the linker prints error 101 with the module name and section name.

The C compiler usually generates sections with section name derived from the module name. Therefore you won't see this problems with C modules. The only exceptions are the CLEARMEMSEC and INITMEMSEC which contain initialization information for variables. They are combined from every module so that the startup code can take all information from only two tables.

Resolution

Be sure that all of your sections have the same attributes no matter which file they are declared in.

Related Knowledgebase Articles

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.