Skip to content

Commit 39d27a4

Browse files
author
Juho Hovila
authored
Nucleo specific FAIL.TXT handling (#155)
1 parent 6ac897b commit 39d27a4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

mbed_flasher/daplink_errors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"The hex file offset load address is not correct.": EXIT_CODE_DAPLINK_USER_ERROR,
4444
"The starting address for the bootloader update is wrong.": EXIT_CODE_DAPLINK_USER_ERROR,
4545
"The starting address for the interface update is wrong.": EXIT_CODE_DAPLINK_USER_ERROR,
46-
"The application file format is unknown and cannot be parsed and/or processed.": EXIT_CODE_DAPLINK_USER_ERROR,
46+
# Official daplink has the "." at the end, stlink fork is missing it.
47+
"The application file format is unknown and cannot be parsed and/or processed": EXIT_CODE_DAPLINK_USER_ERROR,
4748

4849
# Target error
4950
"The interface firmware FAILED to reset/halt the target MCU": EXIT_CODE_DAPLINK_TARGET_ERROR,

test/non_hardware/test_flash.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ def check(reason, code):
372372
EXIT_CODE_DAPLINK_USER_ERROR)
373373
check("The application file format is unknown and cannot be parsed and/or processed.",
374374
EXIT_CODE_DAPLINK_USER_ERROR)
375+
check("The application file format is unknown and cannot be parsed and/or processed",
376+
EXIT_CODE_DAPLINK_USER_ERROR)
375377

376378
check("The interface firmware FAILED to reset/halt the target MCU",
377379
EXIT_CODE_DAPLINK_TARGET_ERROR)

0 commit comments

Comments
 (0)