hello dialog_support,
我使用DA14583芯片设计了我的定制板。
下载.Hex文件来定制的,我有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
I have removed the all (J5) jumpers from mother board and i have connected the custom board with mother board using above defined respective pins.
现在,我正在使用SmartSnippest Studio下载.hex文件通过选择选项UART / SPI。
when i hit connect button i am getting log as follows:
SPI Flash @ 17-10-26 09:30:30]请按电路板上的硬件重置按钮启动下载过程。
击中重置按钮后,我收到错误,
[ERROR SPI Flash @17-10-26 09:34:12] Timeout: Reset signal not detected for more than 16000 msecs.
[INFO Booter @17-10-26 09:34:12] Successfully disconnected from port COM6.
[ERROR SPI Flash @17-10-26 09:34:12] Failed downloading firmware file to the board.
[ERROR SPI Flash @17-10-26 09:34:12] Failed configuring SPI Flash ports and pins.
请帮我解决我的问题。
Thanks and Regards
rohit.
Hi Rajapurerohit,
Since you are trying to connect via the UART interface you will have to also connect the UART pins on the 583 that you are using, the Smart Snippets tool uses by default the P04 and P05 pins, so you will have to connect those pins with the UART interface. When you hit the "Connect" button and Smart Snippets asks for a reset, hit the reset so that the bootloader will start running. The tool will pick up the 0x02 that signifies the UART booting section and will consider that the reset button is pressed.
Thanks MT_dialog
你好mt_dialog,
Thank you for the response.
我尝试了使用UART引脚的相同,我的重置引脚仍未检测到相同的错误消息。
请帮我解决这个问题。
如果您有SPI_FLASH编程程序。请分享相同
Thanks and Regards
rohit.
Hi 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:
Thanks MT_dialog
Thank you for the response.
Please find the attached screenshot of smartsnippets.
我尝试了所提到的所有建议,仍然得到相同的错误。无法刷我的定制板。
Thanks and Regards
rohit.
Hi Rajapurerohit,
Do you see the bootloader executing if you connect the device to a terminal, normally if the bootloader is executing you should see garbage on your terminal or you can use a logic analyzer in order to check that. Please verify that as soon as you plug the power on your custom board the device is operating and the bootloader is executing.
Thanks MT_dialog
Thank you for the response,
我能够检测到我的重置引脚,但是在所有成功的连接之后,我仍然遇到以下错误。
[信息SPI Flash Programmer @ 17-11-03 12:53:15]固件文件f:\ diasemi \ smartsnippetsstudio \ toolbox \ common_resources \ flash_programmer.bin已被选中以下载。
[信息SPI Flash Programmer @ 17-11-03 12:53:15]连接到COM6端口已成功打开。
[INFO SPI Flash Programmer @17-11-03 12:53:15] Started download procedure...
[ACTION SPI Flash Programmer @17-11-03 12:53:16] Please press the hardware reset button on the board to start the download process.
[INFO SPI Flash Programmer @17-11-03 12:53:17] Reset detected
[INFO Booter @17-11-03 12:53:18] Successfully disconnected from port COM6.
[INFO SPI Flash Programmer @17-11-03 12:53:19] Connection to COM6 port has successfully opened.
[信息Booter @ 17-11-03 12:53:19]成功与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.
[信息SPI Flash Programmer @ 17-11-03 12:53:33]与COM6端口的连接已成功打开。
[INFO Booter @17-11-03 12:53:33] Successfully disconnected from port COM6.
[信息SPI Flash Programmer @ 17-11-03 12:53:33] SPI内存擦除成功完成。
[INFO SPI Flash Programmer @17-11-03 12:53:33] Reading memory to verify its contents after erase...
[信息SPI Flash Programmer @ 17-11-03 12:53:33]与COM6端口的连接已成功打开。
[INFO Booter @17-11-03 12:53:33] Successfully disconnected from port COM6.
[ERROR SPI Flash Programmer @17-11-03 12:53:33] Verification failed at address 0x00
[信息SPI闪存程序员@ 17-11-03 12:53:33]阅读内存刷新内存内容....
[信息SPI Flash Programmer @ 17-11-03 12:53:33]与COM6端口的连接已成功打开。
[INFO Booter @17-11-03 12:53:33] Successfully disconnected from port COM6.
[信息SPI Flash Programmer @ 17-11-03 12:53:33]阅读已完成。阅读32768字节。
[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] Connection to COM6 port has successfully opened.
[INFO Booter @17-11-03 12:53:59] Successfully disconnected from port 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] Reading memory to verify SPI FLash memory contents after burn...
[INFO SPI Flash Programmer @17-11-03 12:53:59] Connection to COM6 port has successfully opened.
[INFO Booter @17-11-03 12:54:06] Successfully disconnected from port COM6.
[错误SPI Flash Programmer @ 17-11-03 12:54:06] SPI闪存验证失败。地址0x00时出错
请帮我解决这个问题。首先,我想尝试在Flash中存储代码。然后用于OTP编程。
紧急帮助。
Thanks and Regards
rohit.
Hi 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...
Thanks MT_dialog
嗨mt_dialog,
不,我无法在FW中找到任何错误。
Same fw i am able to load using DA14583 daughter board(SPI_FLASH) without any error.
但是,如果测试与定制板相同,我会收到错误。
Please help me to solve the issue.
我从论坛中提到了一些帖子,但找不到与我的错误有关的任何东西。
Thanks and Regards
rohit.
Hi Rajapurerohit,
Then most probably its a hw malfunction of your custom board or something is wrong with the connections between the FTDI and the custom board or even your cables connecting the custom board to the the pro board's FTDI. Although from the log that you have attached i can see that the log of Smart Snippets reports that ([INFO SPI Flash Programmer @17-11-03 12:53:59] Memory burning completed successfully.) that means that there should be data in the flash and that the tool promts an error during the verification, so i suppose that the flash should be burned and there should be data in the flash. I suppose that you are using the "Burn & Verify" option, what happens if you just use the "Burn" option, where the verification is ommited ?
Thanks MT_dialog
Thank you for the reply,
I have checked the connection once again. Everything seems correct.
I have also tried using another custom board with same connection still getting same error.
我刚刚尝试使用烧伤选项,我没有回复。
我遵循了兴奋的不同案件下载.hex
情况1:
1. selected UART/SPI option
2.浏览.hex文件
然后点击Connect按钮
4. hw RESET
5. then i have tried both ERASE and ERASE_Sector option got error log saying,
[INFO SPI Flash Programmer @17-11-03 12:53:59] Connection to COM6 port has successfully opened.
[INFO Booter @17-11-03 12:54:06] Successfully disconnected from port COM6.
[错误SPI Flash Programmer @ 17-11-03 12:54:06] SPI闪存验证失败。地址0x00时出错
案例2:
根据您的建议,仅击中刻录选项
1. selected UART/SPI option
2.浏览.hex文件
然后点击Connect按钮
4. hw RESET
5. then hit BURN option
我有这个案例的日志:
[INFO SPI Flash Programmer @17-11-08 12:03:48] Header records have been removed from hex file bletracker.hex.
[信息SPI Flash Programmer @ 17-11-08 12:03:48]从文件bletracker.hex读取24744字节。
[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 Programmer @ 17-11-08 12:03:51]与COM6端口的连接已成功打开。
[信息SPI Flash Programmer @ 17-11-08 12:03:51]开始下载程序...
[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] Connection to COM6 port has successfully opened.
[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.
[信息SPI Flash Programmer @ 17-11-08 12:03:55]成功配置了SPI闪存端口和引脚。
[INFO SPI Flash Programmer @17-11-08 12:03:57] Started burning memory with 25064 bytes of data at address 0x00000.
[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] Successfully disconnected from port COM6.
[INFO SPI Flash Programmer @17-11-08 12:04:04] Memory burning completed successfully.
[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]成功与COM6端口断开连接。
[INFO SPI Flash Programmer @17-11-08 12:04:11] Reading has finished. Read 32768 bytes.
尝试两种情况后,我也无法将我的代码加载到自定义板上。
I have attached the screen shots of CASE 1 AND CASE 2 error logs
Please let what could be the wrong?. it's very urgent to solve issue.
If i try same code using DA14583 daughter board, i am able to load my .hex code successfully.
但不是定制董事会。
Thanks and Regards
rohit.
Hi Rajapurerohit,
从您所附的文件中可以看到的是没有与设备内部闪光的通信,因此请验证VCC_FLASH引脚是否已连接并正确供电(这是最可能的原因,唯一的方式我可以通过击中擦除,然后从闪存中删除电源,然后从闪存中删除电源,并且还可以从闪存中删除电源,然后从闪存中使用闪光灯与其他任何东西一起使用的引脚?此外,还从您所附的日志中看到,我看到您使用的不同版本的Smart Spippet Toolbox(4.6.3和4.8.3),请使用最新版本。
Thanks MT_dialog
你好,
感谢您的答复。
我检查了所有连接,我也掌握了vcc_flash。
Device is also getting power.
What i did and how i did connections is as follows,
我在定制板调试连接器上介绍了DA14583 SPI引脚,我已将那些引脚连接到母板相应的引脚(表示P2_0至P2_0,P2_3至P2_3,P2_4至P2_4和P2_9至P2_9),并支持VCC_FLASH引脚。
根据您的建议,我已经更新了我的SS。
在做这么多工作之后,我仍然无法追踪我的错或究竟出错了。
Please need help to solve.
是否有任何配置我错过了SS中的设置。
Thanks and Regards
rohit.
Hi 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:
Thanks MT_dialog
Hi Rajapurerohit,
i'm usely curious about what were you doing with the problem of the reset button?
i'm facing the same problem, and i have found no clue about it. could you share how to resolve it?
thankyou
Hi Kevleo94,
基本上这是错误的联系。
由于DA14583具有内部闪存,我们只需要向VCC_FLASH引脚加电。无需在DA14583芯片的SPI引脚上返工。
我改变了连接并遵循MT_Dialog建议的步骤,它适用于我。
Thanks and Regards
rohit.