我终于克服了创建调试证书并配置芯片接受它的所有障碍。
但是,当我最终使用 nxpdebugmbox 建立链接时,出现以下错误
ERROR:DebugMBox:Start Debug Mailbox failed!
Device expects parameters of different length we can provide!
DEBUG:pyocd.core.session:uninit session
libusb: error [_open_sysfs_attr] open /sys/bus/usb/devices/yu/bConfigurationValue failed ret=-1 errno=2
Segmentation fault我需要在我的应用程序中使用 4096 位密钥,根据应用说明 AN13037,1.1 版支持此功能。的协议。
“参数”是指密钥长度还是其他内容的错误消息?
完整的成绩单如下。
注意:这些是测试密钥和凭据,不是我将在产品中使用的那些
注意:路径模糊的隐私
(nxp_venv) xxx:~/work/nxp/sdebug$ sudo xxx/nxp_venv/bin/nxpdebugmbox -i pyocd -p 1.1 auth -b 0 -c xxx/keys/dck_rsa_4096.dc -k xxx/keys/dck_rsa_4096.pem
INFO:DebugMBox:Starting Debug Authentication
DEBUG:pypemicro.pemicro:Opened PEMicro library: xxx/nxp_venv/lib/python3.8/site-packages/pypemicro/libs/Linux/unitacmp-64.so
# Interface Id Description
----------------------------------------------------------------------------
0 PyOCD DTAXBQCQ NXP Semiconductors LPC-LINK2 CMSIS-DAP V5.224
DEBUG:spsdk.debuggers.debug_probe_pyocd:The SPSDK PyOCD Interface has been initialized
DEBUG:pyocd.core.session:Project directory: xxx
DEBUG:pyocd.probe.pydapaccess.dap_access_cmsis_dap:CMSIS-DAP probe DTAXBQCQ firmware version: 1.10
DEBUG:pyocd.utility.sequencer:Running task pre_connect
DEBUG:pyocd.utility.sequencer:Running task dp_init
DEBUG:pyocd.utility.sequencer:Running task get_probe_capabilities
DEBUG:pyocd.utility.sequencer:Running task connect
DEBUG:pyocd.coresight.dap:Default wire protocol selected; using SWD
DEBUG:pyocd.probe.swj:Sending deprecated SWJ sequence to select SWD
INFO:pyocd.coresight.dap:DP IDR = 0x6ba02477 (v2 rev6)
DEBUG:pyocd.utility.sequencer:Running task clear_sticky_err
DEBUG:pyocd.utility.sequencer:Running task power_up_debug
DEBUG:pyocd.utility.sequencer:Running task check_version
DEBUG:pyocd.utility.sequencer:Running task create_discoverer
DEBUG:pyocd.utility.sequencer:Running task discovery
DEBUG:pyocd.utility.sequencer:Running task find_aps
DEBUG:pyocd.utility.sequencer:Running task create_aps
DEBUG:pyocd.utility.sequencer:Running task create_ap.2
INFO:pyocd.coresight.ap:AP#2 IDR = 0x002a0000 (AP var0 rev0)
DEBUG:pyocd.utility.sequencer:Running task find_components
DEBUG:pyocd.utility.sequencer:Running task create_cores
DEBUG:pyocd.utility.sequencer:Running task halt_on_connect
DEBUG:pyocd.utility.sequencer:Running task post_connect
DEBUG:pyocd.utility.sequencer:Running task post_connect_hook
DEBUG:pyocd.utility.sequencer:Running task notify
INFO:spsdk.debuggers.debug_probe_pyocd:PyOCD connected via LPC-LINK2 CMSIS-DAP V5.224 probe.
DEBUG:spsdk.debuggers.debug_probe_pyocd:Found debug mailbox AP#2
WARNING:spsdk.debuggers.debug_probe_pyocd:The memory interface not found - probably locked device
DEBUG:spsdk.dat.debug_mailbox:Reset mode: True
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0000_0010
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x801a_0000
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x001a_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0001_0001
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0019_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0000_0001
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0018_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0000_0000
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0017_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0000_0000
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0016_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0000_0000
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0015_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0000_0000
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0014_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0000_000f
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0013_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0xdbf0_57e8
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0012_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0d7d_32db
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0011_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x94a3_6437
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0010_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0xe47e_2178
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x000f_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0xde21_dafc
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x000e_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0xfb09_6155
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x000d_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0xcd57_4fe9
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x000c_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0xf8e6_0822
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x000b_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0000_00c0
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x000a_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0000_00c0
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0009_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x0000_0000
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0008_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0xa0f0_c949
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0007_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x567e_122d
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0006_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x8f56_6802
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0005_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0xf916_a89d
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0004_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0xbe16_55e1
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0003_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0xefdd_39e2
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0002_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0xd0cd_cbcd
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0001_a5a5
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0xc152_b408
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x0000_a5a5
DEBUG:DebugMBox:DAC:
Version : 1.1
SOCC : 1
UUID : 00000000000000000000000000000000
CC_VU : 0
ROTID_rkh_revocation : 0000000F
ROTID_rkth_hash : e857f0dbdb327d0d3764a39478217ee4fcda21de556109fbe94f57cd2208e6f8
CC_soc_pinned : 000000C0
CC_soc_default : 000000C0
Challenge : 49c9f0a02d127e560268568f9da816f9e15516bee239ddefcdcbcdd008b452c1
DEBUG:DebugMBox:DAR:
DAC:
Version : 1.1
SOCC : 1
UUID : 00000000000000000000000000000000
CC_VU : 0
ROTID_rkh_revocation : 0000000F
ROTID_rkth_hash : e857f0dbdb327d0d3764a39478217ee4fcda21de556109fbe94f57cd2208e6f8
CC_soc_pinned : 000000C0
CC_soc_default : 000000C0
Challenge : 49c9f0a02d127e560268568f9da816f9e15516bee239ddefcdcbcdd008b452c1
DC:
Version : 1.0
SOCC : 1
UUID : 00000000000000000000000000000000
CC_SOCC : 0x3ff
CC_VU : 0x0
BEACON : 0
Authentication Beacon: 0
DEBUG:spsdk.dat.debug_mailbox:<- spin_write: 0x016c_0011
DEBUG:spsdk.dat.debug_mailbox:-> spin_read: 0x022c_a5a5
ERROR:DebugMBox:Start Debug Mailbox failed!
Device expects parameters of different length we can provide!
DEBUG:pyocd.core.session:uninit session
libusb: error [_open_sysfs_attr] open /sys/bus/usb/devices/yu/bConfigurationValue failed ret=-1 errno=2
Segmentation fault