Altera_Forum
Honored Contributor
14 years agoOutsource a funktion to a flash device
Hallo together,
I have a QSys System with a Nios II and an EPCS controller, using a Cyclone IV. The CIV boots from an EPCS-Flash and starts the Software. Now I want to outsource some Functions to the free memory of the EPCS-Flash. So that functions which are used rare, are running from flash. Is this possible? How? I thought I could do it in a way like this: int custom_func(int n) __attribute__ ((section((".onchipmem"))) int custom_func(int n) { … } But which section must be used for the epcs flash. And how to call a function which lies in the flash? Last but not least, how could I specify the used region in the flash? Because the Hw-image and the Sw-image should not be destroyed? Thanks Sim