Learn MoreFAQsTutorials

16 posts / 0 new
Last post
Rajapurerohit
Offline
Last seen:4 months 2 weeks ago
加入:2017-04-20 09:17
SPI flash DA14583

Hello Dialog_Support,

I have designed my custom board using DA14583 chip.
下载.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.

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.

After hitting RESET button i am getting error as,
[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.

Please help me to resolve my issue.

Thanks and Regards
Rohit

Keywords:
Device:
MT_dialog
Offline
Last seen:1 month 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Rajapurerohit,

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

Rajapurerohit
Offline
Last seen:4 months 2 weeks ago
加入:2017-04-20 09:17
Hello 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

Thanks and Regards
Rohit

MT_dialog
Offline
Last seen:1 month 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Rajapurerohit,

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:

  • Connect the P04 and P05 in order to connect the serial port of the 580 with the FTDI.
  • Hit the connect on Smart Snippets.
  • Press the reset on the board as soon as the tool prompts you.

Thanks MT_dialog

Rajapurerohit
Offline
Last seen:4 months 2 weeks ago
加入:2017-04-20 09:17
Thank you for the response.

Thank you for the response.

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
Last seen:1 month 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Rajapurerohit,

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

Rajapurerohit
Offline
Last seen:4 months 2 weeks ago
加入:2017-04-20 09:17
Thank you for the response,

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.
[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] 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.
[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] Successfully disconnected from port 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] 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.
[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.

Thanks and Regards
Rohit

MT_dialog
Offline
Last seen:1 month 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Rajapurerohit,

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

Rajapurerohit
Offline
Last seen:4 months 2 weeks ago
加入:2017-04-20 09:17
Hi 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.

Thanks and Regards
Rohit

MT_dialog
Offline
Last seen:1 month 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Rajapurerohit,

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

Rajapurerohit
Offline
Last seen:4 months 2 weeks ago
加入:2017-04-20 09:17
Thank you for the reply,

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.
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:
[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.
[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.
[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] 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] 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.
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.
But not with custom board.

Thanks and Regards
Rohit

附件:
MT_dialog
Offline
Last seen:1 month 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Rajapurerohit,

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

Rajapurerohit
Offline
Last seen:4 months 2 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.
Device is also getting power.
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
Last seen:1 month 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Rajapurerohit,

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:

  • Brown wire -> gnd
  • Yellow wire -> power supply
  • Brown wire -> flash supply
  • Red wire -> P05 to RX
  • Green wire -> P04 to TX

Thanks MT_dialog

Kevleo94
Offline
Last seen:2 years 4 months ago
加入:2017-09-05 07:18
Hi Rajapurerohit,

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

Rajapurerohit
Offline
Last seen:4 months 2 weeks ago
加入:2017-04-20 09:17
Hi Kevleo94,

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.
Thanks and Regards
Rohit