esp-idf/docs/zh_CN/api-reference/storage/xip_from_psram.inc

13 lines
561 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.. _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 中。