Keil™, An ARM® Company

Technical Support

A166: ERROR A44 (NO CURRENTLY ACTIVE SECTION)


Information in this article applies to:

  • C166 Version 4.22

QUESTION

I have a project that uses the Generate and Assemble SRC file feature. When it assembles the SRC file generated from my .C source, it generates the following error:

error A44: No currently Active Section

I'm using the REG164.H in my .C source file and when I double click in the error message it goes to the following line of code in the SRC file:

BCMP BIT CC6MCON.15

What is wrong with the SRC file generation?

ANSWER

This error is being generated because there's a invalid sbit declaration in the REG164.H file. The following declaration is wrong:

sbit BCMP = CC6MCON^15;

BCMP is the mnemonic for the bit compare instruction and it can't be used in an sbit definition. To correct this problem, you must change the bit name to something that's not a reserved word, for example:

sbit _BCMP = CC6MCON^15;
// BCMP is not allowed since it is also a mnemonic

REG164.INC has the correct declaration for ASM file:

_BCMP BIT CC6MCON.15
// BCMP is not allowed since it is also a mnemonic

RESOLUTION

Change the BCMP sbit declaration in REG164.H, REG164CI.H, and REG164CM.H from:

sbit BCMP = CC6MCON^15;

to:

sbit _BCMP = CC6MCON^15;
// BCMP is not allowed since it is also a mnemonic

STATUS

These include files will be corrected in the next C166 release.

MORE INFORMATION

Last Reviewed: Monday, September 26, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure