News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

CR00103 Certus-NX LiteX not boot from SPI FLASH.

Started by AndreyP, December 31, 2024, 01:51:32 PM

Previous topic - Next topic

AndreyP

Hi.
CR00103 Certus-NX LiteX not boot from SPI FLASH. SPI success program and verify.  When testing SPI FLASH contacts on POR and reset button there are no active signals. But when programming all signals are good.
Andrey.

Antti Lukats

CR00103 only boots from SPI flash, so it should work. It for sure works when we test the modules.

e_tro

Hi, I can't seem to be able to create a new topic, so I post my problem here since it seems related.

I am also having problem booting from flash after writing my own flash image (.mcs)

This is what I have done:
- Compiled i minimum image that sets the green user LED.
- Programmed the FPGA with the .bit file using fast programming. This works as expected and the green led is lit.
- Generated a .mcs file with the following command, genereated by the Deployment tool (<path to project> was replaced with actual path):
"C:/lscc/radiant/2025.1/programmer/bin/nt64/ddtcmd" -oft -advanced -dev "LFD2NX-40" -if "C:/<path to project>/project/impl1/project_impl1.bit" -format int -flashsize 128 -of "C:/<path to project>/project/impl1/project_impl1.mcs"

- Programmed the board with the following settings:

LFD2NX – LFD2NX-40 – Device Properties
Device Operation
Target Memory: External SPI Flash Memory (SPI FLASH)
Port Interface: JTAG2SPI
Access Mode: Direct Programming
Operation: Erase,Program,Verify
Programming Options
Programming file: C:/<path to project>/project_impl1.mcs
SPI Flash Options
Family: SPI Serial Flash
Vendor: Micron
Device: MT25QL128
Package: 8-pin SOP2
SPI Programming
Data file size (Bytes): 142592 (Load from File button visible)
Start address (Hex): 0x00000000
End address (Hex): 0x00020000
<unchecked> Turn off addresses auto updating
<unchecked> Erase SPI part on programming error
<unchecked> Secure SPI flash golden pattern sectors


Programmer output:
INFO <85021074> - Check configuration setup: Start.
INFO <85021077> - Check configuration setup: Successful (Ignored JTAG Connection Checking).
INFO <85021294> - Device1 LFD2NX-40: LFD2NX-40: Refresh Verify ID
INFO <85021298> - Operation Done. No errors.
INFO <85021294> - Device1 LFD2NX-40: MT25QL128: Erase,Program,Verify
Initializing...
IDCode Checking...
Enabling...
Erasing...
Disabling...
Enabling...
Programming...
Disabling...
Verifying...
INFO <85021399> - Execution time: 00 min : 02 sec
INFO <85021371> - Elapsed time: 00 min : 07 sec
INFO <85021373> - Operation: successful.

- After programming, especially erasing, I can see that the stock image has been deleted (no fast blinking green user LED)
- After programming I have tried the reset button and powercycle, but the green LED is no lit.
- After programming and powercycle, the status register is: 0x0000010912800000 and both control registers are 0x0

Can anyone spot the problem?