Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: Jean-Marc Beaune <jm.beaune@...>
Subject: Atmega issue since reinstallation of cross-avr/gcc
Date: Mon, 24 Oct 2011 21:41:42 +0200
Hi,<div><br></div><div>Not easy to explain but I&#39;ll gi ve a go.</div><div><br></div><div>I programed an atmega328p to read temperature and send it via USART. That worked fine untill I changed my laptop.</div><div><br></div>
<div>After changing my computer (and therefore reinstalling cross-avr/gcc), then a part of a function used to read the temperature doesn&#39;t work anymore, i.e. it compiles fine but the atmega doesn&#39;t send anything via USART, the program dumps.</div>
<div><br></div><div>I narrowed down the problem and it seems to be a problem when doing some calculation in a function:</div><div><br></div><div>All variables below are declared as uint8_t</div><div><br></div><div><div>The return statement below causes the program to crash:</div>
<div>return (double) temp_LSB - 0.25 + (double)(count_per_c - count_remain) / count_per_c;</div><div><br></div><div>The return statement below causes the program to crash also:</div><div>return (double) temp_LSB - 0.25;</div>
<div><br></div><div>The return statement below is OK:</div><div>return  (double)(count_per_c - count_remain) / count_per_c;</div><div><br></div><div>Since it coincides with a change of computer used to compile the program I wonder if it could be a missing flag/option for cross-avr/gcc?</div>
<div><br></div><div>Any advice appriciated,</div><div>Thank you</div><div><br></div>-- <br>Jean-Marc<br>
</div>
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Fwd: OTechs Consulting and Training Center
Next by thread:
x86 Embedded howto - Gentooized html page
Previous by date:
Fwd: OTechs Consulting and Training Center
Next by date:
Re: X server on minimal system


Updated Jun 25, 2012

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.