ATmega32 assembler include file errors?

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I just started an ATmega32 project using AVR Studio 4.09 and got an error while assembling it. It pointed to my initialization of the SFIOR register and did not know what ADTS0 was. I opened m32def.inc in the AVR assembler's path and noticed that ADTS2,ADTS1,ADTS0 and the undefined bit 4 were named RPDD, RPDC, RPDB, RPDA.

I upgraded to AVR Studio 4.10 but it is still the same m32def.inc file. Oh well, going to changed the include file.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There are also some errors in TCCR1A, TCCR1B and TCCR2 registers with the WGMxx bits. The include file has an equate for ADCSR but the data sheet calls this ADCSRA and bit 5 is misnamed.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the input.

We are working on an entirely new set of include files for AVRASM2, and will aim to get all definitions in the include files to match the data sheets.

Roland Kruse
Atmel AVR Tools

Please don't report bugs in private forum messages.
--
Roland Kruse
Atmel AVR Tools