tinyfpga-programmer fail

Post Reply
frankie
Posts: 14
Joined: Fri Apr 23, 2021 7:06 am

Hello,
No idea what happened to my QF? As error log below, the tinyfpga-programmer writes the qf_bootloader.bin and qf_helloworldsw.bin successfully but fails at read back and verification.

I test it several times and got the same result. It working good with another QF. Does it mean the spi flash have bad sectors?

p.s: I used JTAG+qf_loadflash.bin to recover from bricked.

D:\GitHub\qorc-sdk\TinyFPGA-Programmer-Application>python tinyfpga-programmer-gui.py --port COM3 --mfgpkg quickfeather-initial-binaries --mode
CLI mode
ports = ['COM3 (QuickFeather)'] 1
Using port COM3 (QuickFeather)
Programming m4 application with quickfeather-initial-binaries/qf_helloworldsw.bin
Erasing designated flash pages
Erase 64.0 KiB ( 0xd8 ) at 0x80000
Erase 32.0 KiB ( 0x52 ) at 0x90000
Erase 4.0 KiB ( 0x20 ) at 0x98000
Erase 4.0 KiB ( 0x20 ) at 0x99000
Erase 4.0 KiB ( 0x20 ) at 0x9a000
Erase 4.0 KiB ( 0x20 ) at 0x9b000
Writing binary
Write 114368 bytes
[XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX]
Verifying binary
FastREAD 0x0B ( 114368 )
[XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX]
Traceback (most recent call last):
File "tinyfpga-programmer-gui.py", line 206, in program
fpga.program_bitstream(addr, bitstream, "binary")
File "D:\GitHub\qorc-sdk\TinyFPGA-Programmer-Application\q-series\python\tinyfpgaq.py", line 311, in program_bitstream
if self.program(addr, bitstream, what):
File "D:\GitHub\qorc-sdk\TinyFPGA-Programmer-Application\q-series\python\tinyfpgaq.py", line 245, in program
quit()
File "C:\Users\Frankie\AppData\Local\Programs\Python\Python37\lib\_sitebuiltins.py", line 26, in __call__
raise SystemExit(code)
SystemExit: None
Writing metadata
Erasing designated flash pages
Erase 4.0 KiB ( 0x20 ) at 0x13000
Writing metadata
Write 8 bytes
[X] ]
Verifying metadata
FastREAD 0x0B ( 8 )
[X] ]
Success: read_back == data
Programming bootloader with quickfeather-initial-binaries/qf_bootloader.bin
Erasing designated flash pages
Erase 32.0 KiB ( 0x52 ) at 0x0
Erase 4.0 KiB ( 0x20 ) at 0x8000
Erase 4.0 KiB ( 0x20 ) at 0x9000
Writing binary
Write 39844 bytes
[XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX]
Verifying binary
FastREAD 0x0B ( 39844 )
[XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX]
Traceback (most recent call last):
File "tinyfpga-programmer-gui.py", line 206, in program
fpga.program_bitstream(addr, bitstream, "binary")
File "D:\GitHub\qorc-sdk\TinyFPGA-Programmer-Application\q-series\python\tinyfpgaq.py", line 311, in program_bitstream
if self.program(addr, bitstream, what):
File "D:\GitHub\qorc-sdk\TinyFPGA-Programmer-Application\q-series\python\tinyfpgaq.py", line 245, in program
quit()
File "C:\Users\Frankie\AppData\Local\Programs\Python\Python37\lib\_sitebuiltins.py", line 26, in __call__
raise SystemExit(code)
SystemExit: None
Writing metadata
Erasing designated flash pages
Erase 4.0 KiB ( 0x20 ) at 0x1f000
Writing metadata
Write 8 bytes
[X] ]
Verifying metadata
FastREAD 0x0B ( 8 )
[X] ]
Success: read_back == data
Programming FPGA image used during programming quickfeather-initial-binaries/qf_bootfpga.bin
Erasing designated flash pages
Erase 64.0 KiB ( 0xd8 ) at 0x20000
Erase 4.0 KiB ( 0x20 ) at 0x30000
Erase 4.0 KiB ( 0x20 ) at 0x31000
Erase 4.0 KiB ( 0x20 ) at 0x32000
Writing binary
Write 75960 bytes
[XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX]
Verifying binary
FastREAD 0x0B ( 75960 )
[XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX]
Success: read_back == data
Writing metadata
Erasing designated flash pages
Erase 4.0 KiB ( 0x20 ) at 0x10000
Writing metadata
Write 8 bytes
[X] ]
Verifying metadata
FastREAD 0x0B ( 8 )
[X] ]
Success: read_back == data
mode: []
Post Reply