ATmega16 GCC AVR Studio 4.18 I wrote a program that accesses External EEPROM and DS1307 (by way of TWI) (my software also uses the UART) I've made updates and have been unable to get it to work again (the TWI interface is not working). I read the DS1307 in 'boot' then periodically (on a schedule) thereafter. The first read (in boot) appears to be ok while subsequent reads do not happen. Here is where it gets odd. I 'archive' (or configure) my projects in zip files. When I load my hex file (that was archived) the software works! When I copy this "Archived" directory and rebuild, my new hex file is different and does not work (twi function is again broken). The *.lst files are different, as well. My AVR library remains unchanged and the fuse bits remain unchanged. I can go back and fourth all day between the archived (already made hex file) and the newly created hex file. The new hex file (created by the same project) does not work correctly. (as far as twi goes) The archived hex file works. NOTE: the support files (TWI.c, UART.C 24c64.C and header files) are part of the project that I copied (not in a separate AVR lib folder). Any ideas? Thanks, David
Message
Same code different results
2013-07-27 by englsprogeny1
Attachments
- No local attachments were found for this message.