Closed yodalee closed 3 years ago
You need to use USRMCLK for this pin, rather than using it as a regular IO.
Thank for your reply. Here is what I understand after search the keyword of USRMCLK.
LOCATE COMP
and IOBUF PORT
definition of flash_clk
in lpf file.USRMCLK
module
module top (
/* SPI-FLASH */
output logic flash_cs,
output logic flash_mosi,
input flash_miso,
input flash_io2,
input flash_io3,
);
logic tristate = 1'b0; USRMCLK u1(.USRMCLKI(flash_clk), .USRMCLKTS(tristate));
Now I can control the clk to flash by adjust the wire tristate.
Am I right?
Yeah that should work
Thanks, let me do some testing.
I am using the ECP5 develop board icesugar-pro and the FPGA is
LFE5U-25F-6BG256C
. I tried to connect to the SPI-FLASH on this board. According to the schematic, the FLASH_CLK is connected to portN9
.So I set the lpf file as below:
and compile my project with following command:
However I will get this error:
I have check the prjtrellis database, which in the pio.json file of ECP5 LFE5U-25F do have no port
N9
.Is this a setting error? or I just cannot use port N9 to communicate with the flash?