gcc plug-in Error and values of registerbits

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

Hello,

I am using AVR Studio4 to develop AT90CAN128. In a program I made such a definition:

char var = 4;

but got an error in compiler:
gcc plug-in: Error: Object file not found on expected location … \default\example.elf.

If I changed it to “

char var

”; everything is OK.
Has anybody met such a problem?

In the datasheet of AT90CAN128 I found this code of initialization of UART:

UCSR0B = (1<<RXEN0)|(TXEN0);

That means, the bits RXEN0 and TXEN0 must have values that equal to their positions in the register. Where are these values defined?

Thanks

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

Yes but the "object file not found" is the final error in the process - under the build tab you'll find the actual compiler/linker error message that explains why one of the files was not built.

Also just quoting a single line out of context is no help in diagnosing what's wrong - many times the final error that stops compilation is not about the line that's flagged but a knock-on error from a line previous to it (such as a missed semi-colon or brace on a previous line)