程序工作下载:
C:\Program Files\ smartnippets \bin> smartnippets .exe -type booter -chip DA14580-
01 -jtag 518110536 -file "C:\Users\a1t4czz\ smartnippets \resources\jtag_program
.bin"
无法测量总IR len。TDO恒定高。
不能测量总IR len。TDO恒定高。与ID 0 < br / >发现SWD-DP x0bb11477 < br / >发现Cortex-M0 r0p0,小端字节序。
BTLE设备被选中。
BTLE设备被选中。
Using default GPIO pin Id: P1_2。
XPSR的t位是0,但应该是1。 Changed to 1.
Firmware File c:\users\a1t4czz\smartsnippets\resources\jtag_programmer.bin has b
een selected for downloading.
Cortex-M: Debugger tries to set PC to odd value. Corrected register value from 0
x000800B5 to 0x000800B4
Successfully downloaded firmware file to the board.
But trying to burn anything fails:
C:\Program Files\SmartSnippets\bin>smartsnippets.exe -type otp -chip DA14580-01
-jtag 518110536 -cmd write_field -offset 0x7F00 -data 1234A5A5
Could not measure total IR len. TDO is constant high.
Could not measure total IR len. TDO is constant high.
Found SWD-DP with ID 0x0BB11477
Found Cortex-M0 r0p0, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
BTLE device selected.
Using default baudrate: 57600 Bd.
Failed burning OTP field at address 0x47F00.
C:\Program Files\SmartSnippets\bin>smartsnippets.exe -type otp -chip DA14580-01
-jtag 518110536 -cmd write_custom_code -file "C:\svn\BLEtooth\FW\DA14580_DSPS_3.
150.2 device\dk_apps\keil_projects\sps\sps_device\out\sps_device.hex" -offset 0x
0
Could not measure total IR len. TDO is constant high.
Could not measure total IR len. TDO is constant high.
Found SWD-DP with ID 0x0BB11477
Found Cortex-M0 r0p0, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
BTLE device selected.
Using default baudrate: 57600 Bd.
Read 14208 bytes from file c:\svn\bletooth\fw\da14580_dsps_3.150.2 device\dk_app
s\keil_projects\sps\sps_device\out\sps_device.hex.
Reading OTP memory contents. Needed to check addresses that have already been bu
rned.
Started burning memory with 14520 bytes of data at address 0x40000.
Failed writing bytes at address 20000000.
OTP Memory burning failed.
Note that I do only have the SWD interface connected to a JTAG programmer. I do NOT have a UART connection. But since the SmartSnippets GUI works I am thinking that the hardware connections are ok. I have also checked the supply voltage and the programming voltage, both look ok.
Am I missing some step?
Does the "Burn" button call the "-type booter" before calling the "-type otp -cmd write_custom_code"? Do I have to call both commands?
I used the GUI Booter sidebar button just for testing the program: load the code to the memory without burning the OTP, check that it works, restart (disconnect and reconnect power and usb) and then go to the OTP Programmer sidebar button...
Thanks