Forum Discussion

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

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

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.

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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"