Skip to content

Commit a314a8c

Browse files
authored
Document setting the PSRAM size for PlatformIO (#2527)
1 parent 58c0d95 commit a314a8c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/pull-request.yml

+1
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ jobs:
322322
python -m pip install --upgrade pip
323323
pip install --upgrade platformio
324324
pio pkg install --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
325+
pio pkg update --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
325326
pio pkg install --global --tool symlink://.
326327
cp -f /home/runner/work/arduino-pico/arduino-pico/tools/json/*.json /home/runner/.platformio/platforms/raspberrypi/boards/.
327328
- name: Build Every Variant

docs/platformio.rst

+16
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,22 @@ platform <https://github.com/maxgerhardt/platform-raspberrypi/blob/77e0d3a29d1db
156156
; Flash Size: 2MB (Sketch: 0.5MB, FS:1.5MB)
157157
board_build.filesystem_size = 1.5m
158158
159+
PSRAM size
160+
----------
161+
162+
For RP2350 based boards, this controls how much PSRAM the firmware will think it has available in bytes, mapped at starting address 0x11000000.
163+
164+
To learn more about PSRAM usage, see: :doc:`RP2350 PSRAM Support <psram>`
165+
166+
.. code:: ini
167+
168+
; PSRAM size: 1MB
169+
board_upload.psram_length = 1048576
170+
; PSRAM size: 2MB
171+
board_upload.psram_length = 2097152
172+
; PSRAM size: 4MB
173+
board_upload.psram_length = 4194304
174+
159175
CPU Speed
160176
---------
161177

0 commit comments

Comments
 (0)