Skip to content

Commit f8becca

Browse files
Explain psram build flags
1 parent feec92d commit f8becca

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,27 @@ WiFi.setSleep(false);
111111
<hr>
112112
113113
### Prevent reboots while playing
114-
Do not use the `-D BOARD_HAS_PSRAM` build flag in PlatformIO or the `PSRAM: Enabled` option in Arduino IDE. Early boards have issues with the psram cache, resulting in reboots.<br> Boards without these issues do not need this flag or option to enable the psram.
115114
116-
Another source of sudden reboots are cheap dev boards with a too small 3.3v regulator.
115+
Early version of the esp32 have issues with the psram cache, resulting in reboots.
116+
117+
This can not be prevented on V0.0 hardware other than not using the psram.
118+
119+
On V1.0 hardware psram can be used with the following build flags:
120+
```
121+
-D BOARD_HAS_PSRAM
122+
-mfix-esp32-psram-cache-issue
123+
-mfix-esp32-psram-cache-strategy=memw
124+
```
125+
126+
On V3.0 hardware psram can be used with the following build flag:
127+
```
128+
-D BOARD_HAS_PSRAM
129+
```
130+
131+
132+
In PIO you can find out what hardware revision you have by running `esptool.py flash_id` in a terminal.
133+
134+
In Arduino IDE you can see the hardware revision when you upload a sketch and have `upload` checked in the `Show verbose output during` option on the `File->Preferences` page.
117135
118136
<hr>
119137

0 commit comments

Comments
 (0)