Yahoo Groups archive

AVR-Chat

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

Thread

Re: Same code different results

Re: Same code different results

2013-07-27 by englsprogeny1

When I rebuild the hex file I use and exact copy of the 'archived project same project (same makefile).  It seems that the optimization would be the same.  

I did try what you said and updated my makefile to set optimizations to zero.  I still have the same issue (twi does not work correctly).

Iw roks right after boot but any slave (1307) reads therafter do not work).

When I load the target with my archived hex file, all works well.

TWI, UART, EEPROM support files are in this project, as well.

Something that may be different since I did the build that works...  I've rebuilt my machine.  This new machine is Windows 7 while my previous machine was Windows Xp.  I'm not sure if I've had this hex file built and running properly since then (but it seems that I have).

All other functions work in my new builds except for this twi.


I copied the same AVR lib (in the same directory) that I used on previous builds.




--- In AVR-Chat@yahoogroups.com, Cagri Tanriover <dr_cagri_tanriover@...> wrote:
Show quoted textHide quoted text
>
> 
> I would check the project's optimisation settings. If your project is highly optimised, timings and similar type of problems may occur depending on the types of optimisations. I would try to remove all optimisations to start with to see if it all works as expected first.
> 
> I had a similar problem where no apparent changes appeared in the code except a few mild optimisations and the whole code went haywire. Innocent looking optimisations can cause a lot of headaches.
> 
> 
> Regards...
> 
> 
> [Non-text portions of this message have been removed]
>

Re: Same code different results

2013-07-27 by Cagri Tanriover

I would check the project's optimisation settings. If your project is highly optimised, timings and similar type of problems may occur depending on the types of optimisations. I would try to remove all optimisations to start with to see if it all works as expected first.

I had a similar problem where no apparent changes appeared in the code except a few mild optimisations and the whole code went haywire. Innocent looking optimisations can cause a lot of headaches.


Regards...


[Non-text portions of this message have been removed]

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.