Flash is 4 bytes aligned, so your array has to be "uinit32" , read and write every 4 bytes.
Statistics: Posted by Guest — Wed Jul 01, 2015 10:31 am
]]>2015-07-01T08:15:13+08:002015-07-01T08:15:13+08:00https://bbs.espressif.com:443/viewtopic.php?t=667&p=2447#p2447 As a pseudo example (which clearly is fictional)
uint8_t fred[10]={ 1,2,3,4,5,6,7,8,9,10 }
a=fred[6];
but any array I've seen - event with CONST written all over it, still ends up using RAM! what C code would we need in order to create and access a similar array that never leaves FLASH and could hence be quite big.
??
Pete.
p.s. clarly it can be done - as there are routines in the SDK (and TUANPM wrote some) to store information in FLASH and bring it back... but it would be nice if somehow one could make something simple that doesn't involve knowing the exact location of the array in FLASH beforehand.
Statistics: Posted by scargill — Wed Jul 01, 2015 8:15 am