Skip to content

CRC Error when writing to flash on Tang Nano 1k #648

Description

@ScrewDriven05

Good day! I'm an absolute beginner when it comes to FPGAs and I've been working on this for over 15 hours. Please excuse any typos or missing information.
I suddenly started seeing CRC Errors while trying to load my verilog program to a Tang Nano 1k with openFPGALoader specifically to flash. SRAM uploads don't cause errors but also don't change the behaviour of my board.

openFPGALoader -b tangnano1k -f -v end.fs 
write to flash
Jtag frequency : requested 6.00MHz    -> real 6.00MHz   
found 1 devices
index 0:
	idcode 0x100681b
	manufacturer Gowin
	family GW1NZ
	model  GW1NZ-1
	irlength 8
File type : fs
Parse file Parse end.fs: 
checksum 0xc2b8
Done
DONE
bitstream header infos
CRCCheck: ON
Compress: OFF
ConfDataLength: 274
LoadingRate: 4629629
ProgramDoneBypass: OFF
SPIAddr: 00000000
SecurityBit: ON
idcode: 0100681b
Jtag frequency : requested 2.50MHz    -> real 2.00MHz   
Erase SRAM before erase sram: displayReadReg 00017460
	Memory Erase
	Preamble
	Non-JTAG configuration is active
	Gowin VLD
	Done Final
	Security Final
	POR
pollFlag: 1f0a0 (80)
pollFlag: 1d080 (0)
pollFlag: 190a0 (20)
after erase sram: displayReadReg 000190a0
	Memory Erase
	System Edit Mode
	Gowin VLD
	Ready
	POR
pollFlag: 11020 (0)
after erase sram: displayReadReg 00011020
	Memory Erase
	Gowin VLD
	POR
DONE
pollFlag: 190a0 (80)
Erase FLASH before erase flash: displayReadReg 000190a0
	Memory Erase
	System Edit Mode
	Gowin VLD
	Ready
	POR
pollFlag: 190a0 (80)
pollFlag: 11020 (0)
after erase flash: displayReadReg 00011020
	Memory Erase
	Gowin VLD
	POR
DONE
Erasing FLASH: [==================================================] 100.00%
Done
pollFlag: 11020 (0)
write Flash: [==================================================] 100.00%
Done
pollFlag: 11020 (0)
CRC check : FAIL
Read: 0x00000000 checksum: 0xc2b8

after program flash: displayReadReg 00011020
	Memory Erase
	Gowin VLD
	POR

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions