rschlaikjer / hx4k-pmod

Lattice HX4K breakout board, designed for hand-assembly
MIT License
9 stars 5 forks source link

The firmware process ends with an error #1

Open Yarulik opened 9 months ago

Yarulik commented 9 months ago

Good day! Sorry for the stupid questions! This is my first FPGA and I'm just starting this journey. I followed your tutorial, but flashed the STM using ST-LINK. I was able to build a binary file after changing .blink/Makefile ARGS := -abc9, changed to -abc and then it compiled. But when flashing the blink firmware in the FPGA, an error appears:

`gateware$ make prog faff -f top.bin Claimed device 1209:0001 with serial 002000254753511120333333 Flash chip mfgr: 0x00, Device ID: 0x00 Unique ID: 0xe000000000000000 Programming block 0x00020fa0 / 0x00020fbc Verify error for block of size 32 at 0x00000000:

Expected: FF 00 00 FF 77 AA 99 77 55 00 00 00 99 00 22 66 00 66 77 00 11 88 00 00 11 00 00 00 00 00 00 00

Read: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00`

The memory chip is working! What did I do wrong? Maybe I didn't compile one of the binaries correctly?

rschlaikjer commented 9 months ago

Hmm, that looks to me something wrong with the connection to the flash chip - (almost) all zeroes for the unique ID fields? Is it definitely a compatible part / soldered correctly? Do you have a logic analyzer that you can scope the data pins with? Also possible that if the reset line from the stm32 to the fpga isn't working the fpga is still asserting some of the SPI pins in confluct with the stm32.

The memory chip is working!

How did you verify this?

Yarulik commented 9 months ago

I have two memory chips. Okay, I'll check with a logic analyzer