Connect to DA14585-00 via CLI

Learn MoreFAQsTutorials

4 posts / 0 new
Last post
flomeier
Offline
Last seen:1 year 3 months ago
Joined:2017-03-21 14:57
Connect to DA14585-00 via CLI

Hi Dialog Team,

I have a problem connecting to the DA14585.

I am using this command:

C:\DiaSemi\SmartSnippetsStudio\Toolbox>smartsnippetsToolbox.exe -type spi -chip DA14585-00 -jtag 480063775 -cmd write -file common_resources/ble_app_ota_585.hex -bootable

it works perfectly if I click on "connect" inside the smart snippets toolbox SPI flash programmer tab before I use the command mentioned above:

Launching SmartSnippets Toolbox v 4.7.3.1690
Oct 18, 2019 4:30:13 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
FPUnit: 4 code (BP) slots and 0 literal slots
Found Cortex-M0 r0p0, Little endian.
BTLE device selected.
Using default baudrate: 57600 Bd.
Successfully set SPI Flash gpios: CLK=P0_0, CS=P0_3, MISO=P0_5, MOSI=P0_6.
Read 32484 bytes from file common_resources/ble_app_ota_585.hex.
Added bootable header to image.
Started burning memory with 33628 bytes of data at address 0x00000.
Burning of block 1 (16000 bytes) completed successfully.
Burning of block 2 (16000 bytes) completed successfully.
Burning of block 3 (1628 bytes) completed successfully.
Memory burning completed successfully.

But I can't get it to work without connecting via the smart snippets toolbox SPI flash programmer tab:

Launching SmartSnippets Toolbox v 4.7.3.1690
Oct 18, 2019 4:08:22 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
FPUnit: 4 code (BP) slots and 0 literal slots
Found Cortex-M0 r0p0, Little endian.
BTLE device selected.
Using default baudrate: 57600 Bd.
Failed setting the following values to SPI Flash gpios: CLK=P0_0, CS=P0_3, MISO=P0_5, MOSI=P0_6.
Read 32484 bytes from file common_resources/ble_app_ota_585.hex.
Added bootable header to image.
Started burning memory with 33628 bytes of data at address 0x00000.
Burning of block 1 (16000 bytes) failed.
Burning of block 2 (16000 bytes) failed.
Burning of block 3 (1628 bytes) failed.
Memory burning failed.

What does it cause no not thet the values to SPI flash gpios?

Thanks for your help!

Device:
PM_Dialog
Offline
Last seen:5 hours 11 min ago
Staff
Joined:2018-02-08 11:03
Hi flomeier,

Hi flomeier,

请尝试以下命令。你应该adjust them in your folder path. First you should erase and then burn the SPI Flash.

SmartSnippetsToolbox.exe -type spi -chip DA14585-00 -clk P0_0 -cs P0_3 -miso P0_5 -mosi P0_6 -jtag 480063775 -firmware common_resources\SupportPackages\DA14585-586\toolbox_resources\common\jtag_programmer.bin -cmd erase SmartSnippetsToolbox.exe -type spi -chip DA14585-00 -clk P0_0 -cs P0_3 -miso P0_5 -mosi P0_6 -jtag 480063775 -firmware common_resources\SupportPackages\DA14585-586\toolbox_resources\common\jtag_programmer.bin -cmd write -file common_resources\SupportPackages\DA14585-586\toolbox_resources\common\ble_app_ota_585.hex -bootable

Thanks, PM_Dialog

rime
Offline
Last seen:11 hours 54 min ago
Joined:2019-12-13 09:11
I tried this and it did not

I tried this and it did not work.

/rikard

PS_Dialog
Offline
Last seen:1 month 2 weeks ago
Joined:2018-01-15 10:36
Hi,

Hi,

Will you kindly update your Smart Snippets Toolbox to the latest version and try again?

//www.xmece.com/sites/default/files/smartsnippets_t...

BR, Paolo