added "-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue" to build flags
This commit is contained in:
parent
e1102c69d6
commit
75b50a4506
2 changed files with 2 additions and 2 deletions
|
@ -256,7 +256,7 @@ void setup() {
|
|||
Serial.print(F("Free RAM after init (decimal bytes): "));
|
||||
Serial.println(ESP.getFreeHeap());
|
||||
|
||||
if (psramFound()) {
|
||||
if (psramInit()) {
|
||||
uint32_t free_psram = ESP.getFreePsram();
|
||||
Serial.printf("Free PSRAM: %d decimal bytes (or %d pages (see 'ramsize' in the debugger))", free_psram, free_psram / 8192l);
|
||||
Serial.println(F(""));
|
||||
|
|
|
@ -17,7 +17,7 @@ board_build.filesystem = littlefs
|
|||
lib_deps = greiman/SdFat@^2.1.2
|
||||
adafruit/Adafruit NeoPixel
|
||||
bblanchon/ArduinoJson@^6.19.4
|
||||
build_flags = -std=gnu++2a -DESP32=1 -ggdb3 -D_GLIBCXX_USE_C99
|
||||
build_flags = -std=gnu++2a -DESP32=1 -ggdb3 -D_GLIBCXX_USE_C99 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue
|
||||
build_unflags = -std=gnu++11 -std=gnu++17
|
||||
extra_scripts = pre:prepare.py
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue