Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHi!
I still have the error, my asm sour file is main.S, the code from a NIOSII tutorial: .include "nios_macros.s"
.equ switches, 0x41020
.equ leds, 0x41030
.global main
main:
movia r2, switches
movia r3, leds
loop:
ldbio r4, 0(r2)
stbio r4, 0(r3)
br loop but: alt_main.c:154: undefined reference to `main' :(