I’m trying to program the TinyFPGA-BX with the HW-USBN-2B Programming cable from Lattice, using the Diamond Programmer software.
The connections between the cable and the TinyFPGA-BX are as follows:
HW-USBN-2B | TinyFPGA-BX
TCK/SCLK | G7 - SPI Flash Clock
TDI/SDI | G6 - SPI Flash MOSI/IO0
TDO/SDO | H7 - SPI Flash MISO/IO1
ISPEN/PROG | F8 - SPI Flash CS_B
TRST | RST
VCC | 3.3V
5V Out | Vin
Unfortunately, the Flash memory of the TinyFPGA-BX, the Adesto AT25SF081, is not listed on the available memories of the Diamond Programmer. However, running the “Scan SPI Device”, there are a few memories that seem to be compatible:
SPI Flash Device #1 : Vendor:Numonyx Name:SPI-M25P80 Device ID:0x13 Size:8 Mbits Family:SPI Serial Flash SPI Flash Device #2 : Vendor:Micron Name:SPI-M25P80 Device ID:0x13 Size:8 Mbits Family:SPI Serial Flash SPI Flash Device #3 : Vendor:STMicro Name:SPI-M25P80 Device ID:0x13 Size:8 Mbits Family:SPI Serial Flash SPI Flash Device #4 : Vendor:ATMEL Name:AT25SF081 Device ID:0x85 Size:8 Mbits Family:SPI Serial Flash Custom
If I select any of these memories the programmer seems to run successfully. However, the FPGA doesn’t seem to have the correct firmware loaded.
I’m just trying to put back the bootloader that I got from https://github.com/tinyfpga/TinyFPGA-Bootloader/releases/download/1.0.1/tinyfpga_bx_fw.bin
After programming the FPGA, the LED does not blink as expected, even after pressing the reset button, not even for 1s. (I tried also powering with the USB cable).
I don’t know if I should write the bootloader to a specific address, (I saw an entry from Lawrie mentioning that the bootloader is at 0xA0), but that address is not on the available ones. Only 0x0,0x10000, 0x20000…
Can someone help me?