avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] const struct in program memory


From: David Brown
Subject: Re: [avr-libc-dev] const struct in program memory
Date: Mon, 17 Jun 2019 07:52:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

You certainly can use PROGMEM (or the newer __flash) on structs in program memory. But you need to use the right methods to access the data. Can you post a short sample code that you tried but which did not work?



On 17/06/2019 07:08, avr-libc-devel wrote:
Hello friends.
Tell me, please, can I use constant structures located in the program memory, as usual, which are located in the RAM? I tried to use the structure with the PROGMEM modifier, the program is compiled, but it seems to work incorrectly.

Thank you.

_______________________________________________
AVR-libc-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev



reply via email to

[Prev in Thread] Current Thread [Next in Thread]