ucglib icon indicating copy to clipboard operation
ucglib copied to clipboard

avr-gcc 5.4 does not support PROGMEM for typedef

Open deepfryed opened this issue 6 years ago • 3 comments

Arduino/libraries/Ucglib/src/clib/ucg.h:120:25: internal compiler error: in type_hash_canon, at tree.c:6953 typedef uint8_t PROGMEM ucg_pgm_uint8_t;

It needs to be re-defined as a macro me thinks.

deepfryed avatar Oct 27 '18 07:10 deepfryed

yes that seems to work

#define ucg_pgm_uint8_t uint8_t PROGMEM

Instead of

typedef uint8_t PROGMEM ucg_pgm_uint8_t;

deepfryed avatar Oct 27 '18 07:10 deepfryed

perhaps related, Ucglib_ILI9341_18x240x320_HWSPI doesn't work but Ucglib_ILI9341_18x240x320_SWSPI does, I may have to get the logic analyzer out.

deepfryed avatar Oct 27 '18 23:10 deepfryed

Ucglib_ILI9341_18x240x320_HWSPI was a clock issue, sorted it out. I have a 12MHz crystal on my Chinese nano :/

deepfryed avatar Oct 28 '18 05:10 deepfryed