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++
12745 Discusiones

Unable call alt_main() inside _start routine when using SSRAM as program memory

Altera_Forum
Colaborador Distinguido II
1.709 Vistas

Hi, 

 

My Application is not able call alt_main() inside _start routine when using SSRAM as program memory. I read the PC register and found that it is stop at "call alt_main" in *.objdump file 

 

FYI, the application able to run successfully when im using on chip memory. 

I also tested my SSRAM and have no issue in reading/writing.  

 

Any suggestion or solution are appreciated. thanks.
0 kudos
5 Respuestas
Altera_Forum
Colaborador Distinguido II
569 Vistas

Check if loader is correctly loading program code into ssram. 

If not, your ssram is still uninitialized and program hangs when you try to execute from ssram.
Altera_Forum
Colaborador Distinguido II
569 Vistas

Thanks for your reply Cris72. 

 

I load my application thru the "Run as --> Nios II Hardware". Program should have loaded into ssram as it state it is verified in the Console Tab.
Altera_Forum
Colaborador Distinguido II
569 Vistas

i cant see the "Nios2 hardware" tab in "Run as" does anyone know what may b the problem? the only option is "local c/c++ application"

Altera_Forum
Colaborador Distinguido II
569 Vistas

For shahzad 

You must select the project you want to run in the projects list before selecting "Run as". 

Moreover, the first time you run a project you shouldn't select "Run as" but "Run..." instead; select appropriate settings and then Run. Next times you can use "Run as"
Altera_Forum
Colaborador Distinguido II
569 Vistas

thanx cris, 

 

i have searched for this problem and found that this is problem with windows 7... i came to know this through following posts 

 

http://www.alteraforum.com/forum/showthread.php?t=19765 

 

i am now installing windows vista back and will tell you if the problem still exists
Responder