First, I can program SPI Flash with SmartSnippets Gui Interface.
I tried to use SmartSnippets cli to program devices for production but it failed. My command is:
SmartSnippetsToolbox.exe -type spi -chip DA14531 -jtag
and output is:
Found SW-DP with ID 0x0BC11477
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x04770031)
Iterating through AP map to find AHB-AP to use
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
BTLE device selected.
Found SW-DP with ID 0x0BC11477
AP map detection skipped. Manually configured AP map found.
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
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
记忆燃烧失败了。
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.
Hi wpc,
Please refer toUM-B-083 SmartSnippets Toolbox User Manual (HTML)and section 29.1 to check how to use the CLI. If you are trying to program it over JTAG, the jtag_programmer.bin should be used instead of the flash_programmer.bin. Please find below an example :
The CLI will ask you to select if the device should be bootable. Please press ‘Y’ to make it bootable. The paths should be adjusted accordingly.
Thanks, PM_Dialog
Thanks, It helped a lot!