Learn More常见问题解答教程

16 posts / 0 new
最后一篇
Rajapurerohit
Offline
最后一次露面:6 months 5 days ago
加入:2017-04-20 09:17
SPI flash DA14583

Hello Dialog_Support,

I have designed my custom board using DA14583 chip.
下载.Hex file to custom board, i have used the following pin configuration
SPI_CLK(P2_0)
SPI_DO(P2_4)
SPI_EN(P2_3)
SPI_DI(P2_9)
RST.
VCC_Flash
GND.
我已经删除了来自母板的所有(J5)跳线,我已经使用上述相应的引脚与母板连接了定制板。

Now i am downloading .Hex file using Smartsnippest studio by selecting option UART/SPI.
当我点击Connect按钮时,我会收到如下日志:
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 Flash @ 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 Flash @ 17-10-26 09:34:12]配置SPI闪存端口和引脚。

Please help me to resolve my issue.

Thanks and Regards
Rohit

Keywords:
Device:
mt_dialog.
Offline
最后一次露面:2 weeks 3 days ago
职员
加入:2015-06-08 11:34
嗨rajapurerohit,

嗨rajapurerohit,

由于您尝试通过UART接口连接,因此您必须在使用的583上连接UART引脚,默认情况下,智能代码段工具使用P04和P05引脚,因此您必须将这些引脚连接UART接口。当您按“Connect”按钮和Smart Scippets要求重置时,点击重置,以便启动加载程序将开始运行。该工具将拾取0x02,表示UART引导部分,并将考虑按下重置按钮。

谢谢mt_dialog.

Rajapurerohit
Offline
最后一次露面:6 months 5 days 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_dialog.
Offline
最后一次露面:2 weeks 3 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.
  • 一旦工具提示您,请立即按下电路板上的重置。

谢谢mt_dialog.

Rajapurerohit
Offline
最后一次露面:6 months 5 days 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_dialog.
Offline
最后一次露面:2 weeks 3 days ago
职员
加入:2015-06-08 11:34
嗨rajapurerohit,

嗨rajapurerohit,

如果将设备连接到终端,那么如果启动加载程序正在执行,则会看到引导加载程序,如果启动加载程序正在执行,则应在终端上看到垃圾,或者您可以使用逻辑分析仪来检查该逻辑分析仪。请尽快验证您的自定义板上的电源,设备运行,引导加载程序正在执行。

谢谢mt_dialog.

Rajapurerohit
Offline
最后一次露面:6 months 5 days 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.
[信息SPI Flash Programmer @ 17-11-03 12:53:15]开始下载程序...
[动作SPI Flash Programmer @ 17-11-03 12:53:16]请按电路板上的硬件重置按钮开始下载过程。
[信息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.
[信息Booter @ 17-11-03 12:53:33]成功与COM6端口断开连接。
[INFO SPI Flash Programmer @17-11-03 12:53:33] SPI Memory erasing completed successfully.
[信息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.
[信息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.
[信息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.
[信息SPI Flash Programmer @ 17-11-03 12:53:52]连接到COM6端口已成功打开。
[信息Booter @ 17-11-03 12:53:59]成功断开了Port Com6。
[INFO SPI Flash Programmer @17-11-03 12:53:59] Memory burning completed successfully.
[信息SPI Flash Programmer @ 17-11-03 12:53:59]阅读内存以验证SPI闪存内容烧伤后...
[信息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_dialog.
Offline
最后一次露面:2 weeks 3 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...

谢谢mt_dialog.

Rajapurerohit
Offline
最后一次露面:6 months 5 days ago
加入:2017-04-20 09:17
Hi MT_dialog,

Hi MT_dialog,

No, i am not able to find anything wrong in fw.
同样的FW我能够使用DA14583子板(SPI_FLASH)加载而没有任何错误。
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_dialog.
Offline
最后一次露面:2 weeks 3 days ago
职员
加入:2015-06-08 11:34
嗨rajapurerohit,

嗨rajapurerohit,

然后,大多数可能是您的自定义板的HW故障,或者在FTDI和定制板之间的连接或甚至将定制板连接到Pro主板FTDI的电缆,甚至是错误的HW故障。虽然从您所附的日志中可以看到智能片段的日志报告([信息SPI Flash Programmer @ 17-11-03 12:53:59]内存刻录成功完成。)这意味着应该有数据在闪存中,该工具在验证期间引起错误,所以我想刻录闪光灯,并且闪光灯应该有数据。我想你正在使用“刻录并验证”选项,如果您只使用“刻录”选项,会发生什么,验证验证?

谢谢mt_dialog.

Rajapurerohit
Offline
最后一次露面:6 months 5 days 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. HW重置
5.然后我尝试了erase和erase_sector选项得到错误日志说,
[信息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. HW重置
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.
[INFO SPI Flash Programmer @17-11-08 12:03:51] Connection 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.
[信息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.
[信息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端口断开连接。
[信息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_dialog.
Offline
最后一次露面:2 weeks 3 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.

谢谢mt_dialog.

Rajapurerohit
Offline
最后一次露面:6 months 5 days 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_dialog.
Offline
最后一次露面:2 weeks 3 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:

  • 棕色电线 - > GND
  • 黄线 - >电源
  • 棕色线- - - - - - > flash供应
  • Red wire -> P05 to RX
  • Green wire -> P04 to TX

谢谢mt_dialog.

附件:
Kevleo94
Offline
最后一次露面:2 years 5 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
最后一次露面:6 months 5 days 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