Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Again function with "attribute"

Hi all,

I have Quartus 4.2 Nios 1.2, my system:

- Nios II (e), no debug module, 32 MHz

- onchip_memory 4096 bytes RAM

- onchip_memory_2 1024 bytes RAM

- instruction and data bus connected to onchip_memory and onchip_memory_2

- EPCS controller

- reset address,exception address, break location = onchip_memory

- program and data memory = onchip_memory

- i have used all the compilation settings to reduce code footprint as explained in "Developing Programs using the HAL" chapter

if a define a function with:

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

__attribute__ ((section ( ".onchip_memory_2")))[/b]

--- Quote End ---

my CPU hangs when this function get called. Every fuction I define with "attribute", the same behaviour.

Any suggestions?

thank u
No RepliesBe the first to reply