Hi,
I would like to program SPI flash with UART by SmartSnippets,
but I can't.
(SDK:5.0.4, SmartSnippets:v3.8)
*I can program SPI flash with "JTAG".
Please tell me how to solve this problem.
SPI interface
P0_0:SCK
P0_3:CS
P0_5:MISO
P0_6:MOSI
UART interface
P0_4:TX
P0_5:RX
This is the log:
---------------------------------------
[INFO @16-12-06 18:45:57] Header records have been removed from hex file ****.hex.
[INFO @16-12-06 18:45:57] Read 12544 bytes from file ****.hex.
[INFO @16-12-06 18:45:58] Firmware File C:\SmartSnippets\resources\flash_programmer.bin has been selected for downloading.
[INFO @16-12-06 18:45:58] Connection to COM11 port has successfully opened.
[INFO @16-12-06 18:45:58] Started download procedure...
[ACTION @16-12-06 18:45:59] Please press the hardware reset button on the board to start the download process.
[INFO @16-12-06 18:46:02] Reset detected
[INFO @16-12-06 18:46:03] Successfully disconnected from port COM11.
[INFO @16-12-06 18:46:03] Connection to COM11 port has successfully opened.
[ERROR @16-12-06 18:46:13] Timeout while waiting to receive the most significant byte of packet length (10000 msecs) ←What is reason???
[INFO @16-12-06 18:46:13] Successfully disconnected from port COM11.
[INFO @16-12-06 18:46:13] Successfully downloaded firmware file to the board.
[INFO @16-12-06 18:46:13] Failed configuring SPI Flash ports and pins.
---------------------------------------
Best regards.

嗨morimatsut,
Smart Snippets looks for a 0x02 in the transmition line of the 580 which indicates that the bootloader starts executing, something is wrong with your UART connections and Snippets isn't able to track that you ve hit the reset button, thats why it timeouts (take a look at the board setup tab in Smart Snippets and check if the SPI and UART pins are the one mentioned above). Also you need an extra jumper to power the flash on the SPI_SUPPLY pin (i suppose that you are talking about a dev kit).
Thanks MT_dialog
Thanks for your reply.
I check the SPI and UART pins at the board setup tab in Smart Snippets.
But probably no problem.(Attach the image file)
> i suppose that you are talking about a dev kit
Yes, I use a dev kit(Bluetooth Smart Developmet Kit | Stater Kit DA14580DEVKT).
I can't find SPI_SUPPLY pin.
Would you tell me what document should I see??
*I saw following document
+AN-B-001 - Booting from serial interfaces v2.0.pdf
+AN-B-023 - DA14580 interfacing with external memory v1.0.pdf
+UM-B-014_DA14580_Development_Kit.pdf
Best Regards.
嗨morimatsut,
Yes the setup of the board on Smart Snippets looks ok. The dev kit that you are using is the Basic or the Pro ? You will be able to find documentation for both of the dev kits on the support site at the Development Kit Documentation. The spi supply is at the J4 at the basic and J5 at the pro kit, on the basic kit the pin indicates SPI_SUP. Most probably the problem is the P04 pin, have you placed a jumper to the P04 pin and the RX of the FTDI ?
Thanks MT_dialog
I'm using the Expert dev kit.
I have placed the jumper to the J25.
(Attach the image file )
*I was able to program I2C EEPROM with UART by SmartSnippets.
*But I can't do SPI flash.
Best Regards.
>Most probably the problem is the P04 pin, have you placed a jumper to the P04 pin and the RX of the FTDI ?
P05 is right??
P04 is used only wiht UART.
Hi,
I sloved this problem by reinstalling SmartSnippets.
Thanks for your help.
Best Regards.