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

2019-06-16 Thread avr-libc-devel
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. __

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

2019-06-16 Thread David Brown
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, c