Programming OTP header boardaddress

4 posts / 0 new
Last post
罗纳德
Offline
Last seen:4 years 4 months ago
加入:2016-03-03 15:01
Programming OTP header boardaddress

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
发现皮质-M0 r0p0,小端部。
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.

Device:
MT_dialog
Offline
Last seen:3 months 2 days ago
工作人员
加入:2015-06-08 11:34
Hi ronald,

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

罗纳德
Offline
Last seen:4 years 4 months ago
加入:2016-03-03 15:01
Thanks for the info.

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\resources\programmer\u 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断开连接。
[INFO@16-11-16 14:49:26]开始从地址47F00读取256字节。
[INFO@16-11-16 14:49:26]与COM12端口的连接已成功打开。
[INFO@16-11-16 14:49:26]已成功从端口COM12断开连接。
[INFO@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]正在检查客户代码签名。。。。
[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微调值。。。。
[INFO@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....
[信息@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\u 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:\Users\Ronald\Desktop>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 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.

MT_dialog
Offline
Last seen:3 months 2 days ago
工作人员
加入:2015-06-08 11:34
Hi ronald,

Hi ronald,

Try to run your command line as an administrator.

Thanks MT_dialog