« Return to Thread: problem with running "hello uart" in v2pro

problem with running "hello uart" in v2pro

by wuxian :: Rate this Message:

Reply to Author | View in Thread

Hello,everybady.
I'm new here.
For the last few weeks I try to run the "hello uart" program in v2pro. I built a program using the openrisc-HW-tutorial-Xilinx and openrisc-SW-tutorial.
Then I tryed to run the program
download the .bit file
run jtag
-cd ...    //location of jtag
-./jp1 xpc3 9999        

run gdb
-cd ...      //location of hello-uart
-or32-uclinux-gdb hello.or32
-target jtag jtag://localhost:9999
-load
-set $pc=0x100
-run
And there came the problem, the openrisc CPU didn't send control signal to URAT union.
In the hello.or32 file, I found the reset.S instruction in 2100h and the uart_init instruction in 4000h.
By using the JTAG ,I get the instruction which I have just download from the ram. But I couldn't find the  reset.S instruction which supposed to begin at 0x100 any where.And the uart_init instruction which is supposed to begin after address 0x100 is founded in 0x00.
So I restart the system,set the PC 0x00,run the program. And it doesn't work either.
Is there anyone met this problem before.Do you think there is something wrong with my tool chain?
Because the tutorial I use is too old , I had to do something different from what it tells.I downloaded the gdb5.3.patch from the http://www.eecg.utoronto.ca/~jarvin/or32/gdb-5.3.patch.bz2.

Thanks a lot!





 « Return to Thread: problem with running "hello uart" in v2pro