Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix: BMDA ST-Link v3 crashes #1605

Merged
merged 25 commits into from
Aug 21, 2023
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
eee669a
hosted/cli: Fixed the clang-tidy warnings on naming in cl_execute()
dragonmux Jun 21, 2023
aa30de1
target_internal: Reduced the padding requirements on the target struc…
dragonmux Jun 21, 2023
2048f8a
hosted/stlinkv2: Cleaned up the naming of stlink_adiv5_clear_error() …
dragonmux Jun 21, 2023
7b08293
hosted/stlinkv2: Added protocol-level debugging to stlink_raw_access(…
dragonmux Jun 21, 2023
7454bec
hosted/stlinkv2: Moved all the stlink_usb_error_check() output defini…
dragonmux Jun 21, 2023
4275ad7
hosted/stlinkv2: Fixed some of the error checking done with stlink_us…
dragonmux Jun 21, 2023
b56aaa4
hosted/stlinkv2: Cleaned up the WAIT response handling
dragonmux Jun 21, 2023
8ce6196
hosted/stlinkv2: Cleaned up the FAULT response handling, fixing a bug…
dragonmux Jun 21, 2023
a99ed70
hosted/stlinkv2: Reordered the checks in stlink_usb_error_check() so …
dragonmux Jun 21, 2023
928ea42
hosted/stlinkv2: Cleaned up the parity error response handling
dragonmux Jun 21, 2023
dbfd210
hosted/stlinkv2: Fixed the parity error handling in stlink_read_dp_re…
dragonmux Jun 21, 2023
325e2a6
hosted/stlinkv2: Cleaned up the general error response handling
dragonmux Jun 21, 2023
22620ec
hosted/stlinkv2_protocol: Cleaned up duplicated an unused error codes
dragonmux Jun 21, 2023
1ab2fad
hosted/stlinkv2: Reworked the AP handling to properly take into accou…
dragonmux Jun 21, 2023
2d65aae
hosted/stlinkv2: Implemented better handling for when stlink_ap_setup…
dragonmux Jun 21, 2023
bd440fd
hosted/stlinkv2: Cleaned up some variable naming in stlink_ap_setup()
dragonmux Jun 21, 2023
0333e56
hosted/stlinkv2: Cleaned up a couple more of the error definitions
dragonmux Jun 21, 2023
ede069c
hosted/stlinkv2: Improved the protocol-level debugging available from…
dragonmux Jun 21, 2023
9870cae
adiv5: Cleaned up adiv5_dp_recoverable_access(), fixing the parameter…
dragonmux Jun 21, 2023
85bb78d
hosted/platform: Improved the decoding of DP accesses
dragonmux Jun 21, 2023
587b793
hosted/stlinkv2_swd: Cleaned up how entry into SWD is done
dragonmux Jun 22, 2023
8900991
hosted/stlinkv2: Cleaned up the error handling and reporting
dragonmux Jul 30, 2023
8b499c7
hosted/stlinkv2: Cleaned up the error handling and reporting
dragonmux Jul 30, 2023
676419e
hosted/stlinkv2: Cleaned up the error handling and reporting
dragonmux Jul 30, 2023
53b161c
hosted/stlinkv2_jtag: Implemented adiv5_dp_read() for ST-Link JTAG
dragonmux Aug 21, 2023
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
Prev Previous commit
Next Next commit
hosted/stlinkv2_protocol: Cleaned up duplicated an unused error codes
  • Loading branch information
dragonmux committed Aug 20, 2023
commit 22620ec35fb20e249b8ee326088ba91105d6f71c
4 changes: 0 additions & 4 deletions src/platforms/hosted/stlinkv2_protocol.h
Original file line number Diff line number Diff line change
@@ -26,14 +26,11 @@
#include <stdbool.h>
#include "adiv5.h"

#define STLINK_SWIM_ERR_OK 0x00U
#define STLINK_SWIM_BUSY 0x01U
#define STLINK_DEBUG_ERR_OK 0x80U
#define STLINK_DEBUG_ERR_FAULT 0x81U
#define STLINK_JTAG_UNKNOWN_JTAG_CHAIN 0x04U
#define STLINK_NO_DEVICE_CONNECTED 0x05U
#define STLINK_JTAG_COMMAND_ERROR 0x08U
#define STLINK_JTAG_COMMAND_ERROR 0x08U
#define STLINK_JTAG_GET_IDCODE_ERROR 0x09U
#define STLINK_JTAG_DBG_POWER_ERROR 0x0bU
#define STLINK_ERROR_AP_WAIT 0x10U
@@ -46,7 +43,6 @@
#define STLINK_ERROR_DP_FAULT 0x15U
#define STLINK_ERROR_DP 0x16U
#define STLINK_ERROR_DP_PARITY 0x17U

#define STLINK_SWD_AP_WDATA_ERROR 0x18U
#define STLINK_SWD_AP_STICKY_ERROR 0x19U
#define STLINK_SWD_AP_STICKYORUN_ERROR 0x1aU