-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Michael,

> On 10/9/2013 3:01 PM, Michael Picco wrote:
>> Hello,
>> 
>> I keep getting the following warning when compiling amforth for
>> an Arduino Uno:
>> 
>> "Use of undefined or forward referenced symbol 'XT_NOOP' in
>> .equ/.set" The warning points to line 28 in the file
>> "usart_common.asm.
>> 
>> I've gone through the compilation process, double-checking my
>> work several times.
>> 
>> Any idea what might be causing this?

You could use a line like

.set WANT_ISR_TX = 1

somewhere above the include "drivers/usartxxx" in your application file.

>> Is it a warning that could prevent successful running on the
>> target device?

If you read the file core/drivers/usart_common.asm the line 28 looks
as follows:

  .set XT_USART_INIT_TX = XT_NOOP

The warning tells you, that the symbol XT_NOOP is not known to the
assembler (yet). This will change in a later step during assembly thus
the warning is basically a cosmetic thing.

The definition of the WANT-Option as described above changes what the
assembler will process in the core/drivers/usart_common.asm. The
conditional assembly works just like the c preprocessor works, only
the synatx is different. The details, including what the other
words may change, I leave to you ;)

Matthias

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJW6c8ACgkQ9bEHdGEMFjOh0wCg9E3t4rYsvuAWgVPSsHgbp4s0
4L0AoIsFdAHmenP3Qt823rEpkedYviMO
=L8bS
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to