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:
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
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?
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
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
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