Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12606 Discussions

Again function with "attribute"

Altera_Forum
Honored Contributor II
957 Views

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
0 Kudos
0 Replies
Reply