Skip to content

Report correct error with Nucleo boards #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mbed_flasher/daplink_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"The hex file offset load address is not correct.": EXIT_CODE_DAPLINK_USER_ERROR,
"The starting address for the bootloader update is wrong.": EXIT_CODE_DAPLINK_USER_ERROR,
"The starting address for the interface update is wrong.": EXIT_CODE_DAPLINK_USER_ERROR,
"The application file format is unknown and cannot be parsed and/or processed.": EXIT_CODE_DAPLINK_USER_ERROR,
# Official daplink has the "." at the end, stlink fork is missing it.
"The application file format is unknown and cannot be parsed and/or processed": EXIT_CODE_DAPLINK_USER_ERROR,

# Target error
"The interface firmware FAILED to reset/halt the target MCU": EXIT_CODE_DAPLINK_TARGET_ERROR,
Expand Down
2 changes: 2 additions & 0 deletions test/non_hardware/test_flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@ def check(reason, code):
EXIT_CODE_DAPLINK_USER_ERROR)
check("The application file format is unknown and cannot be parsed and/or processed.",
EXIT_CODE_DAPLINK_USER_ERROR)
check("The application file format is unknown and cannot be parsed and/or processed",
EXIT_CODE_DAPLINK_USER_ERROR)

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