Marc Paquette

CodeWarrior 8- & 16-bit tools: Problem with the ST7 ASM directives

Discussion created by Marc Paquette Employee on Jan 27, 2006

To help you find solutions to problems that have already been solved, we have posted this message. It contains an entire topic ported from a separate forum. The original message and all replies are in this single message.


Posted: Jul 16, 2004 - 06:39 AM   


I am programming a ST72324 and I use Metrowerks CodeWarrior to code my application. But there is a problem with some ASM directives like the directive BYTES or EQU .

The assembler makes errors :

A16201 : Not a mnemonic or directive

Is this error normal ? Is there any solution to avoid these errors ?



  Posted: Jul 16, 2004 - 08:49 AM   


Did you activate compatibility with ST assembler syntax.

Make sure you are assembling with option -ST (STMicroelectronics Assembler Compatibility Mode).

You can adjust assembler options the following way:

- Open the target setting dialog (Press ALT + F7)
- Go to Assembler for ST7 Panel
- Enter the option "-ST" in the Command line

Best Regards