Skip to content

Commit bcd03ed

Browse files
authored
Merge pull request #2381 from dhalbert/nvm-write-safe-mode-cleanup
Fix flash write error handling; clean up safe mode message printing
2 parents f140463 + 1b3028b commit bcd03ed

File tree

20 files changed

+1143
-768
lines changed

20 files changed

+1143
-768
lines changed

locale/ID.po

Lines changed: 65 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2019-12-10 13:55-0600\n"
11+
"POT-Creation-Date: 2019-12-12 14:51-0500\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -23,6 +23,19 @@ msgid ""
2323
"Code done running. Waiting for reload.\n"
2424
msgstr ""
2525

26+
#: supervisor/shared/safe_mode.c
27+
msgid ""
28+
"\n"
29+
"Please file an issue with the contents of your CIRCUITPY drive at \n"
30+
"https://github.com/adafruit/circuitpython/issues\n"
31+
msgstr ""
32+
33+
#: supervisor/shared/safe_mode.c
34+
msgid ""
35+
"\n"
36+
"To exit, please reset the board without "
37+
msgstr ""
38+
2639
#: py/obj.c
2740
msgid " File \"%q\""
2841
msgstr ""
@@ -294,7 +307,7 @@ msgid "Array values should be single bytes."
294307
msgstr ""
295308

296309
#: supervisor/shared/safe_mode.c
297-
msgid "Attempted heap allocation when MicroPython VM not running.\n"
310+
msgid "Attempted heap allocation when MicroPython VM not running."
298311
msgstr ""
299312

300313
#: main.c
@@ -454,6 +467,16 @@ msgstr ""
454467
msgid "CharacteristicBuffer writing not provided"
455468
msgstr ""
456469

470+
#: supervisor/shared/safe_mode.c
471+
msgid "CircuitPython core code crashed hard. Whoops!\n"
472+
msgstr ""
473+
474+
#: supervisor/shared/safe_mode.c
475+
msgid ""
476+
"CircuitPython is in safe mode because you pressed the reset button during "
477+
"boot. Press again to exit safe mode.\n"
478+
msgstr ""
479+
457480
#: shared-module/bitbangio/SPI.c
458481
msgid "Clock pin init failed."
459482
msgstr ""
@@ -515,7 +538,7 @@ msgid "Couldn't allocate second buffer"
515538
msgstr ""
516539

517540
#: supervisor/shared/safe_mode.c
518-
msgid "Crash into the HardFault_Handler.\n"
541+
msgid "Crash into the HardFault_Handler."
519542
msgstr ""
520543

521544
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
@@ -632,28 +655,18 @@ msgstr ""
632655
msgid "Failed to release mutex, err 0x%04x"
633656
msgstr "Gagal untuk melepaskan mutex, status: 0x%08lX"
634657

635-
#: py/moduerrno.c
636-
msgid "File exists"
637-
msgstr ""
638-
639-
#: ports/nrf/peripherals/nrf/nvm.c
640-
msgid "Flash erase failed"
658+
#: supervisor/shared/safe_mode.c
659+
msgid "Failed to write internal flash."
641660
msgstr ""
642661

643-
#: ports/nrf/peripherals/nrf/nvm.c
644-
#, c-format
645-
msgid "Flash erase failed to start, err 0x%04x"
662+
#: py/moduerrno.c
663+
msgid "File exists"
646664
msgstr ""
647665

648-
#: ports/nrf/peripherals/nrf/nvm.c
666+
#: ports/nrf/common-hal/nvm/ByteArray.c
649667
msgid "Flash write failed"
650668
msgstr ""
651669

652-
#: ports/nrf/peripherals/nrf/nvm.c
653-
#, c-format
654-
msgid "Flash write failed to start, err 0x%04x"
655-
msgstr ""
656-
657670
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
658671
msgid "Frequency captured is above capability. Capture Paused."
659672
msgstr ""
@@ -826,13 +839,6 @@ msgstr ""
826839
msgid "Length must be non-negative"
827840
msgstr ""
828841

829-
#: supervisor/shared/safe_mode.c
830-
msgid ""
831-
"Looks like our core CircuitPython code crashed hard. Whoops!\n"
832-
"Please file an issue at https://github.com/adafruit/circuitpython/issues\n"
833-
" with the contents of your CIRCUITPY drive and this message:\n"
834-
msgstr ""
835-
836842
#: shared-module/bitbangio/SPI.c
837843
msgid "MISO pin init failed."
838844
msgstr ""
@@ -847,11 +853,11 @@ msgid "Maximum x value when mirrored is %d"
847853
msgstr ""
848854

849855
#: supervisor/shared/safe_mode.c
850-
msgid "MicroPython NLR jump failed. Likely memory corruption.\n"
856+
msgid "MicroPython NLR jump failed. Likely memory corruption."
851857
msgstr ""
852858

853859
#: supervisor/shared/safe_mode.c
854-
msgid "MicroPython fatal error.\n"
860+
msgid "MicroPython fatal error."
855861
msgstr ""
856862

857863
#: shared-bindings/audiobusio/PDMIn.c
@@ -920,6 +926,10 @@ msgstr ""
920926
msgid "No such file/directory"
921927
msgstr ""
922928

929+
#: supervisor/shared/safe_mode.c
930+
msgid "Nordic Soft Device failure assertion."
931+
msgstr ""
932+
923933
#: ports/nrf/common-hal/_bleio/__init__.c
924934
#: shared-bindings/_bleio/CharacteristicBuffer.c
925935
#, fuzzy
@@ -1103,10 +1113,7 @@ msgstr ""
11031113
#: supervisor/shared/safe_mode.c
11041114
msgid ""
11051115
"The CircuitPython heap was corrupted because the stack was too small.\n"
1106-
"Please increase stack size limits and press reset (after ejecting "
1107-
"CIRCUITPY).\n"
1108-
"If you didn't change the stack, then file an issue here with the contents of "
1109-
"your CIRCUITPY drive:\n"
1116+
"Please increase the stack size if you know how, or if not:"
11101117
msgstr ""
11111118

11121119
#: supervisor/shared/safe_mode.c
@@ -1116,21 +1123,11 @@ msgid ""
11161123
msgstr ""
11171124

11181125
#: supervisor/shared/safe_mode.c
1119-
#, fuzzy
11201126
msgid ""
1121-
"The microcontroller's power dipped. Please make sure your power supply "
1122-
"provides\n"
1127+
"The microcontroller's power dipped. Make sure your power supply provides\n"
11231128
"enough power for the whole circuit and press reset (after ejecting "
11241129
"CIRCUITPY).\n"
11251130
msgstr ""
1126-
"Tegangan dari mikrokontroler turun atau mati. Pastikan sumber tegangan "
1127-
"memberikan daya\n"
1128-
1129-
#: supervisor/shared/safe_mode.c
1130-
msgid ""
1131-
"The reset button was pressed while booting CircuitPython. Press again to "
1132-
"exit safe mode.\n"
1133-
msgstr ""
11341131

11351132
#: shared-module/audiomixer/MixerVoice.c
11361133
msgid "The sample's bits_per_sample does not match the mixer's"
@@ -1164,10 +1161,6 @@ msgstr ""
11641161
msgid "Tile width must exactly divide bitmap width"
11651162
msgstr ""
11661163

1167-
#: supervisor/shared/safe_mode.c
1168-
msgid "To exit, please reset the board without "
1169-
msgstr "Untuk keluar, silahkan reset board tanpa "
1170-
11711164
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
11721165
msgid "Too many channels in sample."
11731166
msgstr "Terlalu banyak channel dalam sampel"
@@ -1246,6 +1239,10 @@ msgstr ""
12461239
msgid "Unknown gatt error: 0x%04x"
12471240
msgstr ""
12481241

1242+
#: supervisor/shared/safe_mode.c
1243+
msgid "Unknown reason."
1244+
msgstr ""
1245+
12491246
#: ports/nrf/common-hal/_bleio/__init__.c
12501247
#, c-format
12511248
msgid "Unknown security error: 0x%04x"
@@ -1323,12 +1320,8 @@ msgstr ""
13231320
"Untuk menampilkan modul built-in silahkan ketik `help(\"modules\")`.\n"
13241321

13251322
#: supervisor/shared/safe_mode.c
1326-
#, fuzzy
1327-
msgid ""
1328-
"You are running in safe mode which means something unanticipated happened.\n"
1323+
msgid "You are in safe mode: something unanticipated happened.\n"
13291324
msgstr ""
1330-
"Anda sedang menjalankan mode aman (safe mode) yang berarti sesuatu yang "
1331-
"sangat buruk telah terjadi.\n"
13321325

13331326
#: supervisor/shared/safe_mode.c
13341327
msgid "You requested starting safe mode by "
@@ -2853,6 +2846,19 @@ msgstr ""
28532846
#~ msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
28542847
#~ msgstr "Dukungan soft device, id: 0x%08lX, pc: 0x%08l"
28552848

2849+
#, fuzzy
2850+
#~ msgid ""
2851+
#~ "The microcontroller's power dipped. Please make sure your power supply "
2852+
#~ "provides\n"
2853+
#~ "enough power for the whole circuit and press reset (after ejecting "
2854+
#~ "CIRCUITPY).\n"
2855+
#~ msgstr ""
2856+
#~ "Tegangan dari mikrokontroler turun atau mati. Pastikan sumber tegangan "
2857+
#~ "memberikan daya\n"
2858+
2859+
#~ msgid "To exit, please reset the board without "
2860+
#~ msgstr "Untuk keluar, silahkan reset board tanpa "
2861+
28562862
#~ msgid "UART(%d) does not exist"
28572863
#~ msgstr "UART(%d) tidak ada"
28582864

@@ -2870,6 +2876,14 @@ msgstr ""
28702876
#~ "Gunakan esptool untuk menghapus flash dan upload ulang Python sebagai "
28712877
#~ "gantinya"
28722878

2879+
#, fuzzy
2880+
#~ msgid ""
2881+
#~ "You are running in safe mode which means something unanticipated "
2882+
#~ "happened.\n"
2883+
#~ msgstr ""
2884+
#~ "Anda sedang menjalankan mode aman (safe mode) yang berarti sesuatu yang "
2885+
#~ "sangat buruk telah terjadi.\n"
2886+
28732887
#~ msgid "[addrinfo error %d]"
28742888
#~ msgstr "[addrinfo error %d]"
28752889

0 commit comments

Comments
 (0)