- Mon Feb 16, 2015 1:18 pm
#9949
Athena wrote:pvvx wrote:Correct the error in "bool SPIEraseArea (uint32 start_addr, uint32 lenght);"
Accordingly, esptool.py in FLASH_DOWNLOAD_TOOLS.
Hi, pvvx,
The problem you mentioned about SPIEraseArea, we have fixed it long time ago
Please have a try with the FLASH_DOWNLOAD_TOOLS here http://bbs.espressif.com/viewtopic.php?f=7&t=25
Errors are not corrected.
Record 1024 bytes at 0xA000 clears up 0xC000 (8192 bytes). Etc.
Calculate_SPIEraseArea_SpLab:
Code: Select allTest (SPIEraseArea.exe):
The flash settings on default:
Chip size (in byte): 524288
Sector size (in byte): 4096
Block size (in byte): 65536
Want to change? [y/n]
Enter the start address to erase: 40960
Enter the length to erase: 1024
SPIEraseArea (40960, 1024)
The returned value: OK
Start erased adress: 40960
Last erased adress: 49152
Press any key to exit.
40960 = 0xA000, 49152 = 0xС000.
FLASH_DOWNLOAD_TOOLS_v0.9.3.1 = Already BAG:
Code: Select alloffset : 40960
Erasing flash...
head: 1 ;total: 1
erase size : 4096
Writing at 0x0000a000... (0 %)
Leaving...
erase size != 4096 (flash sector), erase size = 8192 (2x sectors).
Programmers from Espressif can do only new errors....
Attachments
(6.62 KiB) Downloaded 168 times