From 11ae1dcebed2d68dfcaad74f0c1a0232f4f98486 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 1 Dec 2020 21:35:24 +0100 Subject: [PATCH] docs: fatal errors: mention another reason for LoadStoreError --- docs/en/api-guides/fatal-errors.rst | 6 +++++- docs/zh_CN/api-guides/fatal-errors.rst | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/en/api-guides/fatal-errors.rst b/docs/en/api-guides/fatal-errors.rst index a3293f7965..ce7e337d84 100644 --- a/docs/en/api-guides/fatal-errors.rst +++ b/docs/en/api-guides/fatal-errors.rst @@ -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 ^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/docs/zh_CN/api-guides/fatal-errors.rst b/docs/zh_CN/api-guides/fatal-errors.rst index 8db3ac6a14..50c9328ffd 100644 --- a/docs/zh_CN/api-guides/fatal-errors.rst +++ b/docs/zh_CN/api-guides/fatal-errors.rst @@ -239,7 +239,10 @@ LoadStoreAlignment LoadStoreError ^^^^^^^^^^^^^^ -应用程序尝试从仅支持 32 位加载/存储的内存区域执行 8 位或 16 位加载/存储操作,例如,解引用一个指向指令内存区域的 ``char*`` 指针就会导致这样的错误。 +这类异常通常发生于以下几种场合: + +应用程序尝试从仅支持 32 位加载/存储的内存区域执行 8 位或 16 位加载/存储操作,例如,解引用一个指向指令内存区域(比如 IRAM 或者 IROM)的 char* 指针就会触发这个错误。 +应用程序尝试保存数据到只读的内存区域(比如 IROM 或者 DROM)也会触发这个错误。 Unhandled debug exception ^^^^^^^^^^^^^^^^^^^^^^^^^