I am trying to programm the header BoardAddress. I found in the forum an example how to do that:
"C:\Program Files\SmartSnippets\bin\SmartSnippets.exe" -type otp -chip da14580-01 -jtag 480064923 -cmd write_field -offset 0x7F54 -data 12345678
I removed: -firmware jtag_programmer.bin from the original example.
The JTag serial is updated with our Jtag serial.
When running I get the following returned:
C:\Users\Ronald\Desktop>"C:\Program Files\SmartSnippets\bin\SmartSnippets.exe" -type otp -chip da14580-01 -jtag 480066158 -cmd write_field -offset 0x7F54 -data 12345678
nov 15, 2016 4:46:35 PM java.util.prefs.WindowsPreferences
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Found SWD-DP with ID 0x0BB11477
发现Cortex-M0 R0P0,小endian。
FPUnit: 4 code (BP) slots and 0 literal slots
选择了BTLE设备。
Using default baudrate: 57600 Bd.
Failed reading memory at address 81FE8.
Failed burning OTP field at address 0x47F54.

Hi ronald,
Have you downloaded the fw with a previous command into the 580 in order to be able to burn your device ?
If you try to use Smart Snippets in order to burn the header you will see at the console that when you hit connect Smart Snippets downloads a fw in order to do subsequent operations in the OTP. So you will have to specify a fw in the command you previously mentioned with the -firmware flag. The fw that the SmartSnippets uses is jtag_programmer.bin. You can also check the syntax of the CLI tool in the help document of Smart Snippets (open the tool and go to help and there you will find the user Guide).
Thanks MT_dialog
Thanks for the info.
I have made some progress now, but still get a warning:
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows
RegCreateKeyEx(...) returned error code 5.
使用命令线时。
I am using a pro motherboard and an DA14580 expert daughter board in Boost Mode. (My Expert JTAG and
motherboard is broken)
With SmartSnippets I am able to Program the Board Address in the OTP Header. Withou any warning or errorr. See following.
[info @ 16-11-16 14:49:23]固件文件c:\ users \ ronald \ smartsnippets \资源\ programmer_es5.bin已了
selected for downloading.
[INFO @16-11-16 14:49:23] Connection to COM12 port has successfully opened.
[INFO @16-11-16 14:49:23] Started download procedure...
[ACTION @16-11-16 14:49:24] Please press the hardware reset button on the board to start the download process.
[INFO @16-11-16 14:49:25] Reset detected
[info @ 16-11-16 14:49:26]成功与COM12端口断开了连接。
[信息@ 16-11-16 14:49:26]从地址47F00开始读取256个字节。
[信息@ 16-11-16 14:49:26]与COM12端口的连接已成功打开。
[info @ 16-11-16 14:49:26]成功与COM12端口断开了连接。
[信息@ 16-11-16 14:49:26]阅读完成。阅读256字节。
[INFO @16-11-16 14:49:26] Successfully downloaded firmware file to the board.
[INFO @16-11-16 14:49:51] Checking header log....
[INFO @16-11-16 14:49:51] Header was last burned on 2016-11-16 13:47:15.
[INFO @16-11-16 14:49:51] Checking DMA length....
[info @ 16-11-16 14:49:51]检查重新映射标志....
[info @ 16-11-16 14:49:51]检查custommer代码签名....
[INFO @16-11-16 14:49:51] Checking trim values....
[info @ 16-11-16 14:49:51]包含修剪值的文件最后更新于2013-10-01 12:00:00。
[信息@ 16-11-16 14:49:51]检查RC16MHz修剪价值....
[信息@ 16-11-16 14:49:51]检查带隙修剪值....
[INFO @16-11-16 14:49:51] Checking RFIO trim value....
[信息@ 16-11-16 14:49:51]检查LNA修剪价值....
[INFO @16-11-16 14:49:51] Checking XTAL16MHz trim value....
[INFO @16-11-16 14:49:51] Checking VCO trim value....
[INFO @16-11-16 14:49:51] Checking callibration flag....
[INFO @16-11-16 14:49:51] Checking 32KHz source selection....
[INFO @ 16-11-16 14:49:51] XTAL32KHZ已被选为32kHz源。
[info @ 16-11-16 14:49:51]检查包选择....
[INFO @16-11-16 14:49:51] WLCSP34 package has been selected.
[INFO @16-11-16 14:49:51] Connection to COM12 port has successfully opened.
[INFO @16-11-16 14:49:51] Successfully disconnected from port COM12.
[INFO @16-11-16 14:49:51] Burned 256 bytes to address 47F00.
[INFO @16-11-16 14:49:51] Started reading 256 bytes from address 47F00.
[INFO @16-11-16 14:49:51] Connection to COM12 port has successfully opened.
[INFO @16-11-16 14:49:52] Successfully disconnected from port COM12.
[info @ 16-11-16 14:49:52]阅读完成。阅读256字节。
使用SmartSnippets,我将标题文件导出到“OTP_HEADER2.HEX”。
Then I run the following batch file and still get:
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows
RegCreateKeyEx(...) returned error code 5.
But buring is succesfull. I do not like the warning.
C:\用户\ ronald \桌面> CD“C:\ Program Files \ SmartSnippets \ Bin”
C:\Program Files\SmartSnippets\bin>SmartSnippets.exe -type otp -chip DA14580-01 -com_port 12 -baudrate 57600 -
cmd write_header -file OTP_header2.hex
2016年11月16日3:45:44 PM java.util.Prefs.WindowsPreferences
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows
RegCreateKeyEx(...) returned error code 5.
Read 256 bytes from file otp_header2.hex.
Checking header log....
标题在2016-11-16 15:40:32上次烧毁。
Checking DMA length....
检查重新映射标志....
Checking trim values....
File containing trim values was last updated on 2013-10-01 12:00:00.
Checking RC16MHz trim Value....
Checking BandGap trim value....
Checking RFIO trim value....
检查LNA修剪价值....
Checking XTAL16MHz trim value....
Checking VCO trim value....
Checking callibration flag....
检查32 khz源选择…
XTAL32KHz has been selected as the 32KHz source.
检查包选择....
WLCSP34 package has been selected.
Connection to COM12 port has successfully opened.
从COM12端口成功断开连接。
Burned 256 bytes to address 47F00.
Hi ronald,
Try to run your command line as an administrator.
Thanks MT_dialog