Fire up Mbed Studio on an M1 Mac Mini, plug in ‘out of the box’ Nucleo-L433RC-P, attempt to run Blinky.
When ‘running’ the code it exits promptly (no more than a second for two) with a fault.
When ‘debugging’, same result and it never gets as far as activating any debug window or functions.
Seems to be a fault in gdbserver as in so many of the threads I see here.
Doesn’t inspire confidence in developing my own code on this platform if the basic example doesn’t work.
Debug output as follows:
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/coresight/cortex_m.py”, line 473, in halt
self.write_memory(CortexM.DHCSR, CortexM.DBGKEY | CortexM.C_DEBUGEN | CortexM.C_HALT)
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/coresight/cortex_m.py”, line 430, in write_memory
self.ap.write_memory(addr, value, transfer_size)
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/probe/stlink_probe.py”, line 241, in write_memory
self._link.write_mem32(addr, conversion.u32le_list_to_byte_list([data]), self._apsel)
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/probe/stlink/stlink.py”, line 389, in write_mem32
self._write_mem(addr, data, Commands.JTAG_WRITEMEM_32BIT, self.MAXIMUM_TRANSFER_SIZE, apsel)
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/probe/stlink/stlink.py”, line 377, in _write_mem
raise exc
pyocd.core.exceptions.TransferFaultError: Memory transfer fault (write) @ 0xe000edf0-0xe000edf7
“0001324:ERROR:gdbserver:Unexpected exception: Memory transfer fault (write) @ 0xe000edf0-0xe000edf7”
0001324:ERROR:gdbserver:Unexpected exception: Memory transfer fault (write) @ 0xe000edf0-0xe000edf7
Traceback (most recent call last):
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/gdbserver/gdbserver.py”, line 336, in run
self.target.halt()
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/coresight/cortex_m.py”, line 473, in halt
self.write_memory(CortexM.DHCSR, CortexM.DBGKEY | CortexM.C_DEBUGEN | CortexM.C_HALT)
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/coresight/cortex_m.py”, line 430, in write_memory
self.ap.write_memory(addr, value, transfer_size)
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/probe/stlink_probe.py”, line 241, in write_memory
self._link.write_mem32(addr, conversion.u32le_list_to_byte_list([data]), self._apsel)
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/probe/stlink/stlink.py”, line 389, in write_mem32
self._write_mem(addr, data, Commands.JTAG_WRITEMEM_32BIT, self.MAXIMUM_TRANSFER_SIZE, apsel)
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/probe/stlink/stlink.py”, line 377, in _write_mem
raise exc
pyocd.core.exceptions.TransferFaultError: Memory transfer fault (write) @ 0xe000edf0-0xe000edf7
Exception in thread gdb-packet-thread-port50001:
Traceback (most recent call last):
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/threading.py”, line 926, in _bootstrap_inner
self.run()
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/gdbserver/packet_io.py”, line 109, in run
data = self._abstract_socket.read()
File “/Library/Application Support/Mbed Studio/mbed-studio-tools/python/lib/python3.7/site-packages/pyocd/utility/sockets.py”, line 55, in read
return self.conn.recv(packet_size)
AttributeError: ‘NoneType’ object has no attribute ‘recv’
"0001324:ERROR:gdbserver:Unexpected exception: Memory transfer fa