Discussion:
[avr-libc-dev] [bug #36933] Documentation no longer correctly describes how to declare strings for storage in program memory
Stuart Cording
2012-07-24 09:44:17 UTC
Permalink
URL:
<http://savannah.nongnu.org/bugs/?36933>

Summary: Documentation no longer correctly describes how to
declare strings for storage in program memory
Project: AVR C Runtime Library
Submitted by: codinghead
Submitted on: Tue 24 Jul 2012 09:44:17 GMT
Category: Documentation
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Documentation
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: 1.8.0
Fixed Release: None

_______________________________________________________

Details:

The documentation page as described below no longer correctly describes how to
define strings that are to be stored in program memory using the PGM_P and
PROGMEM definition s.

This issue occurs when moving from version 1.7.1 to 1.8.0.

Description of the issue with the 1.8.0 library and how to solve it below.
The strings were defined as per the AVR Libc homepage -
http://www.nongnu.org/avr-libc/user-manual/pgmspace.html
char string_1[] PROGMEM = "String 1";
char string_2[] PROGMEM = "String 2";
char string_3[] PROGMEM = "String 3";
char string_4[] PROGMEM = "String 4";
char string_5[] PROGMEM = "String 5";
PGM_P string_table[] PROGMEM =
{
string_1,
string_2,
string_3,
string_4,
string_5
};
However, on compiling my code I received the following error for each such
Error 1 variable 'string_B01' must be const in order to be put into
read-only section by means of '__attribute__((progmem))'
const char string_1[] PROGMEM = "String 1"; const char string_2[]
PROGMEM = "String 2"; const char string_3[] PROGMEM = "String 3";
const char string_4[] PROGMEM = "String 4"; const char string_5[]
PROGMEM = "String 5";
PGM_P const string_table[] PROGMEM =
{
string_1,
string_2,
string_3,
string_4,
string_5
};
_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?36933>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
Eric Weddington
2012-11-16 18:12:00 UTC
Permalink
Update of bug #36933 (project avr-libc):

Priority: 5 - Normal => 9 - Immediate


_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?36933>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
Aurelien Jarno
2013-03-10 18:35:28 UTC
Permalink
Additional Item Attachment, bug #36933 (project avr-libc):

File name: 36933.patch Size:2 KB


_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?36933>

_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
jens harms
2016-08-11 09:01:40 UTC
Permalink
Follow-up Comment #1, bug #36933 (project avr-libc):

Why is this bug still "open" ?
avr-libc 2.0.0 doc still unpatched!



_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?36933>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
Jonathan W. Taylor
2016-08-12 19:18:36 UTC
Permalink
Update of bug #36933 (project avr-libc):

Assigned to: None => elderling


_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?36933>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
Jonathan W. Taylor
2016-08-12 19:58:48 UTC
Permalink
Update of bug #36933 (project avr-libc):

Release: 1.8.0 => 2.0.0


_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?36933>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
Jonathan W. Taylor
2016-08-12 19:59:10 UTC
Permalink
Update of bug #36933 (project avr-libc):

Status: None => Confirmed


_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?36933>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
Jonathan W. Taylor
2016-08-12 20:02:29 UTC
Permalink
Update of bug #36933 (project avr-libc):

Percent Complete: 0% => 80%


_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?36933>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
Jonathan W. Taylor
2016-08-14 20:37:27 UTC
Permalink
Update of bug #36933 (project avr-libc):

Percent Complete: 80% => 100%
Open/Closed: Open => Closed


_______________________________________________________

Reply to this item at:

<http://savannah.nongnu.org/bugs/?36933>

_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/

Loading...