Forum Discussion
Problem writing the NIOS II program to the EPCS controller.
- 1 year ago
Hi @Megavolt91,
Thank you for posting in Intel community forum, hope all is well and apologies for the delayed in response.
Thanks for the details explanation, appreciate the effort on explaining the situation, it definitely helps us to understand the situation and others too.
Just to clarify, you are able to program to Nios II configuration to EPCS controller now and Nios II is also starting up. However there is confusion in the addresses?
Note: Nios II has been deprecated and no longer supported, hence perhaps it is advised to moved to Nios V, however we would try our best to clarify on your situation.
Best Wishes
BB
SOLVED!
I answer myself. Maybe it will be useful to someone. While reviewing the Quartus project, I discovered that the EPСS controller is not connected to physical pins.
In order to manually connect the EPCS controller pins and ensure successful compilation, the following was added to the qsf file:
set_global_assignment -name RESERVE_FLASH_NCE_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_DATA0_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_DATA1_AFTER_CONFIGURATION "USE AS REGULAR IO"
set_global_assignment -name RESERVE_DCLK_AFTER_CONFIGURATION "USE AS REGULAR IO"
After this message
No EPCS registers found: tried looking at addresses 0x00000000, 0x00000100, 0x00000200, 0x00000300 and 0x00000400
Replaced by message
No EPCS layout data - looking for section [EPCS-EF4015]
looking closely at the nios2-flash-override.txt file found an extra space in "]#" and also the chip name was incorrect. For 25Q16 the file should be like this:
[EPCS-EF4015]# EPCS16N (lead-free)
sector_size = 65536
sector_count = 32
Now Flash Programmer is working well. CLK frequency EPCS is 12MHz.
Thank you all for participating (joke)