Skip to main content
4 votes
Accepted

Large arrays crash the arduino

In the edited version of your question, you wrote: I am using memcpy_P() in order to copy the arrays from PROGMEM to RAM. The whole purpose of PROGMEM is to avoid having to store the data in RAM. If ...
Edgar Bonet's user avatar
  • 43.1k
4 votes
Accepted

PlatformIO and const PROGMEM

The PROGMEM qualifier can only be applied to statically-allocated constant data. When you move the decimalDigit array inside the class, it becomes a data member, i.e. you have one copy of the array ...
Edgar Bonet's user avatar
  • 43.1k
1 vote

PlatformIO and const PROGMEM

OK, I ended up blindly stumbling over the solution, even though at this moment I have no idea why it actually works. I moved the const PROGMEM uint8_t decimalDigit[10][8] = {...} declaration from ...
Bitbang3r's user avatar
  • 541

Only top scored, non community-wiki answers of a minimum length are eligible