ARM Technical Support Knowledge Articles

ERROR A44 (NO CURRENTLY ACTIVE SECTION)

Applies to: A166 Macro Assembler

Answer


Information in this article applies to:


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

ATTACHED FILES

Request the files attached to this knowledgebase article.

Article last edited on: 2005-09-26 11:04:24

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential