failed downloading firmware file to the board

11 posts / 0 new
Last post
achao1104
Offline
Last seen: 3 years 2 months ago
Master
Joined: 2015-12-24 10:56
failed downloading firmware file to the board

dialog,

my os is win7 64 bit. I previously installed smart snippets 3.6 which can work properly, I have downloaded file into flash by version 3.6, but after I installed 3.9 version, it didn't work, when I click "connect" (for downloading to flash), it reports below:
failed downloading firmware file to the board

I have uninstalled the 3.9 and reinstalled 3.6 back and forth for times, I can not make it work now.
how to solve it?

regards

Peter

Device: 
achao1104
Offline
Last seen: 3 years 2 months ago
Master
Joined: 2015-12-24 10:56
by the way, I used jtag

by the way, I used jtag

MT_dialog
Offline
Last seen: 1 hour 34 min ago
Staff
Joined: 2015-06-08 11:34
Hi achao1104,

Hi achao1104,

Are you able to do any other operations with Smart Snippets like connect to the OTP ? Also can you please try to connect via UART and check again, try to use the UART booter for instance and check if you can download code in the sysram.

Thanks MT_dialog

achao1104
Offline
Last seen: 3 years 2 months ago
Master
Joined: 2015-12-24 10:56
I can not connect to the OTP,

I can not connect to the OTP, but I can connect via UART, and jtag works fine for keil as well.

MT_dialog
Offline
Last seen: 1 hour 34 min ago
Staff
Joined: 2015-06-08 11:34
Hi achao1104,

Hi achao1104,

Can you please check if you can download code to your SPI via UART, just remember to have the appropriare connections to your board (proper connections of the SPI and as indicated to the user manuals of the dev kit also an extra connection in p05 pin for the RX of the UART). Also, are you able to use power profiler ?

Thanks MT_dialog

achao1104
Offline
Last seen: 3 years 2 months ago
Master
Joined: 2015-12-24 10:56
1) Can you please check if

1) Can you please check if you can download code to your SPI via UART,
no, I can not.
2) Also, are you able to use power profiler ?
no, I can not.
but I can use jtag properly and I also can burn eeprom

MT_dialog
Offline
Last seen: 1 hour 34 min ago
Staff
Joined: 2015-06-08 11:34
Hi achao1104,

Hi achao1104,

I am trying to understand if the failure of the SPI connection is due to a faulty Smart Snippets instalation (since the problem occured after a second installation of smart snippets) or due to a faulty connection, since you can burn the eeprom it doesn't sound like an installation of smart snippets problem but an SPI connection problem (are you using a dev kit or a custom board), in case you are using a custom board please check your connections (also make sure that the spi memory you are trying to use is one of the verified SPI flash memories that we support), if you are using a dev kit, a pro kit for example please check your jumper connections and check the SPI configurations in the Smart Snippets to make sure that the prorer pins are selected in the board setup option.

Also is the SPI on the board that you are trying to program allready programed? If it is, try to do the following, with no power on the board open smart snippets and go to the SPI flash programmer, when you are ready, supply voltage to the board and hit the connect button in order for the flash programmer to download via jtag and not give the chance for the chip to boot via spi. If the SPI is programmed, the da boots from there without letting the jtag to attach normally.

Regarding the installation of the Smart Snippets tool please make sure that you 've uninstalled the previous version before installing an other one.

Thanks MT_dialog

achao1104
Offline
Last seen: 3 years 2 months ago
Master
Joined: 2015-12-24 10:56
thanks for reply. I am using

thanks for reply. I am using a custom board, and have programmed flash successfully for the first time, but can not succeed for the second. At the beginning, I suspect that it might be due to I have installed 3.9 version, but it looks not like that. I have tried to follow your steps below, but not succeed.

If it is, try to do the following, with no power on the board open smart snippets and go to the SPI flash programmer, when you are ready, supply voltage to the board and hit the connect button in order for the flash programmer to download via jtag and not give the chance for the chip to boot via spi.

achao1104
Offline
Last seen: 3 years 2 months ago
Master
Joined: 2015-12-24 10:56
By the way, when selecting

By the way, when selecting "UART/SPI mode", I can not see any com port displayed, but I can see com port if I select "Uart" mode.
When selecting "UART/SPI", I didn't see message showed up as talked below.

Virtual COM port / JTAG mode: there are three available modes:
In UART/SPI mode, SmartSnippets scans and lists the Virtual COM port pairs currently connected to FTDI devices. Note that in case that SmartSnippets detects more than on UART ports with location ID = 0 (usually happens when system has USB 3.0 hosts with Windows 7 or older) it can no longer distinguish between these ports in UART/SPI mode. To avoid connecting and working with a port different that the one chosen by the user, the user should switch to UART mode (see below) and select the UART port to connect to. An example of the message that shows up is:

MT_dialog
Offline
Last seen: 1 hour 34 min ago
Staff
Joined: 2015-06-08 11:34
Hi achao1104,

Hi achao1104,

I suppose that you are using a dialog's development kit to program your custom board (which dev kit do you have -basic, expert, pro) ? In case you have a basic or a pro those have an board SPI can you please try to read this using jtag? (in order to do this please place the jumpers as indicated in the figures right next to the j5 header in the SPI configuration). If you are able to read the on board SPI of your dev kit and not the SPI on your pcb then its either the hardware connection on your pcb with the spi or a wrong connection with the dev kit, also please make sure that the SPI you are using is one of the supported spi flash memories indicated at the AN-B-023.pdf. If you are not able to read even the on board SPI please check in the board setup option the SPI flash configuration pins.

If your dev kit is a basic kit there is no option for UART/SPI mode.

Thanks MT_dialog

PM_Dialog
Offline
Last seen: 41 min 17 sec ago
Staff
Joined: 2018-02-08 11:03
Hi peyman@azartesla.com,

Hi ,

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, PM_Dialog