At 11:29 AM 8/08/2013, you wrote:
>The failure occurs when "-O" is used AND the EEPROM is not present ...
As a matter of interest how did you manage to get just the -O option
to be generated? Are you using a manual makefile?
There is no way of selecting just -O in Studio's Project
Configuration Options,
I have it in front of me now.
The current levels of optimization are:
* -O0 No optimization. This is the same as not specifying any
optimization.
* -01 Optimize. Reduces code size and execution time without
performing any optimizations that take a great deal of compilation time.
* -O2 Optimize even more. avr-gcc performs almost all
optimizations that don't involve a space-time tradeoff.
* -O3 Optimize yet more. This level performs all optimizations at
-O2 along with -finline-functions and -frename-registers.
* -Os Optimize for size. Enables all -O2 optimizations that don't
increase code size. It also performs further optimizations designed
to reduce code size.
For more information on optimization, see the 'man' pages for avr-gcc.
Regards
John Samperi
********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495
Website http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************Message
RE: [AVR-Chat] TWI not working when optimization is on
2013-08-08 by John Samperi
Attachments
- No local attachments were found for this message.