URL: <http://savannah.nongnu.org/bugs/?44128>
Summary: sprintf fails when printing floats and code is in flash address > 0xffff Project: AVR C Runtime Library Submitted by: None Submitted on: jue 29 ene 2015 23:26:12 UTC Category: Library Severity: 3 - Normal Priority: 5 - Normal Item Group: libc code Status: None Percent Complete: 0% Assigned to: None Originator Email: fabian.inostroz...@gmail.com Open/Closed: Open Discussion Lock: Any Release: 1.8.0 Fixed Release: None _______________________________________________________ Details: I was performing some test with bootloaders on atmega1284 (testing if they can program all the available flash) and one test included printing a floating point number, the reason is in the file ftoa_engine which store some number in a table and read them using lpm. It works fine when the table is stored in a low memory address ( < 64K words) but when the table is stores in the upper memory region the lpm instruction cannot load the data. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?44128> _______________________________________________ Mensaje enviado vía/por Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev