esp-idf/docs/zh_CN/api-reference/peripherals/spi_flash/xip_from_psram.inc

13 wiersze
561 B
PHP
Czysty Wina Historia

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

.. _xip_from_psram:
PSRAM 中执行代码
----------------------
启用 :ref:`CONFIG_SPIRAM_FETCH_INSTRUCTIONS` 选项后flash ``.text`` 部分的数据(用于指令)将被放入 PSRAM。
启用 :ref:`CONFIG_SPIRAM_RODATA` 选项后flash ``.rodata`` 部分的数据(用于只读数据)将被放入 PSRAM。
相应的虚拟内存地址将被重新映射到 PSRAM。
如果同时启用以上两个选项,则在 SPI1 flash 操作期间 cache 不会被禁用,无需确保 ISR、ISR 回调及相关数据放置在内部 RAM 中。