⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8 posts / 0 new
Last post
dhirajp15
Offline
Last seen:2 years 2 weeks ago
加入:2016-06-08 15:26
Smart Snippets CLI

Hi Dialog,
I am using the following commands for programming SPI flash memory using Smart Snippets CL tool:
SmartSnippets.exe -type spi -clk P2_0 -cs P2_3 -miso P2_4 -mosi P2_9 -chip DA14583 -com_port 5 -gpio P1_2 -uart P0_2 -firmware C:/Users/dhiraj.patil/SmartSnippets/resources/flash_programmer.bin -cmd erase -y -nomessages 00

SmartSnippets.exe -type spi -clk P2_0 -cs P2_3 -miso P2_4 -mosi P2_9 -chip DA14583 -com_port 5 -gpio P1_2 -uart P0_2 -cmd write -file E:/phonepe/DA14583/Software/SDK/DA1458x_SDK_5.0.2.1/DA1458x_SDK/5.0.2.1/projects/target_apps/ble_examples/calculator-firmware/testing/Otp_read_write_windows/fw_multi_part_spi.bin -y -nomessages 00

It takes about 18 seconds to complete programming and I wanted to reduce the time taken . My question is does the '-cmd write ' erases the flash and then writes to it? If thats the case I will just run the second command instead of running both. And also need some suggestions in how to reduce the programming time?
Regards,
dhiraj

Device:
MT_dialog
Offline
Last seen:1 month 1 week ago
Staff
加入:2015-06-08 11:34
Hi dhirapj15,

Hi dhirapj15,

No, the write command doesn't erase the flash, you will have to erase the flash before writing your fw, regarding the time that it takes for the erase and write to complete, i dont think that there are much to do with it, in order to improve it, since you are using the UART interface. The JTAG would be faster as an option.

Thanks MT_dialog

vishnuatdialog
Offline
Last seen:7 months 3 weeks ago
加入:2017-07-25 07:44
Hello dhirajp15,

Hello dhirajp15,
Can you tell me how to open the Smart Snippets CL tool? I can't find the SmartSnippets.exe file in bin folder. If it is possible tell me how to open the CLI.

Thank you
D.Vishnu

MT_dialog
Offline
Last seen:1 month 1 week ago
Staff
加入:2015-06-08 11:34
Hi vishnuatdialog,

Hi vishnuatdialog,

The SmartSnippetsToolbox.exe file is located under the SmartSnippetsToolbox directory in your program files, just open a command line from that directory and type and follow the guidelines provided in the UM-B-083.pdf in paragraph 21 Command-line Implementation (you will be able to find the pdf from the help option of Smart Snippets tool).

Thanks MT_dialog

vishnuatdialog
Offline
Last seen:7 months 3 weeks ago
加入:2017-07-25 07:44
Hello Dialog,

Hello Dialog,
When I installed the smart snippets there is no file like smart snippets toolbox in C drive. Not in any of the drivers on my computer I can find only the smart snippets toolbox application.
This is my workspace path C:\Users\GIPL9165\workspace_SmartSnippets_Studio.
Thank you
D.Vishnu

dhirajp15
Offline
Last seen:2 years 2 weeks ago
加入:2016-06-08 15:26
Hi Vishnu ,

Hi Vishnu ,
For me the path for Smart Snippets toollbox is :
C:\DiaSemi\SmartSnippetsStudio\Toolbox
Thanks,
Regards,
Dhiraj

vishnuatdialog
Offline
Last seen:7 months 3 weeks ago
加入:2017-07-25 07:44
Hello Dhirajp15,

Hello Dhirajp15,
For me, that path is in C drive only C:\DiaSemi\SmartSnippetsStudio\Toolbox. When I open SmartSnippetsToolbox from there it is showing this message:

Feb 23, 2018 11:56:41 AM java.util.prefs.WindowsPreferences
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

Do you also get like this?
Thank you
D.Vishnu

MT_dialog
Offline
Last seen:1 month 1 week ago
Staff
加入:2015-06-08 11:34
Hi vishnuatdialog,

Hi vishnuatdialog,

I suppose that this is an issue with the installation of either the tool or the java used on your PC.

Thanks MT_dialog