我尝试使用SmartSnippets cli为生产设备编程,但它失败了。我的命令是:
SmartSnippetsToolbox.exe -type spi -chip DA14531 -jtag <mySerialNumber>-cmd write -file <myfile>-max 0x400000 -firmware "C:\Program Files\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.14\common_resources\SupportPackages\DA1453x\toolbox_resources\common\flash_programmer_531.bin" -bootable
and output is:
Found SW-DP with ID 0x0BC11477
扫描AP map找到所有可用的AP
AP[1]:
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID寄存器:0x410CC601通过迭代AP map找到AHB-AP使用
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID寄存器:0x410CC601实现者代码:0x41 (ARM)
Found Cortex-M0 r0p1, Little end。
FPUnit: 4个代码(BP)槽和0个文字槽
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
BTLE device selected。
发现ID为0x0BC11477的SW-DP
AP映射检测跳过。发现手动配置的AP地图。
AP[0]: AHB-AP (IDR: Not set)
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410CC601 Implementer code: 0x41 (ARM)
Found Cortex-M0 r0p1, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Firmware File C:\Program Files\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.14\common_resources\SupportPackages\DA1453x\toolbox_resources\common\flash_programmer_531.bin has been selected for downloading.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Successfully downloaded firmware file to the board.
Using default baudrate: 115200 Bd.
Failed setting the following values to SPI Flash gpios: CLK=P0_4, CS=P0_1, MISO=P0_3, MOSI=P0_0.
Read 28232 bytes from file <myFile>.
Added bootable header to image.
Started burning memory with 28344 bytes of data at address 0x00000.
Failed configuring SPI ports and pins.
Fail write 16384 bytes at offset 0x00
Memory burning failed.
The default SPI port configuration matches my hardware so I didn't explicitly specify them.
And I didn't hear the beep when downloading frimware.