Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- Just a couple of points/questions: 1. In SOPC Builder, where are your Reset/Exception addesses? 2. Keep in mind that the EPCS is not accessed like virtual memory. - There's a small onchip memory for a bootloader as part of the EPCS component. Regarding your issue, it is likely to be related to your linker script, but the source of the problem could come from SOPC Builder settings. Best of luck, - slacker In SOPC Builder I changed the Reset Address to the EPCS Controller component but the exception address I couldn't change from the On_Chip Memory setting. I generated and compiled and then was able to build the "count_binary" sample program with no changes to any of the Linker Scripts (i.e. all locations set to On_Chip Memory). This time I noticed the following information :- Info: (count_binary_7.elf) 9884 Bytes program size (code + initialized data). Info: 2372 Bytes free for stack + heap. Which explains where the 12 Bytes of memory is going. But I would have thought that this size program could be stored and run from the EPCS ? However, once again, 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_7.elf section .text). Region needs to be 7012 bytes larger. It seems that changing the Reset address didn't help! When you stated :- ...2. Keep in mind that the EPCS is not accessed like virtual memory. - There's a small onchip memory for a bootloader as part of the EPCS component. From the literature I read I was under the impression that could store code in the EPCS "General-purpose memory" with what ever space was left over after storage of configuration data ? The EPCS64 configuration device is for sure big enough ? Is there some other way to tell the NIOSII IDE program to store and run the code out of the EPCS configuration device besides the Linker Scripts ? Is the IDE programing only storing the code in the boot loader section only ? If so how do I direct it to store the code into the "General-purpose memory" ? I tried also the FLash Programmer with the changed Linker Script settings but got the same results as when I built the project directly. Any other suggestions ? When you stated "but the source of the problem could come from SOPC Builder settings" what setting were you referring to ? The EPCS Controller seems to have no settings that can be changed ?