0000632 D [Errno 13] Access denied (insufficient permissions) while trying to interrogate a USB device (VID=046d PID=c03f). This can probably be remedied with a udev rule. See for help. [pyusb_backend] 0000637 D [Errno 13] Access denied (insufficient permissions) while trying to interrogate a USB device (VID=046d PID=c03f). This can probably be remedied with a udev rule. See for help. [pyusb_v2_backend] 0000640 D Project directory: /home/nick/Documents/uni/S11 [session] 0000646 D STLink probe 000C00224D46501420383832 firmware version: V3J10M3 [stlink] 0000648 D Project directory: /home/nick/Documents/uni/S11 [session] 0000937 D flash algo: [code=0x254] [b1=0x260,0x660] [b2=0x660,0xa60] [stack=0x2a60; 0x2000 b] (ram=0x20000000, 0x8000 b) [flash_algo] 0000942 I Target type is stm32wl55jcix [board] 0000945 D STLink probe 000C00224D46501420383832 firmware version: V3J10M3 [stlink] 0000947 D actual SWD frequency is 1000 kHz [stlink] 0000947 D Running task load_svd [sequencer] 0001015 D Running task pre_connect [sequencer] 0001020 D Running task dp_init [sequencer] 0001025 D Running task lock_probe [sequencer] 0001031 D Running task get_probe_capabilities [sequencer] 0001036 D Running task connect [sequencer] 0001057 D Default wire protocol selected; using SWD [dap] 0001073 I DP IDR = 0x6ba02477 (v2 rev6) [dap] 0001079 D Running task clear_sticky_err [sequencer] 0001095 D Running task power_up_debug [sequencer] 0001099 D Running task check_version [sequencer] 0001099 D Running task unlock_probe [sequencer] 0001099 D Running task create_discoverer [sequencer] 0001100 D Running task discovery [sequencer] 0001100 D Running task find_aps [sequencer] 0001101 D Running task create_aps [sequencer] 0001101 D Running task create_ap.0 [sequencer] 0001102 D Using accelerated memory access interface for AHB-AP#0 [ap] 0001102 I AHB-AP#0 IDR = 0x24770011 (AHB-AP var1 rev2) [ap] 0001102 D AHB-AP#0 default HPROT=3 HNONSEC=0 [ap] 0001103 D AHB-AP#0 implemented HPROT=3 HNONSEC=0 [ap] 0001104 D Running task create_ap.1 [sequencer] 0001104 D Using accelerated memory access interface for AHB-AP#1 [ap] 0001105 I AHB-AP#1 IDR = 0x84770001 (AHB-AP var0 rev8) [ap] 0001105 D AHB-AP#1 default HPROT=3 HNONSEC=0 [ap] 0001106 E Error reading AP#1 IDR: Memory transfer fault (STLink error (17): AP fault) [discovery] Traceback (most recent call last): File "/home/nick/.local/lib/python3.10/site-packages/pyocd/coresight/discovery.py", line 162, in _create_1_ap ap = AccessPort.create(self.dp, ap_address) File "/home/nick/.local/lib/python3.10/site-packages/pyocd/coresight/ap.py", line 367, in create ap.init() File "/home/nick/.local/lib/python3.10/site-packages/pyocd/utility/concurrency.py", line 29, in _locking return func(self, *args, **kwargs) File "/home/nick/.local/lib/python3.10/site-packages/pyocd/coresight/ap.py", line 1256, in init super().init() File "/home/nick/.local/lib/python3.10/site-packages/pyocd/utility/concurrency.py", line 29, in _locking return func(self, *args, **kwargs) File "/home/nick/.local/lib/python3.10/site-packages/pyocd/coresight/ap.py", line 778, in init _init_hprot() File "/home/nick/.local/lib/python3.10/site-packages/pyocd/coresight/ap.py", line 746, in _init_hprot csw = AccessPort.read_reg(self, self._reg_offset + MEM_AP_CSW) File "/home/nick/.local/lib/python3.10/site-packages/pyocd/utility/concurrency.py", line 29, in _locking return func(self, *args, **kwargs) File "/home/nick/.local/lib/python3.10/site-packages/pyocd/coresight/ap.py", line 453, in read_reg return self.dp.read_ap(self.address.address + addr, now) File "/home/nick/.local/lib/python3.10/site-packages/pyocd/coresight/dap.py", line 875, in read_ap result_cb = self.probe.read_ap(addr, now=False) File "/home/nick/.local/lib/python3.10/site-packages/pyocd/probe/stlink_probe.py", line 207, in read_ap result = self._link.read_dap_register(apsel, addr & 0xffff) File "/home/nick/.local/lib/python3.10/site-packages/pyocd/probe/stlink/stlink.py", line 521, in read_dap_register self._check_status(response[:2]) File "/home/nick/.local/lib/python3.10/site-packages/pyocd/probe/stlink/stlink.py", line 363, in _check_status raise self._ERROR_CLASSES[status](error_message) pyocd.core.exceptions.TransferFaultError: Memory transfer fault (STLink error (17): AP fault) 0001107 D Running task find_components [sequencer] 0001107 D Running task init_ap.0 [sequencer] 0001111 I AHB-AP#0 Class 0x1 ROM table #0 @ 0xe00ff000 (designer=020:ST part=497) [rom_table] 0001114 I [0] [rom_table] 0001115 I [1] [rom_table] 0001117 I [2] [rom_table] 0001118 I [3] [rom_table] 0001119 I [4] [rom_table] 0001119 D [5] [rom_table] 0001121 I [6] [rom_table] 0001121 D Running task create_cores [sequencer] 0001121 D Creating SCS component [discovery] 0001122 D selected core #0 [soc_target] 0001123 I CPU core #0 is Cortex-M4 r0p1 [cortex_m] 0001123 D Running task set_default_reset_type [sequencer] 0001124 D Running task create_components [sequencer] 0001124 D Creating DWT component [discovery] 0001125 I 4 hardware watchpoints [dwt] 0001127 D Creating FPB component [discovery] 0001128 I 6 hardware breakpoints, 4 literal comparators [fpb] 0001128 D fpb has been disabled [fpb] 0001131 D Creating ITM component [discovery] 0001133 D Creating TPIU component [discovery] 0001134 D Running task check_for_cores [sequencer] 0001134 D Running task halt_on_connect [sequencer] 0001134 D halting core 0 [cortex_m] 0001134 D Running task post_connect [sequencer] 0001134 D Running task post_connect_hook [sequencer] 0001134 D Running task create_flash [sequencer] 0001135 D Running task notify [sequencer] 0001135 D selected core #0 [soc_target] 0001135 I Performing SW reset... [reset_cmd] 0001135 D reset, core 0, type=SW_SYSRESETREQ [cortex_m] 0001250 I Done. [reset_cmd] 0001250 D uninit session [session] 0001251 D uninit board [board] 0001255 D cannot resume: target not halted [cortex_m]