Hello Dialog_Support,
I have designed my custom board using DA14583 chip.
要将.hex文件下载到自定义板,我使用了以下引脚配置
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.
Now i am downloading .Hex file using Smartsnippest studio by selecting option UART/SPI.
when i hit connect button i am getting log as follows:
SPI Flash @17-10-26 09:30:30] Please press the hardware reset button on the board to start the download process.
击中重置按钮后,我收到错误,
[ERROR SPI Flash @17-10-26 09:34:12] Timeout: Reset signal not detected for more than 16000 msecs.
[信息Booter @ 17-10-26 09:34:12]成功与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.
Please help me to resolve my issue.
感谢致敬
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
Hello MT_dialog,
Thank you for the response.
I have tried the same using UART pins , still my reset pin is not detecting and getting same error message.
Please help me to resolve the issue.
If you have SPI_Flash programming procedure. please share the same
感谢致敬
Rohit
Hi Rajapurerohit,
如果将UART引脚连接到串行终端,您是否看到设备引导加载程序执行?
在Pro套件的583上编程闪光灯的过程如下:
Thanks MT_dialog
Thank you for the response.
请找到Smartsnippet的附加屏幕截图。
I have tried all the suggestion mentioned still getting same error. Not able to flash my custom board.
感谢致敬
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,
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] 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.
[信息SPI Flash Programmer @ 17-11-03 12:53:19]连接到COM6端口已成功打开。
[INFO Booter @17-11-03 12:53:19] Successfully disconnected from port COM6.
[信息SPI Flash Programmer @ 17-11-03 12:53:19]成功下载了固件文件到电路板。
[信息SPI Flash Programmer @ 17-11-03 12:53:19]成功配置了SPI闪存端口和引脚。
[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] Successfully disconnected from port 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] Reading memory to verify its contents after erase...
[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] Successfully disconnected from port COM6.
[错误SPI Flash Programmer @ 17-11-03 12:53:33]验证在地址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] Successfully disconnected from port COM6.
[INFO SPI Flash Programmer @17-11-03 12:53:33] Reading has finished. Read 32768 bytes.
[信息SPI Flash Programmer @ 17-11-03 12:53:52]开始燃烧内存,在地址0x00000时使用25064个字节的数据。
[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.
[信息SPI Flash Programmer @ 17-11-03 12:53:59]内存刻录成功完成。
[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.
[ERROR SPI Flash Programmer @17-11-03 12:54:06] SPI FLash memory verification failed. Error at address 0x00
Please help me to resolve the issue. First i want to try storing code in flash. and then going for OTP programming.
Urgent help need.
感谢致敬
Rohit
Hi Rajapurerohit,
我无法在我身边复制这个问题,我想代码在SPI闪存上刻录,有因原因验证智能片段在读取数据失败时确实验证。重置电路板后,设备是否运行FW,或者您能够在从闪存中读回FW时的FW上的FW上的任何损坏(为了检查确实是智能片段是否正确,在验证方面是正确的你的闪光灯)?关于OTP编程,如前一篇文章所提到的,因为这是583,您只能在OTP上刻录高级引导加载程序https://support.dialog-semicondiondiondum/forums/post/dialog-smartbond-bl ...
Thanks MT_dialog
Hi MT_dialog,
No, i am not able to find anything wrong in fw.
Same fw i am able to load using DA14583 daughter board(SPI_FLASH) without any error.
but if test the same with custom board i am getting error.
Please help me to solve the issue.
i referred the some of the post from forum but couldn't find anything related to my error.
感谢致敬
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 also tried using another custom board with same connection still getting same error.
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. selected UART/SPI option
2. Brows the .hex file
3. then hit connect button
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.
[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. selected UART/SPI option
2. Brows the .hex file
3. then hit connect button
4. hw RESET
5. then hit BURN option
i got the log for this case:
[信息SPI Flash Programmer @ 17-11-08 12:03:48]已从十六进制文件Bletracker.hex中删除了标题记录。
[INFO SPI Flash Programmer @17-11-08 12:03:48] Read 24744 bytes from file bletracker.hex.
[信息SPI Flash Programmer @ 17-11-08 12:03:51]固件文件F:\ DiaSemi \ SmartSnippetsStudio \ Toolbox \ common_resources \ flash_progrogmer.bin已被选中以下载。
[信息SPI Flash Programmer @ 17-11-08 12:03:51]与COM6端口的连接已成功打开。
[INFO SPI Flash Programmer @17-11-08 12:03:51] Started download procedure...
[动作SPI Flash Programmer @ 17-11-08 12:03:52]请按电路板上的硬件重置按钮启动下载过程。
[信息SPI Flash Programmer @ 17-11-08 12:03:53]重置检测到
[info booter @ 17-11-08 12:03:55]成功断开了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]成功断开了Port Com6端口。
[信息SPI Flash Programmer @ 17-11-08 12:03:55]成功下载了固件文件到电路板。
[信息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.
[信息SPI Flash Programmer @ 17-11-08 12:03:57]连接到COM6端口已成功打开。
[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.
[信息SPI Flash Programmer @ 17-11-08 12:04:04]阅读内存以刷新内存内容....
[信息SPI Flash Programmer @ 17-11-08 12:04:04]连接到COM6端口已成功打开。
[INFO Booter @17-11-08 12:04:11] Successfully disconnected from port COM6.
[信息SPI Flash Programmer @ 17-11-08 12:04:11]阅读已完成。阅读32768字节。
after trying two cases also i am not able load my code to custom board.
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.
如果我尝试使用DA14583子板的代码,我能够成功加载我的.hex代码。
But not with custom board.
感谢致敬
Rohit
Hi 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.
Thanks MT_dialog
Hello,
thank you for the response.
I have checked all the connections and i have also getting power on VCC_FLASH.
Device is also getting power.
我做了什么以及我的关系是如下所示,
我拿出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.
请帮助解决。
Is there any configuration i have missed out or settings in SS.
感谢致敬
Rohit
Hi Rajapurerohit,
好吧,连接是错误的,您所要做的就是使用Pro套件从FTDI中使用Rx / TX引脚,使Pro套件暴露并将那些引脚连接到定制板的P04 / P05,您不必公开任何SPI引脚,连接内部在SOC内部完成,通过UART下载FW,然后在583中运行的Flash_Programmer将从UART中取出二进制,并将其刻录到闪光灯。无论如何,请看看附件,假设583基本套件是连接到Pro主板的自定义板。连接是:
Thanks MT_dialog
Hi Rajapurerohit,
i'm usely curious about what were you doing with the problem of the reset button?
我面临着同样的问题,我发现没有关于它的线索。你能分享如何解决它吗?
谢谢你
Hi 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.
感谢致敬
Rohit