Seeed-Studio / ArduPy

👭 👭 ArduPy makes MicroPython and Arduino work together perfectly.
MIT License
112 stars 14 forks source link

Flashing error: Verify failed #9

Closed metanav closed 4 years ago

metanav commented 4 years ago

I am getting this error (at the end) while running aip flash (very first time) on the Wio Terminal. I was able to run almost all Arduino examples though.

Set binary mode
version()=v1.1 [Arduino:XYZ] Mar 12 2020 17:43:33
Connected at 921600 baud
readWord(addr=0)=0x2000d6a0
readWord(addr=0xe000ed00)=0x410fc241
readWord(addr=0x4)=0x56d
readWord(addr=0x41002018)=0x60060001
write(addr=0x20004000,size=0x34)
writeWord(addr=0x20004030,value=0x80)
writeWord(addr=0x20004020,value=0x20008000)
version()=v1.1 [Arduino:XYZ] Mar 12 2020 17:43:33
readByte(addr=0x804000)=0xb9
readByte(addr=0x804001)=0x92
readByte(addr=0x804008)=0xff
readByte(addr=0x804009)=0xff
readByte(addr=0x80400a)=0xff
readByte(addr=0x80400b)=0xff
Device       : ATSAMD51x19
Version      : v1.1 [Arduino:XYZ] Mar 12 2020 17:43:33
Address      : 0x0
Pages        : 1024
Page Size    : 512 bytes
Total Size   : 512KB
Planes       : 1
Lock Regions : 32
Locked       : none
Security     : false
BOD          : false
BOR          : true
Write 291888 bytes to flash (571 pages)
[                              ] 0% (0/571 pages)write(addr=0x20004034,size=0x1000)
writeWord(addr=0x41004014,value=0x4000)
// Omitted long writes messages
....
....

[============================= ] 99% (568/571 pages)checksumBuffer(start_addr=0x4b000, size=0x200) = 0
read(addr=0x4b000,size=0x200)
[============================= ] 99% (569/571 pages)checksumBuffer(start_addr=0x4b200, size=0x200) = 0
[============================= ] 99% (570/571 pages)checksumBuffer(start_addr=0x4b400, size=0x30) = 0
[==============================] 100% (571/571 pages)
Verify failed
Page errors: 561
Byte errors: 277509
LynnL4 commented 4 years ago

Hi, please try to upgrade ardupy-aip.

pip3 install --upgrade ardupy-aip
LynnL4 commented 4 years ago

And empty .config/aip/, then retry again.

metanav commented 4 years ago

Thanks! It works now!