8000 Extend ESP8266 docs with MMU-related info · platformio/platformio-docs@459f013 · GitHub
[go: up one dir, main page]

Skip to content

Commit 459f013

Browse files
committed
Extend ESP8266 docs with MMU-related info
1 parent 01219b6 commit 459f013

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

platforms/espressif8266_extra.rst

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,68 @@ Please use one of the next :ref:`projectconf_build_flags`:
362362
build_flags = -DVTABLES_IN_IRAM
363363
364364
365+
MMU - Adjusting ICACHE to IRAM ratio
366+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
367+
368+
By default the balanced ratio (32KB cache + 32KB IRAM) configuration is used.
369+
Alternative configurations can be enabled using the :ref:`projectconf_build_flags`
370+
option in :ref:`projectconf`:
371+
372+
373+
.. list-table:: MMU Configuration Options
374+
:header-rows: 1
375+
376+
* - Name
377+
- Description
378+
379+
* - ``PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48``
380+
- 16KB cache + 48KB IRAM (IRAM)
381+
382+
* - ``PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48_SECHEAP_SHARED``
383+
- 16KB cache + 48KB IRAM and 2nd Heap (shared)
384+
385+
* - ``PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM32_SECHEAP_NOTSHARED``
386+
- 16KB cache + 32KB IRAM + 16KB 2nd Heap (not shared)
387+
388+
* - ``PIO_FRAMEWORK_ARDUINO_MMU_EXTERNAL_128K``
389+
- 128K External 23LC1024
390+
391+
* - ``PIO_FRAMEWORK_ARDUINO_MMU_EXTERNAL_1024K``
392+
- 1M External 64 MBit PSRAM
393+
394+
* - ``PIO_FRAMEWORK_ARDUINO_MMU_CUSTOM``
395+
- Disables default configuration and expects user-specified flags
396+
397+
Examples:
398+
399+
.. code-block:: ini
400+
401+
[env:espduino]
402+
platform = espressif8266
403+
framework = arduino
404+
board = espduino
405+
build_flags =
406+
-D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48
407+
408+
[env:espino]
409+
platform = espressif8266
410+
framework = arduino
411+
board = espino
412+
build_flags =
413+
-D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM32_SECHEAP_NOTSHARED
414+
415+
[env:d1_mini]
416+
platform = espressif8266
417+
framework = arduino
418+
board = d1_mini
419+
build_flags =
420+
-D PIO_FRAMEWORK_ARDUINO_MMU_CUSTOM
421+
-D MMU_IRAM_SIZE=0xC000
422+
-D MMU_ICACHE_SIZE=0x4000
423+
-D MMU_IRAM_HEAP
424+
425+
More detailed information on this matter can be found in the `official documentation <https://arduino-esp8266.readthedocs.io/en/latest/mmu.html>`_.
426+
365427
Exceptions
366428
~~~~~~~~~~
367429

0 commit comments

Comments
 (0)
0