Unable to read all SPI memory contents.

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
Bharath
Offline
Last seen:1 year 5 months ago
加入:2016-04-14 07:03
Unable to read all SPI memory contents.

Hi,
When I tried to read SPI flash data contents using Smartsnippets CLI tool, the maximum I can read was 43008.
"SmartSnippets.exe -type spi -chip da14580-01 -jtag 480056066 -firmware jtag_programmer.bin -cmd read -file spidata.txt -length 43008"

How can i read the full data contents of the Flash?

Thanks
Bharath

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi Bharath,

Hi Bharath,

You wont be able to do that in one read command, this is a limitation that the 580 imposes to the Smart Snippets tool, what you can do is issue a number of read commands and use the -offset command in order to continue reading from where you have finished on the previous command.

For example:

"SmartSnippets.exe -type spi -chip da14580-01 -jtag 4800xxxxx -firmware jtag_programmer.bin -cmd read -file spidata.txt -length 32K" //this will read from 0x0 offset 32K size

"SmartSnippets.exe -type spi -chip da14580-01 -jtag 4800xxxxx -firmware jtag_programmer.bin -cmd read -file spidata.txt -offset 32K -length 32K" //this will read from the 32K offset to 32K size of data.

Thanks MT_dialog

Bharath
Offline
Last seen:1 year 5 months ago
加入:2016-04-14 07:03
If I want to read multiple

If I want to read multiple times, is there a need to do "-firmware jtag_programmer.bin " every time?
How can I use bundle command to execute this loop of reading multiple times?

MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi Bharath,

Hi Bharath,

No, you dont need to download the flash_programmer fw every time, if you ommit the -firmware parameter on the second command it will execute with no problem.

I dont get the second question, you can create a batch file that will run those commands and use batch scripting in order to manipulate the output of the files, instead of running from the command line window.

Thanks MT_dialog

Bharath
Offline
Last seen:1 year 5 months ago
加入:2016-04-14 07:03
Thanks for the reply.

Thanks for the reply.
My second question was about the option "bundle" . When I tried to put multiple commands in a txt file and execute with option-bundle cmds.txt.
我只会通过删除固件option.

Thank you

MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi Bharath,

Hi Bharath,

You just create a .txt file with the commands and you just invoke the SmartSnippets.exe -bundle yourfile.txt in order to execute the commands in the file, dont invoke the SmartSnippets.exe in the commands in the file, like below.

-type spi -chip da14580-01 -jtag 4800xxxxx -firmware jtag_programmer.bin -cmd read -file spidata.txt -length 0x8000
-type spi -chip da14580-01 -jtag 4800xxxxx -cmd read -offset 0x8000 -file spidata.txt -length 0x8000

Thanks MT_dialog