1/1
the or1k doesn't work in de0_nano
by powen on May 16, 2018 |
powen
Posts: 3 Joined: Apr 21, 2018 Last seen: May 17, 2018 |
||
Hello,
I am trying to do test with de0_nano by following the guideline from "https://github.com/openrisc/tutorials/tree/master/de0_nano" and . after program the sof file into de0_nano and upload the timer.elf to FPGA via alter usb blaster. when i do the below command, there is no led blinking then i dump the 0x91000000 (mdb 0x91000000 0x10) is kept same value that means the code isn't running but i can use mwb 0x91000000 0x?? to control the led status. is something wrong in de0_nano setting ? How can i do ? target remote :50001 load set $npc=0x100 continue after that , i use gdb to trace the code, it always show "Single stepping until exit from function or1k reset, which has no line number information." but it has -g already in Makefile. the or1k-elf-gcc is from tutorials/toolchains/or1k-elf/bin/ and version is 5.2.0 or1k-elf-gdb version is 7.11 |
RE: the or1k doesn't work in de0_nano
by powen on May 16, 2018 |
powen
Posts: 3 Joined: Apr 21, 2018 Last seen: May 17, 2018 |
||
I also try this "http://web.archive.org/web/20150208222518/http://elec4fun.fr/downloads/led_blink.S" by using telnet to upload the binary to target then run it without any problem.
step 1: or1k-elf-as -o led_blink.elf led_blink.S step 2: or1k-elf-objcopy -O binary led_blink.elf led_blink.bin step 3: telnet 127.0.0.1 4444 load_image led_blink.bin 0 reg npc 0x100 resume then the led is blinking. could someone help me how to figure out the problem on or1k-elf-gcc and gdb ? is something wrong on newlib ? |
RE: the or1k doesn't work in de0_nano
by powen on May 17, 2018 |
powen
Posts: 3 Joined: Apr 21, 2018 Last seen: May 17, 2018 |
||
sorry, it just work today. No idea how it was failed.
|
1/1