SmartSnippets工具箱SPI Flash编程失败了

⚠️
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.
10 posts / 0 new
Last post
azimin
Offline
Last seen:5 months 6 days ago
Joined:2018-12-12 12:11
SmartSnippets工具箱SPI Flash编程失败了

Hello, I'm trying to burn internal flash memory over JTAG. But get an error:
[ERROR SPI Flash @19-02-28 17:51:23] Adddittional error info at JTAG address 0x7FC7C0C. (MSB first): FF FF FF F8.
[ERROR SPI Flash @19-02-28 17:51:23] Memory burning failed.

I have tried two configurations:
SPI_CLK: P2_0
SPI_EN: P2_3
SPI_DI: P2_4
SPI_DO: P2_9
and
SPI_CLK: P2_0
SPI_EN: P2_3
SPI_DI: P2_9
SPI_DO: P2_4

Device:
PM_Dialog
Offline
Last seen:57 min 48 sec ago
Staff
Joined:2018-02-08 11:03
Hi azimin,

Hi azimin,

Do you mean that you have the configurations you have mentioned in the Configuration window of SmartSnippets toolbox? Also, do you have a custom board, or you are using any of our development boards? If you try to connect over UART, could you please let me know if you are able to connect/burn successfully? Also, are you able to connect/erase the SPI flash over JTAG or your only issue is that you can not burn it?

Thanks, PM_Dialog

azimin
Offline
Last seen:5 months 6 days ago
Joined:2018-12-12 12:11
>Do you mean that you have

>Do you mean that you have the configurations you have mentioned in the Configuration window of SmartSnippets toolbox?
Yes

>同时,你有一个定制的,或者你是强的g any of our development boards?
I have a custom board

> If you try to connect over UART, could you please let me know if you are able to connect/burn successfully?
At first time I successfully connected via UART, but can't to burn or erase firmware. After this fault I cannot connect again, Toolbox is waiting to press reset button, but I don't have it.
[INFO SPI Flash @19-03-01 11:53:51] Firmware File C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_programmer.bin has been selected for downloading.
[INFO SPI Flash @19-03-01 11:53:51] Connection to COM16 port has successfully opened.
[INFO SPI Flash @19-03-01 11:53:51] Started download procedure...
[INFO Booter @19-03-01 11:53:53] Successfully disconnected from port COM16.
[INFO SPI Flash @19-03-01 11:53:53] Connection to COM16 port has successfully opened.
[INFO Booter @19-03-01 11:53:53] Successfully disconnected from port COM16.
[INFO SPI Flash @19-03-01 11:53:53] Successfully downloaded firmware file to the board.
[INFO SPI Flash @19-03-01 11:53:53] Successfully configured SPI Flash ports and pins.
[INFO SPI Flash @19-03-01 11:53:58] Started reading 32768 bytes from memory.
[INFO SPI Flash @19-03-01 11:53:58] Connection to COM16 port has successfully opened.
[INFO Booter @19-03-01 11:54:05] Successfully disconnected from port COM16.
[INFO SPI Flash @19-03-01 11:54:05] Reading has finished. Read 32768 bytes.
[INFO SPI Flash @19-03-01 11:55:08] Header records have been removed from hex file prox_reporter_586.hex.
[INFO SPI Flash @19-03-01 11:55:08] Read 29872 bytes from file prox_reporter_586.hex.
[INFO SPI Flash @19-03-01 11:55:13] Started burning memory with 31016 bytes of data at address 0x00000.
[INFO SPI Flash @19-03-01 11:55:13] Connection to COM16 port has successfully opened.
[ERROR SPI Flash @19-03-01 11:55:18] Received error message while checking whether burning was successful: FFFFFFF8.
[INFO Booter @19-03-01 11:55:18] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-01 11:55:18] Memory burning failed.
[INFO SPI Flash @19-03-01 11:55:32] Started burning memory with 31016 bytes of data at address 0x00000.
[INFO SPI Flash @19-03-01 11:55:32] Connection to COM16 port has successfully opened.
[ERROR SPI Flash @19-03-01 11:55:37] Received error message while checking whether burning was successful: FFFFFFF8.
[INFO Booter @19-03-01 11:55:37] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-01 11:55:37] Memory burning failed.
[INFO SPI Flash @19-03-01 11:55:49] Connection to COM16 port has successfully opened.
[ERROR SPI Flash @19-03-01 11:55:49] Received error message while checking whether SPI erase was successful: FFFFFFFE.
[INFO Booter @19-03-01 11:55:49] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-01 11:55:49] SPI Memory erasing failed.
[INFO SPI Flash @19-03-01 11:56:07] Firmware File C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_programmer.bin has been selected for downloading.
[INFO SPI Flash @19-03-01 11:56:08] Connection to COM16 port has successfully opened.
[INFO SPI Flash @19-03-01 11:56:08] Started download procedure...
[INFO Booter @19-03-01 11:56:09] Successfully disconnected from port COM16.
[INFO SPI Flash @19-03-01 11:56:10] Connection to COM16 port has successfully opened.
[INFO Booter @19-03-01 11:56:10] Successfully disconnected from port COM16.
[INFO SPI Flash @19-03-01 11:56:10] Successfully downloaded firmware file to the board.
[INFO SPI Flash @19-03-01 11:56:10] Successfully configured SPI Flash ports and pins.
[INFO SPI Flash @19-03-01 11:56:13] Connection to COM16 port has successfully opened.
[INFO Booter @19-03-01 11:56:13] Successfully disconnected from port COM16.
[INFO SPI Flash @19-03-01 11:56:13] SPI Memory erasing completed successfully.
[INFO SPI Flash @19-03-01 11:56:13] Reading memory to verify its contents after erase...
[INFO SPI Flash @19-03-01 11:56:13] Connection to COM16 port has successfully opened.
[ERROR SPI Flash @19-03-01 11:56:13] Received error message while reading from the board: FFFFFFFC.
[INFO Booter @19-03-01 11:56:14] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-01 11:56:14] Failed reading memory.
[INFO SPI Flash @19-03-01 11:56:14] Reading memory to refresh its contents....
[INFO SPI Flash @19-03-01 11:56:14] Connection to COM16 port has successfully opened.
[ERROR SPI Flash @19-03-01 11:56:14] Received error message while reading from the board: FFFFFFFC.
[INFO Booter @19-03-01 11:56:14] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-01 11:56:14] Failed reading memory.
[INFO SPI Flash @19-03-01 11:58:03] Started reading 32768 bytes from memory.
[INFO SPI Flash @19-03-01 11:58:03] Connection to COM16 port has successfully opened.
[ERROR SPI Flash @19-03-01 11:58:03] Received error message while reading from the board: FFFFFFFC.
[INFO Booter @19-03-01 11:58:03] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-01 11:58:03] Failed reading memory.
[INFO SPI Flash @19-03-01 11:58:06] Firmware File C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_programmer.bin has been selected for downloading.
[INFO SPI Flash @19-03-01 11:58:06] Connection to COM16 port has successfully opened.
[INFO SPI Flash @19-03-01 11:58:06] Started download procedure...
[ACTION SPI Flash @19-03-01 11:58:07] Please press the hardware reset button on the board to start the download process.
[ERROR SPI Flash @19-03-01 11:58:22] Timeout: Reset signal not detected for more than 16000 msecs.
[INFO Booter @19-03-01 11:58:22] Successfully disconnected from port COM16.
[INFO Booter @19-03-01 11:58:22] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-01 11:58:22] Failed downloading firmware file to the board.
[ERROR SPI Flash @19-03-01 11:58:22] Failed configuring SPI Flash ports and pins.
[INFO SPI Flash @19-03-01 11:58:30] Firmware File C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_programmer.bin has been selected for downloading.
[INFO SPI Flash @19-03-01 11:58:30] Connection to COM16 port has successfully opened.
[INFO SPI Flash @19-03-01 11:58:30] Started download procedure...
[ACTION SPI Flash @19-03-01 11:58:31] Please press the hardware reset button on the board to start the download process.
[ERROR SPI Flash @19-03-01 11:58:46] Timeout: Reset signal not detected for more than 16000 msecs.
[INFO Booter @19-03-01 11:58:46] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-01 11:58:46] Failed downloading firmware file to the board.
[ERROR SPI Flash @19-03-01 11:58:46] Failed configuring SPI Flash ports and pins.
[INFO SPI Flash @19-03-01 12:08:13] Firmware File C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_programmer.bin has been selected for downloading.
[INFO SPI Flash @19-03-01 12:08:13] Connection to COM16 port has successfully opened.
[INFO SPI Flash @19-03-01 12:08:13] Started download procedure...
[ACTION SPI Flash @19-03-01 12:08:14] Please press the hardware reset button on the board to start the download process.
[ERROR SPI Flash @19-03-01 12:08:29] Timeout: Reset signal not detected for more than 16000 msecs.

>Also, are you able to connect/erase the SPI flash over JTAG or your only issue is that you can not burn it?
No, I cant to erase, but connection seems okay

PM_Dialog
Offline
Last seen:57 min 48 sec ago
Staff
Joined:2018-02-08 11:03
Hi azimin,

Hi azimin,

In case you have a custom board, could you please try to download firmware into the SystemRAM through Keil IDE? The reason that I suggest you that is to make sure that your board is fully functional, so I would suggest you to use the ble_app_bearbone example of the SDK, compile it for DA14586 and the download the firmware into SysRAM? Are you able to detect your device from a BLE mobile application? Also you could use the power profiler of SmartSnnippets toolbox to make sure that your device is advertising.

Thanks, PM_Dialog

azimin
Offline
Last seen:5 months 6 days ago
Joined:2018-12-12 12:11
Yes, my board is working with

Yes, my board is working with Keil IDE and the code is running from RAM. I can see my device with mobile app

PM_Dialog
Offline
Last seen:57 min 48 sec ago
Staff
Joined:2018-02-08 11:03
Hi azimin,

Hi azimin,

The most possible reason why you are not able to connect and burn the SPI flash is why you are not have a reset circuit to your custom board. The SPI flash configuration from the SmartSnippets toolbox are correct and according to DA14586 datasheet. In all reference designs we have a reset button, when trying to connect the user can reset the board in order to download the flas_programmer in case of UART or the jtag_programmer in case of jtag. The smart snippets does not support flash functionalities, so the SDK includes the flash programmer project which is under 6.0.10.511\utilities\flash_programmer. If you check there are 2 output on from uart and one from jtag. When you are connected to smart snippets and press reset, you download one of the two binaries. Let me ask you something. Which version of JTAG are you using?

Thanks, PM_Dialog

azimin
Offline
Last seen:5 months 6 days ago
Joined:2018-12-12 12:11
Hello,

Hello,

Finally I made a board with reset circuit. I reset the chip and press connect button after.

In case of J-link I got this log:

[INFO SPI Flash @19-03-12 14:47:16] Found SW-DP with ID 0x0BB11477
[INFO SPI Flash @19-03-12 14:47:16] Using pre-configured AP[0] as AHB-AP to communicate with core
[INFO SPI Flash @19-03-12 14:47:16] AP-IDR: 0x04770021, Type: AHB-AP
[INFO SPI Flash @19-03-12 14:47:16] AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
[INFO SPI Flash @19-03-12 14:47:16] Found Cortex-M0 r0p0, Little endian.
(信息SPI Flash @19-03-12 14:47:16] FPUnit: 4的代码(BP) slots and 0 literal slots
[INFO SPI Flash @19-03-12 14:47:16] CoreSight components:
[INFO SPI Flash @19-03-12 14:47:16] ROMTbl[0] @ E00FF000
[INFO SPI Flash @19-03-12 14:47:16] ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
[INFO SPI Flash @19-03-12 14:47:16] ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
[INFO SPI Flash @19-03-12 14:47:16] ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
[INFO SPI Flash @19-03-12 14:47:16] Firmware File C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/jtag_programmer.bin has been selected for downloading.
[INFO SPI Flash @19-03-12 14:47:16] Successfully downloaded firmware file to the board.
[INFO SPI Flash @19-03-12 14:47:16] Successfully configured SPI Flash ports and pins.
[INFO SPI Flash @19-03-12 14:47:19] Started burning memory with 31016 bytes of data at address 0x00000.
[ERROR SPI Flash @19-03-12 14:47:29] Memory burning failed.

In case of UART I got this:

[INFO SPI Flash @19-03-12 14:44:25] Firmware File C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_programmer.bin has been selected for downloading.
[INFO SPI Flash @19-03-12 14:44:26] Connection to COM16 port has successfully opened.
[INFO SPI Flash @19-03-12 14:44:26] Started download procedure...
(信息橄榄球员@19-03-12 14:44:27]成功盘onnected from port COM16.
[INFO SPI Flash @19-03-12 14:44:28] Connection to COM16 port has successfully opened.
[INFO Booter @19-03-12 14:44:28] Successfully disconnected from port COM16.
[INFO SPI Flash @19-03-12 14:44:28] Successfully downloaded firmware file to the board.
[INFO SPI Flash @19-03-12 14:44:28] Successfully configured SPI Flash ports and pins.
[INFO SPI Flash @19-03-12 14:44:37] Started burning memory with 31016 bytes of data at address 0x00000.
[INFO SPI Flash @19-03-12 14:44:37] Connection to COM16 port has successfully opened.
[ERROR SPI Flash @19-03-12 14:44:53] Timeout while waiting to receive the most significant byte of packet length (10000 msecs)
[INFO Booter @19-03-12 14:44:53] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-12 14:44:53] Memory burning failed.

Or this:

[INFO SPI Flash @19-03-12 15:26:28] Firmware File C:\DiaSemi\DA14585_SDK\6.0.10.511\config\toolbox_resources/common/flash_programmer.bin has been selected for downloading.
[INFO SPI Flash @19-03-12 15:26:29] Connection to COM16 port has successfully opened.
[INFO SPI Flash @19-03-12 15:26:29] Started download procedure...
[INFO Booter @19-03-12 15:26:30] Successfully disconnected from port COM16.
[INFO SPI Flash @19-03-12 15:26:31] Connection to COM16 port has successfully opened.
[INFO Booter @19-03-12 15:26:31] Successfully disconnected from port COM16.
[INFO SPI Flash @19-03-12 15:26:31] Successfully downloaded firmware file to the board.
[INFO SPI Flash @19-03-12 15:26:31] Successfully configured SPI Flash ports and pins.
[INFO SPI Flash @19-03-12 15:27:24] Started reading 32768 bytes from memory.
[INFO SPI Flash @19-03-12 15:27:24] Connection to COM16 port has successfully opened.
[INFO Booter @19-03-12 15:27:31] Successfully disconnected from port COM16.
[INFO SPI Flash @19-03-12 15:27:31] Reading has finished. Read 32768 bytes.
[INFO SPI Flash @19-03-12 15:27:35] Started burning memory with 31016 bytes of data at address 0x00000.
[INFO SPI Flash @19-03-12 15:27:35] Connection to COM16 port has successfully opened.
[ERROR SPI Flash @19-03-12 15:27:41] Received error message while checking whether burning was successful: FFFFFFF8.
[INFO Booter @19-03-12 15:27:41] Successfully disconnected from port COM16.
[ERROR SPI Flash @19-03-12 15:27:41] Memory burning failed.

I'm using J-Link V6.42c

With Keil runtime debugging the board works

PM_Dialog
Offline
Last seen:57 min 48 sec ago
Staff
Joined:2018-02-08 11:03
Hi azimin,

Hi azimin,

If I understood correctly, you can connect from the flash programmer, but you are not able to burn the SPI flash? Which SPI flash are you using into your custom board? Also, is it empty? If not, are you able to erase it?

Thanks, PM_Dialog

azimin
Offline
Last seen:5 months 6 days ago
Joined:2018-12-12 12:11
Hello, I'm using internal

Hello, I'm using internal flash memory. Finally I found the problem - I forgot to connect VCC_FLASH. No it works. Thank you for your efforts.

PM_Dialog
Offline
Last seen:57 min 48 sec ago
Staff
Joined:2018-02-08 11:03
Hi azimin,

Hi azimin,

Since you haven’t the VCC_FLASH connected you wouldn’t be able to access the internal SPI Flash. Glad that you figured your issue out. Cheers!

Thanks, PM_Dialog