Forum Discussion

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

can't boot from sram

I build sopc with epcs component, with the reset vector and exception vector at sram section, and set .text section at sram section, I have changed the sram width from 32 bit to 8 bit, but I still can't start program in sram when powered on.

How can I start program in sram when powered on?

15 Replies

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

    the "sof" flash is just used to know where to place the elf application in the EPCS. It should be placed right after the hardware configuration.

    I find the mathed they describe a bit complicated... Using the Nios programmer you can directly write both .flash files in the EPCS.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thats the method i have been using.

    Could this be a memory mapping issue?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I've just managed to get it to work by adding the .sof and .elf files in the flash programmer at the same time. At least i think thats why it now works! Before i had uploaded them one after the other with possibly a soft reset in between.

    I hope this was not just a fluke!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In theory you should be able to flash them separately, as long as the two generated .flash files were made from the same .sof source (and with the same settings, especially compression for the hardware image). But I'm glad you found a way that works ;)

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

    I'm sure i tried that with 9.1sp2, so maybe it is the version specific bug!

    Thank you for you help Daixiwen.

    Jockeyjim