Forum Discussion

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

NIOSII fails to upload .EFI with SDRAM controller

Hello;

I am trying to get my hands on NIOSII with SDRAM controller.

I already done some tutorials and created simple system in qsys (without sdram controller)

Everything runs as intended, i can control PIO's (LED and switches) without any problem.

But as soon as I add SDRAM controller the system fail in uploading the .elf file on NIOSII.

I run NIOSII/s; Reset and exception vector memory: on chip memory;

Can you please take a look at my configuration, what do I do wrong?

Here is my testcode(reading switches, assign value to LEDs):

# include <stdio.h># include "system.h"# include "altera_avalon_pio_regs.h"
 int main()
{
 int count=0;
 while (1)
 {
     count=IORD_ALTERA_AVALON_PIO_DATA(SW_BASE)/2;
     IOWR_ALTERA_AVALON_PIO_DATA(LED_BASE,count);
 }
 return 0;
}

thank you.

https://www.alteraforum.com/forum/attachment.php?attachmentid=7699 https://www.alteraforum.com/forum/attachment.php?attachmentid=7700 https://www.alteraforum.com/forum/attachment.php?attachmentid=7701
No RepliesBe the first to reply