Skip to content

Commit 7933bb0

Browse files
committed
improve hard fault message
1 parent 8754b8e commit 7933bb0

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

locale/circuitpython.pot

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ msgid "%q must be 1 when %q is True"
182182
msgstr ""
183183

184184
#: py/argcheck.c shared-bindings/gifio/GifWriter.c
185+
#: shared-module/gifio/OnDiskGif.c
185186
msgid "%q must be <= %d"
186187
msgstr ""
187188

@@ -1006,10 +1007,6 @@ msgstr ""
10061007
msgid "Failed to write internal flash."
10071008
msgstr ""
10081009

1009-
#: supervisor/shared/safe_mode.c
1010-
msgid "Fault detected by hardware."
1011-
msgstr ""
1012-
10131010
#: py/moduerrno.c
10141011
msgid "File exists"
10151012
msgstr ""
@@ -1085,6 +1082,10 @@ msgstr ""
10851082
msgid "Half duplex SPI is not implemented"
10861083
msgstr ""
10871084

1085+
#: supervisor/shared/safe_mode.c
1086+
msgid "Hard fault: memory access or instruction error."
1087+
msgstr ""
1088+
10881089
#: ports/mimxrt10xx/common-hal/busio/SPI.c ports/stm/common-hal/busio/I2C.c
10891090
#: ports/stm/common-hal/busio/SPI.c ports/stm/common-hal/canio/CAN.c
10901091
#: ports/stm/common-hal/sdioio/SDCard.c
@@ -1950,10 +1951,6 @@ msgstr ""
19501951
msgid "Size not supported"
19511952
msgstr ""
19521953

1953-
#: ports/raspberrypi/common-hal/alarm/SleepMemory.c
1954-
msgid "Sleep Memory not available"
1955-
msgstr ""
1956-
19571954
#: shared-bindings/alarm/SleepMemory.c shared-bindings/memorymap/AddressRange.c
19581955
#: shared-bindings/nvm/ByteArray.c
19591956
msgid "Slice and value different lengths."

supervisor/shared/safe_mode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ void print_safe_mode_message(safe_mode_t reason) {
209209
message = translate("Failed to write internal flash.");
210210
break;
211211
case SAFE_MODE_HARD_FAULT:
212-
message = translate("Fault detected by hardware.");
212+
message = translate("Hard fault: memory access or instruction error.");
213213
break;
214214
case SAFE_MODE_INTERRUPT_ERROR:
215215
message = translate("Interrupt error.");

0 commit comments

Comments
 (0)