Altera_Forum
Honored Contributor
19 years agoEPCS Controller & Altera development board
I am trying to implement a EPCS controller on the Altera Development board but I am having a bit of trouble. I am using of the the Altera design examples for the EP2C35 with VHDL code. The version they have defined as "small". I have increased their onboard memory to 8 KBytes. Through the NIOS II IDE program I successfully built and run the "count_binary" sample program on the development board. I then went back to the SOPC builder and incorporated a EPCS Controller into the system, regenerated and compiled (with no errors). I then tried to run the the NIOS II IDE program in excatly the same configuration with the same test program with no changes to any of the Linker Scripts and I got the following error
region onchip_memory is full (count_binary_5.elf section .text). Region needs to be 588 bytes larger. I then went and changed the On_Chip_Memory to 12 KBytes and regenerated and compiled (with no errors). I then was able to successfully build and run the sample test program on the development board. (why did I need to increase the size of the on_cip memory when all I did was add the EPCS controller) However in the NIOS II IDE program as soon as I changed the Linker Script "Program Memory (.txt): " from the on_chip memory to the epcs_controller, when I tried to build I got the following error message :- region epcs_controller is full (count_binary_6.elf section .text). Region needs to be 6700 bytes larger Can anyone please help me on this, I am really stuck. One of the things I don't understand is that this sample program is very basic and small and the Altera Development board has a EP1C64 chip on it which should have more than ample space to fit this small program ?! On my design we have a Cyclone 1C12 with a EPCS4 which we calculated after configuration should have atleast 100 KBytes left of memory for us to store our firmware code (we only 64 KBytes). What have I missed ?