⚠️
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.
5 posts / 0 new
Last post
hebyte_bill
Offline
Last seen:8 months 2 weeks ago
Joined:2018-05-08 04:54
DA14681-01DKWEAR suota initial flash failed

Hi everyone,
I following DA1468x SUOTA tutorial testing my DA14681-01DKWEAR, but can not initial flash.

Console output:

Using SDK from D:\DA1468x_DA15xxx_SDK_1.0.12.1078
cli_programmer from D:\DA1468x_DA15xxx_SDK_1.0.12.1078\binaries\cli_programmer
image file D:\DA1468x_DA15xxx_SDK_1.0.12.1078\projects\dk_apps\demos\pxp_reporter\DA14681-01-Release_QSPI_SUOTA\pxp_reporter.bin
boot loader D:\DA1468x_DA15xxx_SDK_1.0.12.1078\sdk\bsp\system\loaders\ble_suota_loader\DA14681-01-Release_QSPI\ble_suota_loader.bin
.......................................................................................................................
..
.. Preparing image file
..
.......................................................................................................................
Using SDK from D:\DA1468x_DA15xxx_SDK_1.0.12.1078
"D:\DA1468x_DA15xxx_SDK_1.0.12.1078\binaries\mkimage.exe" single "D:\DA1468x_DA15xxx_SDK_1.0.12.1078\projects\dk_apps\demos\pxp_reporter\DA14681-01-Release_QSPI_SUOTA\pxp_reporter.bin" "sw_version.h" "D:\DA1468x_DA15xxx_SDK_1.0.12.1078\projects\dk_apps\demos\pxp_reporter\application_image.img"
D:\DA1468x_DA15xxx_SDK_1.0.12.1078\utilities\scripts\qspi\prepare_local_ini_file.vbs(96, 3) (null): 操作已被用户取消。

.......................................................................................................................
..
.. Erasing bootloader area
..
.......................................................................................................................
failed to read configuration from C:\Users\hebyte\AppData\Local\Temp\cfg_3243.ini
cli_programmer 1.25
Copyright (c) 2015-2017 Dialog Semiconductor

.......................................................................................................................
..
.. Erasing partition table
..
.......................................................................................................................
failed to read configuration from C:\Users\hebyte\AppData\Local\Temp\cfg_3243.ini
cli_programmer 1.25
Copyright (c) 2015-2017 Dialog Semiconductor

.......................................................................................................................
..
.. Writing application image
..
.......................................................................................................................
cli_programmer 1.25
Copyright (c) 2015-2017 Dialog Semiconductor

failed to read configuration from C:\Users\hebyte\AppData\Local\Temp\cfg_3243.ini
.......................................................................................................................
..
.. Writing image header
..
.......................................................................................................................
failed to read configuration from C:\Users\hebyte\AppData\Local\Temp\cfg_3243.ini
cli_programmer 1.25
Copyright (c) 2015-2017 Dialog Semiconductor

.......................................................................................................................
..
.. Writing bootloader
..
.......................................................................................................................
.......................................................................................................................
..
.. QSPI PROGRAMMING
..
.......................................................................................................................

D:\DA1468x_DA15xxx_SDK_1.0.12.1078\utilities\scripts\qspi>"..\..\..\binaries\cli_programmer.exe" --cfg ""C:\Users\hebyte\AppData\Local\Temp\cfg_3243.ini"" --prod-id DA14681-01 gdbserver write_qspi_exec "D:\DA1468x_DA15xxx_SDK_1.0.12.1078\sdk\bsp\system\loaders\ble_suota_loader\DA14681-01-Release_QSPI\ble_suota_loader.bin"
cli_programmer 1.25
Copyright (c) 2015-2017 Dialog Semiconductor

failed to read configuration from C:\Users\hebyte\AppData\Local\Temp\cfg_3243.ini

.......................................................................................................................
..
.. FINISHED
..
.......................................................................................................................
找不到 C:\Users\hebyte\AppData\Local\Temp\cfg_3243.ini

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi hebyte_bill,

Hi hebyte_bill,

Seems that there is somekind of issue with the .ini file that has the configuration of the cli_programmer, from the D:\DA1468x_DA15xxx_SDK_1.0.12.1078\utilities\scripts\qspi\prepare_local_ini_file.vbs(96, 3) (null): 操作已被用户取消。the last Chinese sentence in your message seems to mean that the operation is cancelled by the user. So there should a prompt for you to validate when executing the script, in case you press cancel you will get the error that you mention.

Thanks MT_dialog

Attachment:
hebyte_bill
Offline
Last seen:8 months 2 weeks ago
Joined:2018-05-08 04:54
I just only click suota

Hi dialog,

I just only click suota_initial_flash_jtag_win, and do not any operation. I tried many times and sometimes work fine. Very strange question! I guess it's a bug in this prepare_local_ini_file.vbs file.

hebyte_bill
Offline
Last seen:8 months 2 weeks ago
Joined:2018-05-08 04:54
I have solved this problem by

我已经解决了这个问题,改变prepare_local_ini_file.vbs line 95 to 'cmd = "CMD /c " + sdk_root + "binaries\cli_programmer.exe" + " --save " + cfg'.

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi hebyte_bill,

Hi hebyte_bill,

When you run the script that you 've mentioned a pop up window appears and requests permission in order to run the script to generate the .ini file, as mentioned in seems that either you or the pc that you are using denied permission to run the script and the .ini file cannot be generated (at least this is was thetranslation from the message that you got and pasted on the thread). Anyway glad you find you way out, and thanks for indicating.

Thanks MT_dialog