Go Down

Topic: [SOLVED] file operation exceeds flash size (Read 285 times) previous topic - next topic

narit

Aug 06, 2018, 06:23 am Last Edit: Aug 28, 2018, 11:52 am by mbanzi
I have tried to program Vidor 4000 with blink example and it was succeed.
But I can't program the Vidor's example such as Vidor encoder.

It shows "file operation exceeds flash size"

Previously, I have reconfigured "Platform.txt" by removing "-I" option which Bossac.exe can't recognized.

Also, I have remove the duplicated option "-i".


My question is ...
1. Is there any Bossac with option "-I" (I guess "ignore file size") binary available?
2. Is there any other solution?

Further information,
I have test and replace with Bossac 1.6 ,1.7,1.8, change some "-U"'s parameter and the binary that come from IDE for me is corrupted.

Here is my upload debugging log.

Please advice me.

Code: [Select]
Uploading using selected port: COM9
C:\**\bossac\1.7.0-arduino3/bossac.exe -i -d --port=COM9 -U true -e -w -v C:\**/VidorEncoder.ino.bin -R

Set binary mode
readWord(addr=0)=0x20007ffc
file operation exceeds flash size
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
version()=v2.0 [Arduino:XYZ] Jun 20 2018 16:38:19
chipId=0x10010005
Connected at 921600 baud
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
An error occurred while uploading the sketch
readWord(addr=0x41002018)=0x10010305
Atmel SMART device 0x10010005 found
write(addr=0x20004000,size=0x34)
writeWord(addr=0x20004030,value=0x10)
writeWord(addr=0x20004020,value=0x20008000)
Device       : ATSAMD21G18A
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Chip ID      : 10010005
version()=v2.0 [Arduino:XYZ] Jun 20 2018 16:38:19
Version      : v2.0 [Arduino:XYZ] Jun 20 2018 16:38:19
Address      : 8192
Pages        : 3968
Page Size    : 64 bytes
Total Size   : 248KB
Planes       : 1
Lock Regions : 16
Locked       : readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
none
readWord(addr=0x41004018)=0
Security     : false
Boot Flash   : true
readWord(addr=0x40000834)=0
BOD          : false
readWord(addr=0x40000834)=0
BOR          : false
Arduino      : FAST_CHIP_ERASE
Arduino      : FAST_MULTI_PAGE_WRITE
Arduino      : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
chipErase(addr=0x2000)
done in 0.783 seconds



narit

I have solved the problem,

By Uninstalling Arduino IDE and remove/rename the Arduino 15 in user Library.

Then install Arduino IDE 1.8.5.

DarioPennisi

Hi,
the issues you had are related to the fact we modified bossac in order to handle FPGA bit file programming. you already figured it out but you just needed to update your installation.

narit

Thank you.

My Guess was correct. Yeah.

Go Up