This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Problem accessing external IO on Adder/850
- From: Sugeng Widodo <sugeng dot widodo at gmail dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Mon, 4 Oct 2004 18:15:29 +0700
- Subject: [ECOS] Problem accessing external IO on Adder/850
- Reply-to: Sugeng Widodo <sugeng dot widodo at gmail dot com>
Hello all,
I would like to access our external IO using CS4 as chip select , my
IO has 16 bits wide and we want to use 0xfb000000 as base address, so
I've done following modification :
on adder.S I add following lines :
lwi r3,0xFB000801
lwi r5,0xFFFF8730
stw r5,OR4(r4)
stw r2,BR4(r4)
on hal_aux.c :
CYGARC_MEMDESC_TABLE CYGBLD_ATTRIB_WEAK = {
// Mapping for the Adder 8xx development boards
CYGARC_MEMDESC_CACHE( 0xfe000000, 0x00800000 ), // ROM region
CYGARC_MEMDESC_NOCACHE( 0xff000000, 0x00100000 ), // MCP registers
CYGARC_MEMDESC_NOCACHE( 0xfa000000, 0x00400000 ), // Control/Status+LEDs
CYGARC_MEMDESC_NOCACHE( 0xfb000000, 0x00008000 ), // Switches
address , Added by Sugeng , SSKom , 2004-10-04
CYGARC_MEMDESC_CACHE( CYGMEM_REGION_ram, CYGMEM_REGION_ram_SIZE
), // Main memory
CYGARC_MEMDESC_TABLE_END
};
Is this enough to get the right things ?
Because my apps always stuck when accesing those address and got
following message on console :
$T0bthread:00000003;40:00040700;01:0006fe40;#85
BTW : I haven't connect any IO , just want to check CS4.
I've tried another address like 0xfa300000 without any modification on
hal_aux.c just add lines on adder.S , and got same message.
Thanks for your all help.
Sugeng
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss