Forum Discussion

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

How to simulate Nios II program with SOPC Builder

Hi everyone,

I have an SOPC builder Avalon system with a NIOS-II processor. I want to simulate the whole thing with a program runnin in the NIOS-II. The program itself is very basic, a "hello world" message sent to the UART and some I/O operations.

I have instantiated an onchip-memory in the SOPC. I have modified the linker script using the BSP editor tool to make the gcc compiler link the program to the address of the on-chip memory.

But now I'm stuck, I can't find how to tell SOPC builder to use the hello_world.elf binary to initialize the content of the on-chip memory.

What am I missing or what am I doing wrong?

Thanks

3 Replies