docs: fatal errors: mention another reason for LoadStoreError

This commit is contained in:
Ivan Grokhotkov 2020-12-01 21:35:24 +01:00
parent 8bf1c2565f
commit 11ae1dcebe
2 changed files with 9 additions and 2 deletions

View File

@ -238,7 +238,11 @@ Application has attempted to read or write memory location, and address alignmen
LoadStoreError
^^^^^^^^^^^^^^
Application has attempted to do a 8- or 16- bit load/store from a memory region which only supports 32-bit loads/stores. For example, dereferencing a ``char*`` pointer which points into intruction memory will result in such an error.
This exception may happen in the following cases:
- If the application has attempted to do an 8- or 16- bit load/store from a memory region which only supports 32-bit loads/stores. For example, dereferencing a ``char*`` pointer to intruction memory (IRAM, IROM) will result in such an error.
- If the application has attempted a store to a read-only memory region, such as IROM or DROM.
Unhandled debug exception
^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -239,7 +239,10 @@ LoadStoreAlignment
LoadStoreError
^^^^^^^^^^^^^^
应用程序尝试从仅支持 32 位加载/存储的内存区域执行 8 位或 16 位加载/存储操作,例如,解引用一个指向指令内存区域的 ``char*`` 指针就会导致这样的错误。
这类异常通常发生于以下几种场合:
应用程序尝试从仅支持 32 位加载/存储的内存区域执行 8 位或 16 位加载/存储操作,例如,解引用一个指向指令内存区域(比如 IRAM 或者 IROM)的 char* 指针就会触发这个错误。
应用程序尝试保存数据到只读的内存区域(比如 IROM 或者 DROM也会触发这个错误。
Unhandled debug exception
^^^^^^^^^^^^^^^^^^^^^^^^^