Forum Discussion

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

Error: movhi r4,33 in hello world?

In the Multi cpus' project, the primary cpu cannt run in Nios IDE Hello world test just like before when I added the secondary cpu.

There's the error of the Hello world programe in Nios ide :

console:


nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster ", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)

Debug:

0x00200210 <main>:    addi  sp,sp,-8
0x00200214 <main+4>:  stw   ra,4(sp)
0x00200218 <main+8>:  stw   fp,0(sp)
0x0020021c <main+12>: mov   fp,sp
  printf("Hello from Nios II!\n");
0x00200220 <main+16>: movhi r4,33
0x00200224 <main+20>: addi  r4,r4,-10520
0x00200228 <main+24>: call  0x200240 <printf>
  return 0;
0x0020022c <main+28>: mov   r2,zero
}
0x00200230 <main+32>: ldw   ra,4(sp)
0x00200234 <main+36>: ldw   fp,0(sp)
0x00200238 <main+40>: addi  sp,sp,8
0x0020023c <main+44>: ret 

How to correct it ?Thanks!

kinder regards!

fdsa
No RepliesBe the first to reply