I have now tried replacing al the certificates with 2048 bit ones and I get a little further. I actually get to the point where it says Authentication successful - however no debug devices appear when I try to use MCUXpresso debugging. Dump below.
However even if it works like this it is not good in my application as I need 4096 bit keys to meet the spec.
I am wondering if its to do with the socc or cc_socu fields - I cant find anywhere that describes what these do in a debug certificate.
Thanks.
lots of mailbox accesses followed by....
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0xab7f_a15a
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0001_a5a5
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0xa56a_a7ac
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0000_0000
DEBUG:DebugMBox:DAR response: []
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0000_0004
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0000_0000
DEBUG:DebugMBox:Exit response: []
INFO:DebugMBox:Debug Authentication successful
DEBUG:pyocd.core.session:uninit session <pyocd.core.session.Session object at 0x7f3d3d57cb20>
ERROR:pyocd.core.session:probe exception during disconnect:
Traceback (most recent call last):
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/usb/core.py", line 236, in get_interface_and_endpoint
return self._ep_info[endpoint_address]
KeyError: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/pyocd/core/session.py", line 483, in close
self._probe.disconnect()
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/pyocd/probe/cmsis_dap_probe.py", line 204, in disconnect
self._link.disconnect()
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/pyocd/utility/concurrency.py", line 28, in _locking
return func(self, *args, **kwargs)
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/pyocd/probe/pydapaccess/dap_access_cmsis_dap.py", line 724, in disconnect
self._protocol.disconnect()
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/pyocd/probe/pydapaccess/cmsis_dap_core.py", line 193, in disconnect
self.interface.write(cmd)
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/pyocd/probe/pydapaccess/interface/pyusb_backend.py", line 200, in write
self.ep_out.write(data)
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/usb/core.py", line 408, in write
return self.device.write(self, data, timeout)
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/usb/core.py", line 976, in write
intf, ep = self._ctx.setup_request(self, endpoint)
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/usb/core.py", line 113, in wrapper
return f(self, *args, **kwargs)
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/usb/core.py", line 228, in setup_request
intf, ep = self.get_interface_and_endpoint(device, endpoint_address)
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/usb/core.py", line 113, in wrapper
return f(self, *args, **kwargs)
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/usb/core.py", line 238, in get_interface_and_endpoint
for intf in self.get_active_configuration(device):
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/usb/core.py", line 113, in wrapper
return f(self, *args, **kwargs)
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/usb/core.py", line 252, in get_active_configuration
bConfigurationValue=self.backend.get_configuration(self.handle)
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/usb/backend/libusb1.py", line 817, in get_configuration
_check(self.lib.libusb_get_configuration(dev_handle.handle, byref(config)))
File "/home/ajf/work/nxp/sdebug/nxp_venv/lib/python3.8/site-packages/usb/backend/libusb1.py", line 604, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 5] Input/Output Error
DEBUG:pyocd.probe.pydapaccess.interface.pyusb_backend:closing interface