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
Found Cortex-M0 r0p0, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
BTLE device selected.
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.
When using the commandline.
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] Firmware File C:\Users\Ronald\SmartSnippets\resources\programmer_ES5.bin has been
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] Successfully disconnected from port COM12.
[INFO @16-11-16 14:49:26] Started reading 256 bytes from address 47F00.
[INFO @16-11-16 14:49:26] Connection to COM12 port has successfully opened.
[INFO @16-11-16 14:49:26] Successfully disconnected from port COM12.
[INFO @16-11-16 14:49:26] Reading is complete. Read 256 bytes.
[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] Checking remapping flag....
[INFO @16-11-16 14:49:51] Checking custommer code signature....
[INFO @16-11-16 14:49:51] Checking trim values....
[INFO @16-11-16 14:49:51] File containing trim values was last updated on 2013-10-01 12:00:00.
[INFO @16-11-16 14:49:51] Checking RC16MHz trim Value....
[INFO @16-11-16 14:49:51] Checking BandGap trim value....
[INFO @16-11-16 14:49:51] Checking RFIO trim value....
[INFO @16-11-16 14:49:51] Checking LNA trim value....
[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 has been selected as the 32KHz source.
[INFO @16-11-16 14:49:51] Checking package selection....
[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] Reading is complete. Read 256 bytes.
With SmartSnippets I exported the header file to “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:\Users\Ronald\桌面> cd“C: \ Program Files \聪明Snippets\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
nov 16, 2016 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....
Header was last burned on 2016-11-16 15:40:32.
Checking DMA length....
Checking remapping flag....
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....
Checking LNA trim value....
Checking XTAL16MHz trim value....
Checking VCO trim value....
Checking callibration flag....
检查32 khz源选择…
XTAL32KHz has been selected as the 32KHz source.
Checking package selection....
WLCSP34 package has been selected.
Connection to COM12 port has successfully opened.
Successfully disconnected from port COM12.
Burned 256 bytes to address 47F00.
Hi ronald,
Try to run your command line as an administrator.
Thanks MT_dialog