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 Discussions

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

Altera_Forum
Honored Contributor II
1,712 Views

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 Replies
Altera_Forum
Honored Contributor II
572 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
572 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
572 Views

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"

0 Kudos
Altera_Forum
Honored Contributor II
572 Views

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"
0 Kudos
Altera_Forum
Honored Contributor II
572 Views

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