Learn MoreFAQsTutorials

8 posts / 0 new
Last post
point85
Offline
Last seen:7 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) ?
->y

JlinkGDBServer path used: "C:\Program Files (x86)\SEGGER\JLink_V612i"
cli_programmer 1.25
Copyright (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
Copyright (c) 2015-2017 Dialog Semiconductor

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

done.
The system cannot find the path specified.

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

If I reset the board my firmware still exists on the device.

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.

Thanks.

Device:
PM_Dialog
Offline
Last seen:1 week 4 days ago
工作人员
加入:2018-02-08 11:03
Hi point85,

Hi point85,

Can you please indicate if you are using any of our Development Boards or you have a custom board? In case you have a custom design, which QSPI flash are you using? Are you able to erase via UART (erase_qspi_serial_win).

Thanks, PM_Dialog

point85
Offline
Last seen:7 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 "The system cannot find the path specified."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

...Target halted (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......

Thanks.

PM_Dialog
Offline
Last seen:1 week 4 days 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:7 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:7 months 2 weeks ago
加入:2018-06-29 15:31
OK so the error "The system

OK so the error "The system cannot find the path specified" is caused by the line "if not "%TMPCFG%"=="" del %TMPCFG%" before the "goto :Finished"

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.

Any ideas why jLink would not be able to create the temp file?

point85
Offline
Last seen:7 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.

By editing and reading through all of the scripts I managed to locate the problem down to filenames. Of which there were two problems.

1;) Jlink couldn't create the temp file it needs.

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

Finally. It came down to having a space in my user name on my windows machine. SS Studio had worked before. The only thing I can think is that I had my temp folder on my D: drive and windows update must have moved it back to my default C: path which contains a space.

I have now moved my windows temp folder back to the D: drive without a space and all seems well.

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:1 week 4 days 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