⚠️
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. 我们将在未来几天内修复bug/优化搜索和标记。
16 posts / 0 new
最后一篇文章
Rajapurerohit
Offline
最后一次见到:8 months 3 weeks ago
已加入:2017-04-20 09:17
SPI flash DA14583

Hello Dialog_Support,

I have designed my custom board using DA14583 chip.
To download the .Hex file to custom board, i have used the following pin configuration
SPI_CLK(P2_0)
SPI\ U DO(P2\ U 4)
SPI_EN(P2_3)
SPI_DI(P2_9)
RST公司
VCC_Flash
接地
我已经删除了所有(J5)跳线从主板,我已经连接了自定义板与主板使用上述定义的各自引脚。

Now i am downloading .Hex file using Smartsnippest studio by selecting option UART/SPI.
当我点击连接按钮时,我得到如下日志:
SPI Flash @17-10-26 09:30:30] Please press the hardware reset button on the board to start the download process.

After hitting RESET button i am getting error as,
[错误SPI闪烁@17-10-26 09:34:12]超时:超过16000毫秒未检测到重置信号。
[INFO Booter @17-10-26 09:34:12] Successfully disconnected from port COM6.
[错误SPI Flash@17-10-26 09:34:12]无法将固件文件下载到主板。
[错误SPI闪存@17-10-26 09:34:12]配置SPI闪存端口和引脚失败。

Please help me to resolve my issue.

Thanks and Regards
Rohit

Keywords:
Device:
MT\u对话框
Offline
最后一次见到:2 months 6 days ago
工作人员
已加入:2015-06-08 11:34
你好Rajapurerohit,

你好Rajapurerohit,

由于您试图通过UART接口连接,因此还必须连接正在使用的583上的UART管脚,因此智能代码段工具默认使用P04和P05管脚,因此您必须将这些管脚连接到UART接口。当您点击“连接”按钮,智能代码段要求重置时,点击重置,这样引导加载程序将开始运行。该工具将拾取表示UART引导部分的0x02,并将认为按下了重置按钮。

谢谢你的对话

Rajapurerohit
Offline
最后一次见到:8 months 3 weeks ago
已加入:2017-04-20 09:17
Hello MT_dialog,

Hello MT_dialog,

谢谢你的回复。
I have tried the same using UART pins , still my reset pin is not detecting and getting same error message.
请帮我解决这个问题。
If you have SPI_Flash programming procedure. please share the same

Thanks and Regards
Rohit

MT\u对话框
Offline
最后一次见到:2 months 6 days ago
工作人员
已加入:2015-06-08 11:34
你好Rajapurerohit,

你好Rajapurerohit,

If you connect the UART pins to a serial terminal, do you see the device bootloader executing ?

The procedure in programming the flash on the 583 of a pro kit is the following:

  • 连接P04和P05,以便将580的串行端口连接到FTDI。
  • Hit the connect on Smart Snippets.
  • 工具提示后,立即按电路板上的重置按钮。

谢谢你的对话

Rajapurerohit
Offline
最后一次见到:8 months 3 weeks ago
已加入:2017-04-20 09:17
谢谢你的回复。

谢谢你的回复。

Please find the attached screenshot of smartsnippets.
I have tried all the suggestion mentioned still getting same error. Not able to flash my custom board.

Thanks and Regards
Rohit

附件:
MT\u对话框
Offline
最后一次见到:2 months 6 days ago
工作人员
已加入:2015-06-08 11:34
你好Rajapurerohit,

你好Rajapurerohit,

如果您将设备连接到终端,您是否看到引导加载程序正在执行?通常,如果引导加载程序正在执行,您应该在终端上看到垃圾,或者您可以使用逻辑分析器来检查这一点。请验证一旦您插入自定义板上的电源,设备是否正在运行,引导加载程序是否正在执行。

谢谢你的对话

Rajapurerohit
Offline
最后一次见到:8 months 3 weeks ago
已加入:2017-04-20 09:17
谢谢你的回复,

谢谢你的回复,

i am able detect my RESET pin, but after all successful connection and all i am still getting these following error.

[INFO SPI Flash Programmer @17-11-03 12:53:15] Firmware File F:\DiaSemi\SmartSnippetsStudio\Toolbox\common_resources\flash_programmer.bin has been selected for downloading.
[INFO SPI Flash Programmer @17-11-03 12:53:15] Connection to COM6 port has successfully opened.
[INFO SPI Flash Programmer@17-11-03 12:53:15]开始下载程序。。。
[ACTION SPI Flash Programmer@17-11-03 12:53:16]请按主板上的硬件重置按钮开始下载过程。
[INFO SPI Flash Programmer@17-11-03 12:53:17]检测到复位
[INFO Booter@17-11-03 12:53:18]已成功从端口COM6断开连接。
[INFO SPI Flash Programmer @17-11-03 12:53:19] Connection to COM6 port has successfully opened.
[INFO Booter @17-11-03 12:53:19] Successfully disconnected from port COM6.
[INFO SPI Flash Programmer @17-11-03 12:53:19] Successfully downloaded firmware file to the board.
[INFO SPI Flash Programmer @17-11-03 12:53:19] Successfully configured SPI Flash ports and pins.
[INFO SPI Flash Programmer @17-11-03 12:53:33] Connection to COM6 port has successfully opened.
[INFO Booter@17-11-03 12:53:33]已成功从端口COM6断开连接。
[INFO SPI Flash Programmer @17-11-03 12:53:33] SPI Memory erasing completed successfully.
[INFO SPI Flash Programmer@17-11-03 12:53:33]读取内存以验证擦除后的内容。。。
[INFO SPI Flash Programmer @17-11-03 12:53:33] Connection to COM6 port has successfully opened.
[INFO Booter@17-11-03 12:53:33]已成功从端口COM6断开连接。
[ERROR SPI Flash Programmer @17-11-03 12:53:33] Verification failed at address 0x00
[INFO SPI Flash Programmer @17-11-03 12:53:33] Reading memory to refresh memory contents....
[INFO SPI Flash Programmer @17-11-03 12:53:33] Connection to COM6 port has successfully opened.
[INFO Booter@17-11-03 12:53:33]已成功从端口COM6断开连接。
[INFO SPI Flash Programmer @17-11-03 12:53:33] Reading has finished. Read 32768 bytes.
[INFO SPI Flash Programmer @17-11-03 12:53:52] Started burning memory with 25064 bytes of data at address 0x00000.
[INFO SPI Flash Programmer@17-11-03 12:53:52]与COM6端口的连接已成功打开。
[INFO Booter@17-11-03 12:53:59]已成功从端口COM6断开连接。
[INFO SPI Flash Programmer @17-11-03 12:53:59] Memory burning completed successfully.
[INFO SPI Flash Programmer@17-11-03 12:53:59]读取内存以验证烧录后的SPI闪存内容。。。
[INFO SPI Flash Programmer@17-11-03 12:53:59]与COM6端口的连接已成功打开。
[INFO Booter@17-11-03 12:54:06]已成功断开与端口COM6的连接。
[ERROR SPI Flash Programmer @17-11-03 12:54:06] SPI FLash memory verification failed. Error at address 0x00

请帮我解决这个问题。First i want to try storing code in flash. and then going for OTP programming.
Urgent help need.

Thanks and Regards
Rohit

MT\u对话框
Offline
最后一次见到:2 months 6 days ago
工作人员
已加入:2015-06-08 11:34
你好Rajapurerohit,

你好Rajapurerohit,

I am not able to replicate the issue on my side, i suppose that the code is burned on the SPI flash, and for some reason the verification that that the Smart Snippets does when reading back the data fails. Does the device runs the fw after you reset the board, or are you able to track any corruption on the fw at the specific address when you read back the fw from the flash (in order to check if indeed Smart Snippets is right regarding the verification of your flash)? Regarding the OTP programming, as mentioned on a previous post since this is a 583 you can burn on the OTP only an advanced bootloaderhttps://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...

谢谢你的对话

Rajapurerohit
Offline
最后一次见到:8 months 3 weeks ago
已加入:2017-04-20 09:17
Hi MT_dialog,

Hi MT_dialog,

No, i am not able to find anything wrong in fw.
同样的固件,我能够加载使用DA14583子板(SPI\ U闪存)没有任何错误。
but if test the same with custom board i am getting error.
请帮我解决这个问题。
i referred the some of the post from forum but couldn't find anything related to my error.

Thanks and Regards
Rohit

MT\u对话框
Offline
最后一次见到:2 months 6 days ago
工作人员
已加入:2015-06-08 11:34
你好Rajapurerohit,

你好Rajapurerohit,

那么很可能是您的自定义板硬件故障,或者FTDI和自定义板之间的连接有问题,甚至您将自定义板连接到pro板FTDI的电缆也有问题。尽管从您所附的日志中,我可以看到Smart Snippets的日志报告([INFO SPI Flash Programmer@17-11-03 12:53:59]Memory burning completed successfully.)这意味着Flash中应该有数据,并且该工具在验证过程中提示错误,所以我想应该烧掉闪光灯,闪光灯里应该有数据。我假设您使用的是“Burn&Verify”选项,如果您只使用“Burn”选项,那么验证将被提交到哪里呢?

谢谢你的对话

Rajapurerohit
Offline
最后一次见到:8 months 3 weeks ago
已加入:2017-04-20 09:17
谢谢你的回复,

谢谢你的回复,
I have checked the connection once again. Everything seems correct.
我还尝试使用另一个自定义板与相同的连接仍然得到相同的错误。
And i have just tried using Burn option i am getting no response.

I have followed the bellowed different cases to download the .hex
CASE 1:
1.所选UART/SPI选项
2. Brows the .hex file
3. then hit connect button
4.硬件复位
5.然后我尝试了ERASE和ERASE两种方法,得到的错误日志是,
[INFO SPI Flash Programmer@17-11-03 12:53:59]与COM6端口的连接已成功打开。
[INFO Booter@17-11-03 12:54:06]已成功断开与端口COM6的连接。
[ERROR SPI Flash Programmer @17-11-03 12:54:06] SPI FLash memory verification failed. Error at address 0x00

CASE 2:
as per your suggestion hitting only BURN option
1.所选UART/SPI选项
2. Brows the .hex file
3. then hit connect button
4.硬件复位
5.然后点击烧录选项
i got the log for this case:
[INFO SPI Flash Programmer @17-11-08 12:03:48] Header records have been removed from hex file bletracker.hex.
[INFO SPI Flash Programmer @17-11-08 12:03:48] Read 24744 bytes from file bletracker.hex.
[INFO SPI Flash Programmer @17-11-08 12:03:51] Firmware File F:\DiaSemi\SmartSnippetsStudio\Toolbox\common_resources\flash_programmer.bin has been selected for downloading.
(信息SPI Flash程序员@17-11-08 12:03:51)反对nection to COM6 port has successfully opened.
[INFO SPI Flash Programmer @17-11-08 12:03:51] Started download procedure...
[ACTION SPI Flash Programmer @17-11-08 12:03:52] Please press the hardware reset button on the board to start the download process.
[INFO SPI Flash Programmer @17-11-08 12:03:53] Reset detected
[INFO Booter @17-11-08 12:03:55] Successfully disconnected from port COM6.
[INFO SPI Flash Programmer@17-11-08 12:03:55]与COM6端口的连接已成功打开。
[INFO Booter @17-11-08 12:03:55] Successfully disconnected from port COM6.
[INFO SPI Flash Programmer @17-11-08 12:03:55] Successfully downloaded firmware file to the board.
[INFO SPI Flash Programmer @17-11-08 12:03:55] Successfully configured SPI Flash ports and pins.
[INFO SPI Flash Programmer@17-11-08 12:03:57]开始烧录地址0x00000处25064字节数据的内存。
[INFO SPI Flash Programmer @17-11-08 12:03:57] Connection to COM6 port has successfully opened.
[INFO Booter@17-11-08 12:04:04]已成功从端口COM6断开连接。
[INFO SPI Flash Programmer@17-11-08 12:04:04]内存刻录成功完成。
[INFO SPI Flash Programmer @17-11-08 12:04:04] Reading memory to refresh memory contents....
[INFO SPI Flash Programmer @17-11-08 12:04:04] Connection to COM6 port has successfully opened.
[INFO Booter @17-11-08 12:04:11] Successfully disconnected from port COM6.
[INFO SPI Flash Programmer @17-11-08 12:04:11] Reading has finished. Read 32768 bytes.

after trying two cases also i am not able load my code to custom board.
我附上了案例1和案例2错误日志的屏幕截图
请告诉我可能有什么问题?。解决这个问题非常紧迫。

If i try same code using DA14583 daughter board, i am able to load my .hex code successfully.
But not with custom board.

Thanks and Regards
Rohit

附件:
MT\u对话框
Offline
最后一次见到:2 months 6 days ago
工作人员
已加入:2015-06-08 11:34
你好Rajapurerohit,

你好Rajapurerohit,

What i can see from the files that you have attached is that there is no communication with the internal flash of the device, so can you please verify that the Vcc_flash pin is connected and properly powered (this is the most probable cause, the only way i can replicate the issue -verification failed at address 0x00- by hitting erase and then remove the power supply from the flash), and also do you have any pins that are used from the flash connected with anything else ? Also from the logs that you have attached i see that you are using different versions of the Smart Snippets Toolbox (4.6.3 and 4.8.3), please use the latest version.

谢谢你的对话

Rajapurerohit
Offline
最后一次见到:8 months 3 weeks ago
已加入:2017-04-20 09:17
Hello,

Hello,

thank you for the response.
I have checked all the connections and i have also getting power on VCC_FLASH.
这个装置也在获得电力。
What i did and how i did connections is as follows,
我拿出DA14583 SPI针定制黛比ug connector and i have connected those pins to mother board respective pin (means P2_0 to P2_0,P2_3 to P2_3,P2_4 to P2_4 and P2_9 to P2_9) and also powered up VCC_FLASH pin.

As per your suggestion i have updated my SS.

After doing so many work still i am not able trace my fault or what exactly is going wrong.
Please need help to solve.
Is there any configuration i have missed out or settings in SS.

Thanks and Regards
Rohit

MT\u对话框
Offline
最后一次见到:2 months 6 days ago
工作人员
已加入:2015-06-08 11:34
你好Rajapurerohit,

你好Rajapurerohit,

Well the connections are wrong, all you have to do is just use RX/TX pins from the FTDI that the pro kit exposes and connect those pins to the P04/P05 of the custom board, you dont have to expose any of the SPI pins, the connections are done internally in the SoC, the fw is downloaded via the UART and then the flash_programmer running in the 583 will take the binary from the UART and burn it to the flash. Anyway, please take a look at the attachment, assume that the 583 basic kit is a custom board connected to a pro motherboard. The connections are:

  • 棕色电线->接地
  • 黄线->电源
  • Brown wire -> flash supply
  • Red wire -> P05 to RX
  • Green wire -> P04 to TX

谢谢你的对话

Kevleo94
Offline
最后一次见到:2 years 8 months ago
已加入:2017-09-05 07:18
你好Rajapurerohit,

你好Rajapurerohit,
我很好奇你怎么处理复位按钮的问题?
i'm facing the same problem, and i have found no clue about it. could you share how to resolve it?
thankyou

Rajapurerohit
Offline
最后一次见到:8 months 3 weeks ago
已加入:2017-04-20 09:17
你好Kevleo94,

你好Kevleo94,

Basically it was the wrong connections.
As da14583 has internal flash we just need to power up the VCC_FLASH pin. No need to rework on spi pins of da14583 chip.
i have changed the connection and followed the steps suggested by MT_dialog and it works for me.
Thanks and Regards
Rohit