improve hard fault message
This commit is contained in:
parent
8754b8e563
commit
7933bb0ebe
@ -182,6 +182,7 @@ msgid "%q must be 1 when %q is True"
|
||||
msgstr ""
|
||||
|
||||
#: py/argcheck.c shared-bindings/gifio/GifWriter.c
|
||||
#: shared-module/gifio/OnDiskGif.c
|
||||
msgid "%q must be <= %d"
|
||||
msgstr ""
|
||||
|
||||
@ -1006,10 +1007,6 @@ msgstr ""
|
||||
msgid "Failed to write internal flash."
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Fault detected by hardware."
|
||||
msgstr ""
|
||||
|
||||
#: py/moduerrno.c
|
||||
msgid "File exists"
|
||||
msgstr ""
|
||||
@ -1085,6 +1082,10 @@ msgstr ""
|
||||
msgid "Half duplex SPI is not implemented"
|
||||
msgstr ""
|
||||
|
||||
#: supervisor/shared/safe_mode.c
|
||||
msgid "Hard fault: memory access or instruction error."
|
||||
msgstr ""
|
||||
|
||||
#: ports/mimxrt10xx/common-hal/busio/SPI.c ports/stm/common-hal/busio/I2C.c
|
||||
#: ports/stm/common-hal/busio/SPI.c ports/stm/common-hal/canio/CAN.c
|
||||
#: ports/stm/common-hal/sdioio/SDCard.c
|
||||
@ -1950,10 +1951,6 @@ msgstr ""
|
||||
msgid "Size not supported"
|
||||
msgstr ""
|
||||
|
||||
#: ports/raspberrypi/common-hal/alarm/SleepMemory.c
|
||||
msgid "Sleep Memory not available"
|
||||
msgstr ""
|
||||
|
||||
#: shared-bindings/alarm/SleepMemory.c shared-bindings/memorymap/AddressRange.c
|
||||
#: shared-bindings/nvm/ByteArray.c
|
||||
msgid "Slice and value different lengths."
|
||||
|
@ -209,7 +209,7 @@ void print_safe_mode_message(safe_mode_t reason) {
|
||||
message = translate("Failed to write internal flash.");
|
||||
break;
|
||||
case SAFE_MODE_HARD_FAULT:
|
||||
message = translate("Fault detected by hardware.");
|
||||
message = translate("Hard fault: memory access or instruction error.");
|
||||
break;
|
||||
case SAFE_MODE_INTERRUPT_ERROR:
|
||||
message = translate("Interrupt error.");
|
||||
|
Loading…
Reference in New Issue
Block a user