README hello-uart
This directory originates from the hello-uart[1].tar.gz that was attached to the
openrisc-forum message 2003/06/00075(http://www.opencores.org/forums/openrisc/2003/06/00075)
The reason why I put it on the openrisc repository is because I'm experiencing troubles
downloading the attachment. Also because in the past this program was a very
good starting point for me to start programming the openrisc.
ORIGINAL MESSAGE:
From: "Damjan Lampret" <lampret@o... >
Date: Sat, 14 Jun 2003 22:40:58 -0700
Subject: Re: [openrisc] setting the stall bit using GDB
Michael,
try the following, source files attached (it should run on or1ksim or on
your board assuming your SoC on the board uses addresses in board.h, change
board.h as needed):
First build the demo (see attached tgz). If you have all the tools installed
you can build it using:
make clean all
File hello.or32 should be built. Now start jp1-xilinx utility:
./jp1-xilinx 9999
Instead of 9999, any other port address may be used. Then start GDB with our
example:
or32-rtems-gdb hello.or32
Then load the hello.or32 file onto the board, using gdb:
(gdb) target jtag jtag://localhost:9999
(gdb) load
Now program is loaded and we can start it. Before doing that we must connect
serial port cable to our board, start serial port program (e.g. minicom) and
set baud rates (default 9600 8N1 in board.h). OR1k has reset vector located
at 0x100. We will simulate reset using:
(gdb) set $pc=0x100
(gdb) continue
Hello World!!! should be printed on terminal. Instead of just continue
command under gdb we can experiment more with next, step, nexti, stepi,
break and others like print:
(gdb) set $pc = 0x100
(gdb) break uart_putc
(gdb) c
(gdb) next
(gdb) print c
Instead of using command line debugging with gdb we can also use Data
Display Debugger. Start it with:
ddd --debugger or32-uclinux-gdb hello.or32 &
Same commands as above can be entered in console below. After program is
loaded with:
(gdb) target jtag jtag://localhost:9999
(gdb) load
(gdb) set $pc=0x100
We can set breakpoint with mouse clicks and step using step/next buttons.
Program can be run with continue button. We can set watchpoints, observe
data in Data Display Window or simply by moving mouse over the variable.
You can play a bit with hello.c file, e. g. by changing case of entered
characters.
regards,
Damjan
----- Original Message -----
From: <Michael@M... >
To: <openrisc@o... >
Sent: Tuesday, June 10, 2003 2:45 PM
Subject: [openrisc] setting the stall bit using GDB
> Can someone spare a minute to give a pointer for using GDB? My setup
> includes the OR32 processor running on a Xilinx XCV1000, with some
> SRAM and a UART attached to it. The Debug unit is compiled into the
> core, and I am using a linux box as the host for GDB. We are using the
> XIlinx Parallel-III JTAG cable, and it's attached to the TDI, TDO, TMS,
> and TCK lines.
>
> So my question is, what GDB command do I use to send the stall/un-
> stall commend to the TAP?
>
> Thanks,
> Michael McAllister
>
>
hello-uart[1].tar.gz
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
openrisc_demo.rar (208个子文件)
or1200_sopc_simulation_hw_sw.7z 1.71MB
or1200_sopc.7z 1.62MB
or1200_sopc_sw.7z 8KB
_info 57B
hello.bin 9KB
hello.bin 9KB
hello.bin 9KB
reset.bin 8KB
reset.bin 8KB
reset.bin 8KB
mini_or1200_top.bit 1.38MB
mini_or1200_top.bit 1.38MB
hello.c 2KB
sim.cfg 21KB
hello.dis 33KB
Entries 3KB
Entries 557B
Entries 443B
Entries 404B
uart.h 5KB
mc.h 3KB
board.h 876B
mini_or1200_top_summary.html 3KB
mini.ise 224KB
ram.ld 570B
ram.ld 379B
Makefile 1KB
Makefile 525B
sim.mpf 90KB
sim.cr.mti 2B
hello.or32 21KB
rtlmem.php 2KB
view.php 1KB
ramb16_s9.tpl.php 1KB
build_tb.php 1KB
build_wb_mem.php 1KB
build_rtl.php 444B
mini_or1200 20080521 仿真和上板调试通过.rar 822KB
tortoise_basic_soc.rar 386KB
hello-uart.rar 13KB
membuild 20080521 生成的代码可以使用.rar 11KB
linux 下 or1k gnu toolchain 建立 (初稿)20080422.rar 2KB
Repository 43B
Repository 39B
Repository 39B
Repository 36B
mini.restore 54KB
Root 42B
Root 13B
Root 13B
Root 13B
uart0.rx 4B
reset.S 428B
reset.S 113B
Template 0B
uart0.tx 40B
dat3.txt 6KB
dat2.txt 6KB
dat1.txt 6KB
dat0.txt 6KB
dat3.txt 6KB
dat2.txt 6KB
dat1.txt 6KB
dat0.txt 6KB
dat3.txt 6KB
dat2.txt 6KB
dat1.txt 6KB
dat0.txt 6KB
linux 下 or1k gnu toolchain 建立 (初稿)20080422.txt 4KB
README.txt 3KB
工作记录.txt 2KB
软件编译说明.txt 1KB
说明.txt 977B
data.txt 330B
说明.txt 277B
说明.txt 277B
参考书目.txt 94B
readme.txt 76B
main.ucf 1KB
or1200_amultp2_32x32.v 287KB
or1200_defines.v 51KB
or1200_defines.v 51KB
or1200_defines.v 51KB
dbg_top.v 49KB
or1200_du.v 44KB
tc_top.v 40KB
uart_regs.v 29KB
or1200_ctrl.v 26KB
or1200_top.v 26KB
dbg_trace.v 21KB
or1200_cpu.v 20KB
or1200_except.v 20KB
uart_receiver.v 17KB
or1200_sprs.v 16KB
or1200_iwb_biu.v 15KB
mini_or1200_top.v 15KB
or1200_spram_2048x32_bw.v 15KB
or1200_wb_biu.v 14KB
or1200_dpram_32x32.v 14KB
mini_or1200_tb.v 14KB
共 208 条
- 1
- 2
- 3
Rill
- 粉丝: 1158
- 资源: 48
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页