Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Same code different results

Same code different results

2013-07-27 by englsprogeny1

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

Re: Same code different results

2013-07-27 by englsprogeny1

I have 4 *.lst files:

Menu, UART, TWI and 24c64.

They are all different from their respective archived equivalents.








--- In AVR-Chat@yahoogroups.com, Tim Mitchell <tim@...> wrote:
Show quoted textHide quoted text
>
> If your archived project contains a list file, compare the list file with the newly generated version, this may help identify the problem. Winmerge is a good application to do this.
> 
> --
> Tim Mitchell
>

RE: [AVR-Chat] Same code different results

2013-07-27 by Tim Mitchell

If your archived project contains a list file, compare the list file with the newly generated version, this may help identify the problem. Winmerge is a good application to do this.

--
Tim Mitchell

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.