@@ -362,6 +362,68 @@ Please use one of the next :ref:`projectconf_build_flags`:
362
362
build_flags = -DVTABLES_IN_IRAM
363
363
364
364
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
+
365
427
Exceptions
366
428
~~~~~~~~~~
367
429
0 commit comments