-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh: FAIL on Lattice MachXO2 #456
Comments
I have to check with my machX02 device. Could you provides a dump with |
I am using a With verbose:
|
For a similar device I haven't a different dump: your looks like something for ECP5. |
Upgraded to latest. Problem persists.
|
Anything I can do to help debug? |
Look like the issue is near lattice.cpp: |
Here's a simplified version of my code that I can't burn into flash but works fine in RAM: |
Hmm. If I try many times, sometimes the flash writing succeeds. But the code doesn't work from the flash. Loading to RAM for the same code works. |
I have an issue with my machXO2 but will try with machXO3. I have rechecked the code and don't see why messages related to spiflash are displayed... Could you try with .jed to check if it's the same situation? |
@BlueSyncLine: could you provides details about your board. machXO FPGAs have only internal flash. |
@mchitre After a (too long) time I have retried your bitstream without any issues: openFPGALoader --busdev-num 003:016 --freq 6000000 -c ft2232 --verbose -f ../../machxo2_fail/fails.bit
empty
write to flash
Can't read iSerialNumber field from FTDI: considered as empty string
Jtag frequency : requested 6.00MHz -> real 6.00MHz
found 1 devices
index 0:
idcode 0x12b5043
manufacturer lattice
family MachXO2
model LCMXO2-7000ZE
irlength 8
File type : bit
IDCode : 12b5043
displayReadReg
Config Target Selection : 0
Done Flag
SDM Enable
BSE Error Code
No err
b3bdffff
Enable configuration: DONE
Flash erase: DONE
Writing data: [==================================================] 100.00%
Done
Write program Done: DONE
Disable configuration: DONE
Refresh: DONE I am just unable to see why, in your case, openFPGALoader try to access to an external flash. |
It is a Mac OS X |
Will try with my (montherey) |
I have had great success in using
openFPGALoader
to burn a program to RAM on my Lattice MachXO2 board. However, when I try to burn to flash, it fails:Burning to flash from Lattice Diamond work fine. Any idea on what the problem is?
The text was updated successfully, but these errors were encountered: