Closed mattvenn closed 5 years ago
I have the same problem. I managed to debug it. Seems like my flash got corrupted on address 0x050000. The readout is not equal to the written image... I will try to send the board back to the seller, and get a new one in exchange. Otherwise the tinyfpga was an amazing experience.
Has someone else had similar problems?
I forgot about this issue after I resolved it by changing the linker script. See this commit: https://github.com/mattvenn/TinyFPGA-BX/commit/b5d2e848f4e9dd0e0beb1729d488813bea5d6ca6
If you checkout the ws2812 branch of my fork here: https://github.com/mattvenn/TinyFPGA-BX/tree/ws2812 And then simulate:
make sim
You will see serial output and then gtkwave will start. At 359us, the LED register is written. This also works on the hardware.
Example 1: Global variables are unintialised.
In firmware.c, #define BREAK1
make sim
Serial never gets beyond the Booting, and at 305us the LED register is written with XXXXXX
Example 2: Can't program tinyfpga.
In firmware.c #define BREAK2
make sim
simulates correctly, but tinyfpga fails to program: