nelsongoncalves
New member
Hello,
I have a Teensy 3.1 and I would like to read immutable data from the uC Flash and read/write to the internal EEPROM.
The performace, e.g. how fast/read operations execute, is not important for me, only if the operation is implemented using a blocking wait.
I was looking through the source code, and only the only place where there are blocking waits is when writing to EEPROM.
Reading from Flash or from EEPROM has no blocking wait, although it is probably slower than reading from RAM. Is this correct ?
Also, to have a constant placed in flash is it enough to declare it "const" or do I need the PROGMEM macro:
Thanks in advance,
Nelson
I have a Teensy 3.1 and I would like to read immutable data from the uC Flash and read/write to the internal EEPROM.
The performace, e.g. how fast/read operations execute, is not important for me, only if the operation is implemented using a blocking wait.
I was looking through the source code, and only the only place where there are blocking waits is when writing to EEPROM.
Reading from Flash or from EEPROM has no blocking wait, although it is probably slower than reading from RAM. Is this correct ?
Also, to have a constant placed in flash is it enough to declare it "const" or do I need the PROGMEM macro:
Code:
static const uint8_t ConstantValue = 0x12; // this is enough to place ConstantValue in the uC flash ?
static uint8_t ConstantValue PROGMEM = 0x12; // or should I use PROGMEM
Thanks in advance,
Nelson