/* NOTE: don't use printf_opt in irq handler, for test */
#define os_printf(fmt, ...) do { \
static const char flash_str[] ICACHE_RODATA_ATTR STORE_ATTR = fmt; \
printf(flash_str, ##__VA_ARGS__); \
} while(0)
Where inside the flash the variable flash_str is being saved? What address?
If I use the same logic to save another string into the flash:
static const char flashString[] ICACHE_RODATA_ATTR STORE_ATTR = "TEST";
How can I read the flashString variable? If I read it directly it results in a fatal exception(3).
I can copy the content of the flashString to another buffer using memcpy, but I would like to read it directly without memcpy.Statistics: Posted by gustavomassa — Fri Apr 28, 2017 9:52 am
]]>