Forum Discussion

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

help Running image from FLASH directly in cyclon ii

My requirement is to validate DDR RAM. Can anyone help to run boot image directly from FLASH instead of copying it to RAM using boot copier in cyclone ii . I have to validate RAM(writing some contents to all RAM cells and read back), for this i need to run a application from flash

3 Replies

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

    you can run a software directly from a parallel (cfi) flash, but not from a serial (epcs) one.

    However if you reduce your code to the maximum (turn on optimisations, use the small c library, reduced drivers) you should be able to fit a memory test software in an on-chip memory.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you very much for the reply. we have 16 MB parellel flash so size is not a constraint.To do that do i need to change boot copier to jump to flash itself( i tried this and it failed to run) or can i create S/W without boot copier itself. please advise how can i achieve this

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

    I think you can have a project without boot copier. In the SOPC system, double click on the CPU and put the reset vector in the flash (and adjust the offset, depending on where you want to put the software). The exception vectors should still be in RAM.

    With this setup no bootloader should be added in the system.