Forum Discussion
Altera_Forum
Honored Contributor
14 years agoBuilding RBF with SOF and ELF, External SDRAM
Hi All, I am looking for information on how to concatenate a .elf and a .sof file into a single .rbf file. The elf file loads Nios data and instructions into an external SDRAM. Any information/sugges...
Altera_Forum
Honored Contributor
14 years agoYou don't need that init stuff... Where did You find that? Try this:
# include "altera_avalon_pio_regs.h"# include "system.h"# include <stddef.h>
int main(void) {
while (1)
{
usleep(1000*1000);
IOWR_ALTERA_AVALON_PIO_DATA(USER_LEDS_BASE, 1);
usleep(1000*1000);
IOWR_ALTERA_AVALON_PIO_DATA(USER_LEDS_BASE, 0);
}
return 0;
}