I’m trying to use program the CU V2 using the Diamond Programmer. I assume this is something that is possible to do?
-
I created a custom spi flash device with ID 42 as that is what I saw being used in the source code for the Alchitry tool.
-
I select FTUSB-0 for the port since it has the ID of 42
-
It fails at the verification step as shown below
The forum only allow new users to add one image so I am adding addition images for context in replies. Here are the device properties used
Here is the custom device.
Here is the Main Screen in case I missed any context in there.
It seems that the SST26VF032B’s Block Protection Register (BPR) is set by the alchitry folks when they send us the devices and their tool unlocks it but the Diamond installer doesn’t. Once it has been unlocked the diamond installer works just fine. It almost seems like they are using a different tool to program the devices in the factory than the Alchitry Labs tool.
One thing I noticed is you have the part number as SST26VF032BA and not SST26VF032B. I believe the A version is currently only on the Au and Pt. The only difference is the A version is needed to support QSPI on the Au and Pt but the Cu doesn’t use that so it doesn’t matter. We may switch to using the A version on all boards at some point but we have a bunch of the non-A versions still.
It’s true we use different code to flash the boards and do QC during production but it doesn’t do anything different than Alchitry Labs. All the USB/programming parts were ripped out of Alchitry Labs.
Here’s the relevant code if you want to dig in Alchitry-Labs-V2/src/main/kotlin/com/alchitry/labs2/hardware/usb/ftdi/LatticeSpi.kt at master · alchitry/Alchitry-Labs-V2 · GitHub