Yahoo Groups archive

AVR-Chat

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

Message

RE: [AVR-Chat] TWI not working when optimization is on

2013-08-08 by John Samperi

At 11:50 AM 8/08/2013, you wrote:
>Have you ever tried your "-Os" optimized code to communicate with a TWI
>device that was not present and recover?

If your TWI code doesn't have any time out and locks waiting for a
response then it won't matter if the code is optimised or not I guess.

If the device doesn't respond then the code should give up and return
an error code of sort.

So are you saying that if you turn optimization OFF (the code gets bigger)
the TWI still recovers without a device being present and if the optimization
is on (any of the 4 levels) then the TWI doesn't recover?

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
********************************************************

Attachments

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.