Can you copy the text and paste it into the forum to see the complete error message... I don't see everything from this line...
Some basic questions:
Did you also add the pins to your toplevel, connected them to the right pins of your FPGA and connected them to your NiosII?
E.g.
Toplevel:
--epcs flash device
iFlashData0 : in std_logic;
oFlashDClk : out std_logic;
oFlashSce : out std_logic;
oFlashSdo : out std_logic;
NiosII instantiation:
-- the_epcs_controller
data0_to_the_epcs_controller => iFlashData0,
dclk_from_the_epcs_controller => oFlashDClk,
sce_from_the_epcs_controller => oFlashSce,
sdo_from_the_epcs_controller => oFlashSdo,
In Device and Pin options > Configuration and you have enabled "User configuration device" and you selected the EPCS.
There is standard no EPCS, but you soldered the EPCS4 to the board?