⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8个职位/0个新职位
Last post
point85
Offline
Last seen:11 months 2 weeks ago
加入:2018-06-29 15:31
Cannot erase QSPI?

Hi,

When trying to erase the QSPI on a DA14682 I get the following output after running the erase_qspi_jtag_win command.

.......................................................................................................................
..
.. ERASE QSPI
..
.......................................................................................................................

Are you sure you want to completely erase QSPI (y/n or [ENTER] for n) ?
->是的

JlinkGDBServer path used: "C:\Program Files (x86)\SEGGER\JLink_V612i"
cli_programmer 1.25
版权所有(c)2015-2017 Dialog 雷竞技电竞平台Semiconductor

Configuration saved to C:\Users\James Brown\AppData\Local\Temp\cfg_11153.ini file.

C:\wkspaces\Dialog_Test\DA1468x_DA15xxx_SDK_1.0.14.1081\utilities\scripts\qspi>"..\..\..\binaries\cli_programmer.exe" --cfg "C:\Users\James Brown\AppData\Local\Temp\cfg_11153.ini" gdbserver chip_erase_qspi
cli_programmer 1.25
版权所有(c)2015-2017 Dialog 雷竞技电竞平台Semiconductor

未指定引导加载程序文件,使用内部uartboot.bin

done.
系统找不到指定的路径。

.......................................................................................................................
..
.. FINISHED
..
.......................................................................................................................

如果我重置主板,我的固件仍然存在于设备上。

I get a similar error when programming and the firmware does not change.

This had all been working for months. I have re-visited the project and now have this problem.

谢谢。

Device:
PM_Dialog
Offline
Last seen:3 days 22 hours ago
工作人员
加入:2018-02-08 11:03
Hi point85,

Hi point85,

请说明您是在使用我们的开发板还是有定制板?如果你有一个定制的设计,你用的是哪个QSPI闪存?你能通过UART(erase\u qspi\u serial\u win)擦除吗。

Thanks, PM_Dialog

point85
Offline
Last seen:11 months 2 weeks ago
加入:2018-06-29 15:31
Hi,

Hi,

I have been working on this all day. Still not solved it.

I have a development board, and a custom board. Both have the same problem.

I used another computer to do a fresh install of smart snippets and jLink and the dev board erases and programs fine.

Again I uninstalled smartsnippets, all segger software and drivers on the main machine. Re-installed as I did on the other machine... and again get the same problem. Dev board will not erase or program.

If I try to erase the command line finshes with done. but is then followed with "系统找不到指定的路径。“As above on my previous post.

I feel like this is a jLink driver issue.

If I review the jLink driver log I can see the following difference

…目标暂停(PC=0x07F01E8A)
Downloading 2 bytes @ address 0x50000012
Expected an decimal digit (0-9)

There are then a multitude of errors and things. The "Expected an decimal digit (0-9)" does not show in the log on the machine that works.

Any ideas? This is a big big problem......

谢谢。

PM_Dialog
Offline
Last seen:3 days 22 hours ago
工作人员
加入:2018-02-08 11:03
Hi point85

Hi point85

Could you please go to the Windows -> preferences -> Run/Debug tab of the SmartSnippets and check from the SEGGER path folder? The path folder should point into the installation folder of the JLink. What is the version of SS Studio? Additionally, can you please indicate if you are able to erase the flash via UART?

Thanks, PM_Dialog

point85
Offline
Last seen:11 months 2 weeks ago
加入:2018-06-29 15:31
Jlink path is correct : C:

Jlink path is correct : C:\Program Files (x86)\SEGGER\JLink_V612i

SS Studio V 1.6.3.918 downloaded today from the website (also tried with 2.0.12 as this was what I was previously using before todays re-install trying to fix this)

I have also re downloaded SDK and am using a fresh workspace with fresh ble_peripheral example and fresh scripts folder.

Like I say, I think something is stopping the jLink working properly on this machine.

I have tried cli_programmer from the command line with gdb server running and I see the same error "Expected an decimal digit (0-9)" where on the other machine it starts to load the .ini file.

I have attatched the jLink log files.

point85
Offline
Last seen:11 months 2 weeks ago
加入:2018-06-29 15:31
好的,那么错误“系统

好的,所以错误“系统找不到指定的路径”是由“goto:Finished”之前的行“if not”%TMPCFG%“==”del%TMPCFG%“引起的

At the end of the erase_qspi_jtag.bat and program_qspi_jtag.bat.

我可以看到临时folder that it is not creating a config file on the macine which will not work. The machine that does work has a temp file which is created and deleted while erasing/programming.

你知道为什么jLink不能创建临时文件吗?

point85
Offline
Last seen:11 months 2 weeks ago
加入:2018-06-29 15:31
Ok,

Ok,

Fixed it... for now. I think we will see this problem again so I came back to post what I found.

通过编辑和阅读所有的脚本,我设法找到了问题的文件名。其中有两个问题。

1;) Jlink无法创建所需的临时文件。

2) SS Studio couldn't delete the temp file it had created with the programmer settings.

最后。归根结底,在我的windows机器上,我的用户名中有一个空格。SS工作室以前工作过。我唯一能想到的是,我的D:驱动器上有我的temp文件夹,windows update肯定已经将它移回了默认的C:路径,其中包含一个空格。

我现在已经把我的windows temp文件夹移回了D:驱动器,没有空间,一切看起来都很好。

Dialog, maybe you would be so kind as to review the Jlink scripts used and allow them to handle spaces with the use of "" where appropriate. I fixed the .bat file and the temp deletion using this method, but cannot find the scripts for the Jlink command calls. Maybe you guys could patch these for future.

PM_Dialog
Offline
Last seen:3 days 22 hours ago
工作人员
加入:2018-02-08 11:03
Hi point85,

Hi point85,

Thanks for your indication and for you feedback. I’ll try to replicate it in my side and escalate it internally.

Thanks, PM_Dialog