OpenCores
URL https://opencores.org/ocsvn/de1_olpcl2294_system/de1_olpcl2294_system/trunk

Subversion Repositories de1_olpcl2294_system

[/] [de1_olpcl2294_system/] [trunk/] [sw/] [ecos/] [scripts/] [lpc-l2294_test.txt] - Rev 7

Compare with Previous | Blame | View Log


# enable cs3
iopoke -b 0xE002C014 -4 -v 0x0f814924

# configure BCFG3
iopoke -b 0xFFE0000C -4 -v 0x20007de7
iopoke -b 0xFFE0000C -4 -v 0x2000ffff
iopeek -b 0xFFE0000C -4


# read & write to FPGA

iopoke -b 0x83000000 -4 -v 0xabbabeef
iopeek -b 0x83000000 -4 

iopeek -b 0x83000000 -1
iopeek -b 0x83000001 -1
iopeek -b 0x83000002 -1
iopeek -b 0x83000003 -1

iopoke -b 0x83000000 -4 -v 0x00000001;iopeek -b 0x83000000 -4 
iopoke -b 0x83000000 -4 -v 0x00000002;iopeek -b 0x83000000 -4 
iopoke -b 0x83000000 -4 -v 0x00000004;iopeek -b 0x83000000 -4 
iopoke -b 0x83000000 -4 -v 0x00000008;iopeek -b 0x83000000 -4 

iopoke -b 0x83000000 -1 -v 0x04
iopoke -b 0x83000000 -1 -v 0x08
iopoke -b 0x83000000 -1 -v 0x10
iopoke -b 0x83000000 -1 -v 0x20
iopoke -b 0x83000000 -1 -v 0x40
iopoke -b 0x83000000 -1 -v 0x80

iopoke -b 0x83000001 -1 -v 0x01

iopoke -b 0x83000002 -1 -v 0x01

iopoke -b 0x83000003 -1 -v 0x01

iopoke -b 0x83000000 -1 -v 0x01
iopoke -b 0x83000001 -1 -v 0x02
iopoke -b 0x83000002 -1 -v 0x04
iopoke -b 0x83000003 -1 -v 0x08
iopoke -b 0x83000004 -1 -v 0x10
iopoke -b 0x83000005 -1 -v 0x20
iopoke -b 0x83000006 -1 -v 0x40
iopoke -b 0x83000007 -1 -v 0x80

iopoke -b 0x83000008 -4 -v 0xabbabeef
iopoke -b 0x8300000c -4 -v 0xffffffff
iopoke -b 0x83000010 -4 -v 0x00ffffff
iopoke -b 0x83000014 -4 -v 0xff00ffff
iopoke -b 0x83000018 -4 -v 0xffff00ff
iopoke -b 0x8300001c -4 -v 0xffffff00

dump -b 0x83000000 -4

iopeek -b 0x83000014 -4 

iopoke -b 0x83000000 -4 -v 0xabbabeef;iopeek -b 0x83000000 -4
iopoke -b 0x83000000 -4 -v 0x55555555;iopeek -b 0x83000000 -4
iopoke -b 0x83000000 -4 -v 0xaaaaaaaa;iopeek -b 0x83000000 -4
 
memtest -b 0x83000000 -l 0x800


iopoke -b 0x83000000 -4 -v 0x00000001;iopeek -4 -b 0x83000000
iopoke -b 0x83000000 -4 -v 0x00000002;iopeek -4 -b 0x83000000
iopoke -b 0x83000000 -4 -v 0x00000004;iopeek -4 -b 0x83000000
iopoke -b 0x83000000 -4 -v 0x00000008;iopeek -4 -b 0x83000000



ip_address -l 192.168.1.100
ip_address -h 192.168.1.1

ping -h 192.168.1.1


#
# use redboot to load programs
load -m tftp  hello; go 0x81010040
load -m tftp  twothreads; go 0x81010040
load -m tftp  simple-alarm; go 0x81010040

load -m tftp  dbg_sh; go 0x81010040

load -m tftp  debug; go 0x81010040


#
# test gpio
iopoke -b 0x83100008 -4 -v 0x7f7f7f7f
iopoke -b 0x83100004 -4 -v 0x7f7f7f7f
iopoke -b 0x83100004 -4 -v 0x00000000

dump -b 0x83100000 -4



iopoke -b 0x83200008 -4 -v 0x0003ffff
iopoke -b 0x83200008 -4 -v 0x00000000
iopoke -b 0x83200008 -4 -v 0x00000001
iopoke -b 0x83200008 -4 -v 0x00000002
iopoke -b 0x83200008 -4 -v 0x00000004
iopoke -b 0x83200008 -4 -v 0x00000008
iopoke -b 0x83200004 -4 -v 0x0003ffff
iopoke -b 0x83200004 -4 -v 0x00000000
iopoke -b 0x83200014 -4 -v 0xffffffff
iopoke -b 0x83200014 -4 -v 0x00000000
iopoke -b 0x83200014 -4 -v 0x000000ff

dump -b 0x83200000 -4



Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.