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

2019-06-17 Thread avr-libc-devel
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? typedef struct { uint16_t int_part; uint8_t frac_part;

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

2019-06-17 Thread David Brown
On 17/06/2019 09:38, avr-libc-devel wrote: 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? typedef struct {     uint16_t