Forum Discussion
Altera_Forum
Honored Contributor
21 years agofunction with "attribute"
Hi all, Quartus 4.2 Nios 1.2 I want to place the fuction "prova()" in the memory named "onchip_memory": <div class='quotetop'>QUOTE </div> --- Quote Start --- void prova __attribute__ (...
Altera_Forum
Honored Contributor
21 years agoHi Soin,
Put the 'attribute' in the declaration rather than the definition:extern void prova (void) __attribute__ ((section ( ".onchip_memory")));
void prova (void) { while(1){} } Regards, --Scott