How to Set the maximum SPI Flash Memory size when use the command to write data to flash

5 posts / 0 new
Last post
lizhuobin
Offline
Last seen:1 month 2 weeks ago
加入:2014-08-15 05:08
How to Set the maximum SPI Flash Memory size when use the command to write data to flash

We use a 4M bit spi flash.

If we use the SmartSnippets.exe tools to write data to the adress greater than 0x20000 , that is ok.

But when we write data to the flash by the command

"SmartSnippets.exe -type spi -chip DA14580-01 -com_port 51 -baudrate 57600 -cmd write -file prox_reporter_img.bin -offset 491520",

it return the error massage

EEPROM memory offset can not be greater than the maximum EEPROM address ( 0x1FFFF).
记忆燃烧失败了。

How to Set the maximum SPI Flash Memory size when use the command to write data to flash.

Device:
MT_dialog
Offline
Last seen:3 weeks 6 days ago
工作人员
加入:2015-06-08 11:34
嗨lizhuobin,

嗨lizhuobin,

In order to set the maximum size of your SPI you have to set the data of your SPI to the flash_programmer project in the utilities file. Check the spi_flash.c and the spi_flash.h file.

Thanks MT_dialog

lizhuobin
Offline
Last seen:1 month 2 weeks ago
加入:2014-08-15 05:08
I had post this problem

I had post this problem before, here is the link.

http://support.dialog-semiconductor.com/how-set-maximum-spi-flash-memory...

The last reply is

It is confirmed that the supported limit is hard coded in the SmartSnippets software. This limitation will be removed in the next SmartSnippets. Please stay tuned to monitor the updates in our portal.

MT_dialog
Offline
Last seen:3 weeks 6 days ago
工作人员
加入:2015-06-08 11:34
嗨lizhuobin,

嗨lizhuobin,

I wasn't aware that you had posted the same question again and as far as i can see WI_Dialog guided you to change the programmer.bin file. Sorry about the hasty answer i didn't realise that you were trying to accomplish the writting procedure through command line. In new Smart Snippets v3.9 a new parameter is introduced the -max. You can have a look at the SmartSnippets_3.9.pdf for more info on this.

Thanks MT_dialog

lizhuobin
Offline
Last seen:1 month 2 weeks ago
加入:2014-08-15 05:08
Dear MT_dialog,

Dear MT_dialog,

Thank you very much for your help. The problem has resolved.

Topic locked